Category "testing"

How to select option in drop down protractorjs e2e tests

I am trying to select an option from a drop down for the angular e2e tests using protractor. Here is the code snippet of the select option: <select id="loc

Testing gin based REST API not getting params while using net/http/httptest

I am developing a REST API based on Gin Go, the endpoint looks something like below: func carsByType(c *gin.Context) { fmt.Println("Go Request in Handler...

How to remove skipped tests from html report

I am using pytest for automation. I have so many test cases and have one test cases as skipped test like below, def test_step(index, description): """ Logs

Perform Drag&Drop with Cypress

I've tried for some days to perform an e2e test that performs a Drag&Drop event in Selenium, and after several ways to resolve this, someone told me about C

How can I create parameterized tests in Rust?

I want to write test cases that depend on parameters. My test case should be executed for each parameter and I want to see whether it succeeds or fails for each

Verify color in selenium ide

I am actually looking at selenium IDE for testing many parts of websites, so I am new at this. I have been looking for verifying css styles attributes (for exam

Test process.env with Jest

I have an application that depends on environmental variables like: const APP_PORT = process.env.APP_PORT || 8080; And I would like to test that for example: A

Can we run/test desktop applications on browserStack?

Can anyone let me know whether we will be able to run/test desktop applications on BrowserStack? I'm exploring options to test one of the desktop applications o

How to hide HTTP Header Manager for a image upload post API in jmeter

I create two HTTP request, both post REST API. One of the API content-type is "application/json" for which I have added HTTP Header manager. My other API is for

Partial text assertion and compare of 2 variables in selenium ide

I'm having a problem that I'm not sure how to solve. I have a customer code on one page (ex. Test095). I store it as var1. And I have to navigate to another pa

Compose Desktop testing - how to check if something is visible?

Given some simple content: @Composable fun MyContent() { var showThing by remember { mutableStateOf(false) } if (showThing) { Box(Modifier.testT

Override Django cache settings in tests

I'm using Django DummyCache in my tests, however, there are a few tests which relay on real caching so using fake caching is not good here. Is there a clean w

Is there any IE 11 extension to modify header same like mozilla with modify header?

I would like to know more about IE 11 extension that can actually modify header manually. Basically I need to modify header and pass as "Referer" to spoof if we

Found input variables with inconsistent numbers of samples: [301056, 253]

I am working on ML and for training my data, I used these functions. What I already did in this: I already apply replacing the value of X in it. Code: from skle

Why use Page Factory?

I am a new test engineer and have been reading about Page Object Model and implementing them and keep coming across Page Factory. I understand that Page Factory

How jasmine spyOn a generic method

I try to make a spy on a generic method in typescript, but cannot get Jasmine to recognise it. I have code http: HttpClient <- Not proper code, just showin

Intercept navigation change with jest.js (or how to override and restore location.href)

Application code is calling location.href = "some-url". I want to write a test that verify the navigation redirect has happened. Using jest on jsdom, I tried t

What is a Selenium wrapper?

Does it wrap around Selenium and provide a simpler or different method of invoking the functionality of Selenium? I looked it up on Google and the best informat

Using WebApplicationFactory to do E2E testing with .Net 6 (minimal api)

Im trying to get E2E/UI testing (selenium, playwright) to work with my unit testing framework. The basic idea it to use MSTest and the WebApplicationFactory to

ERROR Brownie Mainnet Fork Testing `brownie.exceptions.VirtualMachineError: revert` problem or other?

When I try to test below project, it gets below error. Any thoughts why test fails, am I missing something? I am following 16 hours Solidity course of 'freecode