Category "testing"

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

Citrus flightbooking sample execution?

I am new to Citrus so I tried to execute flight booking sample but I face some problems. First of all, I think that something is wrong with the readme file (rea

Automation Test executed by Runner works fine, but when execute this by command mvn, it gets error in test that already works fine

I am a QA and created a framework(JAVA) to execute my tests. Everything is going fine running the tests by Runners. All those tests works fine and got the PASSE

How to ignore classes in test class with ArchUnit

I wrote my first ArchUnit test: import static com.tngtech.archunit.library.dependencies.SlicesRuleDefinition.*; // more non-static imports @RunWith(ArchUnitRu

How to use go-vcr with githubv4 ? - getting httpClient Transport

Looking at the set up for go-vcr // Start our recorder r, err := recorder.New("fixtures/etcd") if err != nil { log.Fatal(err) } defer r.

Can anyone explain how to get all the mismatch between two responses in karate?

Like if I have two JSON as below and I want to check the mismatch between those JSON 1: { name:'john', contact:'123', country:'america' } JSON 2

Unable to fetch data from test rail using java

I am using the API provided by Test rail to pull info using java. Below is my program. APIClient client = new APIClient("https://test.testrail.net/index.php?/r

Unable to fetch data from test rail using java

I am using the API provided by Test rail to pull info using java. Below is my program. APIClient client = new APIClient("https://test.testrail.net/index.php?/r

ArrayList equality in junit not working although expected and actual are similar

I am using below test method to check whether the Arraylist is sorted as expected. @Test void compareFields() { Assignment14 assignment14 = new Assi

Karate tooling : How to make rest api kerberised calls/SPNEGO authentication? [duplicate]

We have a basic use case to connect to webserver and get an ack back but having issues in Authentication. Scenario : Feature sample Given url

How to test an SQL Update statement before running it?

In some cases, running an UPDATE statement in production can save the day. However a borked update can be worse than the initial problem. Short of using a test

Force a TestCafé to abort the execution of a test if it get stuck

I am working with TestCafé 1.8.1 and testcafe-browser-provider-electron 0.0.14. Let's say that an issue in the application force it to get stuck and hang

Laravel actingAs guest

Laravel provides a way to authenticate a given user during HTTP testing with $this->actingAs($user); Is there a way to unauthenticate that $user within t

How can I make my TestCafe framework handle A/B experiments on web apps?

I have built an automation framework for testing our web app that runs as after each new deploy to our staging environment, as a regression pack. Now the issue

What is difference between Instrument & Deploy App under test?

I would like to know the difference between "Instrument the App under test" and "Deploy the App under test". I'm new in App testing.

Should integration test bypass login natural processes in order don't retest same login functionality for many times

Let's say I'm testing a web service and I have a couple of scenarios requires user to be authenticated: Scenario #1: Customer sign-up Scenario #2: Customer si

How can I hover over an element then click

I want to hover over the "My Account" button and the click the "Login" button opened popup. I have tried the below code but it did not work. Does anyone know a