Category "testing"

How do I select the right elements with querySelectorAll as I do by using the Chrome developers console?

I'm currently using cypress to test salesforce, and I'm running into a certain circumstance where I don't know the Party record ID that will create it within th

How do I select the right elements with querySelectorAll as I do by using the Chrome developers console?

I'm currently using cypress to test salesforce, and I'm running into a certain circumstance where I don't know the Party record ID that will create it within th

Is there a way to set custom responses from an external server when a specific request receive?

I have a program that is only displaying bug behavior when a certain response is received from an external server. The only thing is, the external server is in

JavaScript test runner that supports native modules

Is there a JavaScript test runner that supports native modules?

Returning responses randomly from wiremock

I need to return a random response out of a predefined set each time the same wiremock endpoint is called. How can I do it?

What are assertions in JEST?

It's documentation says that while dealing with async code, expect.assertions(x) should be written. What exactly do assertions refer to? Is it a term of plain J

Why remove QA IDs from the code base in production

In a React application that we are developing we use QA IDs for Selenium tests. Is it bad practice to leave them in the code base in production (live)? If so,

How to create tests for kana (katakana/hiragana) using selenoid?

We want to write e2e tests for the Katakana method using Selenoid. But how we can realize it? There is should be exactly Latin input that converts into Katakana

how to view WTForms validation errors?

I am writing some basic tests and have a test failing. def test_new_user_registration(self): self.client.get('/user/register') form = RegistrationForm(

How to test testcase wise in cypress

Just like @Test (TestNG) in Selenium. Is there a way to test cases one by one and each test case not affecting the subsequent one in cypress?

Is there a way to assign a unique "ID Key" to each feature/scenario in Karate DSL

I would like to know if it is possible to assign "ID Keys" to each feature or scenarios in Karate DSL in order to keep all of them uniquelly referenced. When yo

How to reset Laravel AuthManager/guards in between API calls in tests?

I'm writing a Feature test for an API and I want to test custom auth logic. I know that when I call the login API endpoint, Laravel caches the fact that the use

Having problems with testing angular app / ERROR: 'DEPRECATION: describe with no children (describe() or it())

After runned my test with this artist-detail.spec.ts import { HttpClientModule } from '@angular/common/http'; import { ComponentFixture, TestBed } from '@angula

How do I keep writing in the same JSON file within cypress?

I'm currently setting up a test scenario that allows me to create a random email, and I would like to do more series of tests and keep writing on the same JSON

Is it possible to use Dependency Injection with xUnit?

I have a test class with a constructor that needs an IService. public class ConsumerTests { private readonly IService _service; public ConsumerTests(IS

Is there a way to disable the `takeScreenshot()` action when an OpenTest test fails?

Sometimes it's useful to do something like loop an AssertElementNotVisible() until the element in question is visible. However, the takeScreenshot() event is qu

Selenium browser persists after a test is finished

I am using Firefox and the Selenium IDE plugin. I have a test for the login of my application. After the end of the test the browser stays logged in and the ses

How Do I Seed My Database in the setupBeforeClass Method in a Laravel 4 Unit Test?

I have a Laravel 4 test class with some tests for which I want to seed my database before running the tests. Using the setup() function to reseed for each test

Way to add pytest options outside top level conftest?

I have a project that defines testing support modules, including py.test plugins in a package subdirectory like this: bokeh/_testing ├── __in

How can I save API response body or property in an environment variable or json to use it later in other requests in Cypress

API runs locally(and in future in a circleCI container) so I don't need to stub responses, only real requests and real responses. When I send a POST request, it