Category "testing"

Cypress - log response data from an request after a click()

Although I know this may not be considered as a best practice, but what I want to achieve is to silently delete a record from a database after the same was crea

Can you write unit tests if you don't actually write the code?

For instance, I assume this is what SDETs do? They don't actually write the functional code but they're able to write integration/unit tests, am i correct?

How do I grab an element and a class with selenium (Python)?

I'm trying to do some automation testing where I will need to grab an element to choose the right quality video. The problem here is that I tried CSS Selector,

How do I get selenium to open my electron app?

I'm attempting to setup Selenium to test my electron app. So far I have the code from the Electron documentation, however, this only opens the HTML file, not my

get or post within ActionCable tests in Rails 6?

I am using a JWT to authenticate my user. So when a user want to connect to the ActionCable server, it does something like this: Get a JWT from REST endpoint:

How to get the arguments passed to various calls from call_args_list?

I'm trying to use call_args_list to get the arguments passed to a certain function when it is called multiple times. I'm using this: call_args_list = mock.add_

PowerShell module function does not inherit WhatIf

TL;DR: Why do module functions not inherit -WhatIf implicitly when called from a script? It was my understanding that cmdlets and functions will inherit switche

Gatling script throws an error "type mismatch"

I have a problem with my script, I converted it from HAR file and divide it to two separate execs as below. I believe I did it properly (but I'm not 100% sure)

Why isn't Cucumber considered as a testing tool? [closed]

I'm new to Cucumber, and I'm trying to understand the tool. While reading the documentation, I found that it is defined shortly as "a tool tha

BeanCreationException: Error creating bean with name 'flywayInitializer'

I am trying to run my project tests in a docker container. All of the tests work just fine when running locally. Errors started occurring when I tried to move m

Software Testing Technique for Radio Button of possible input combinations

So I'm trying to figure out a Software Testing technique that would decrease the amount of test combinations inputs of a Radio Button dialog. The dialog has thr

How to patch input() when testing Jupyter notebook cells with testbook?

A project I'm involved in uses testbook to test code cells of Jupyter notebooks. Patching works fine — unless the code to be tested asks for

mocking server for SSR react app e2e tests with cypress.io

I'm building a single page web application (SPA) with server side rendering (SSR). We have a node backend API which is called both from the node server during

Whats the difference between toBeInTheDocument and getBy* in @testing-library/react

Is there a difference between expect(screen.queryByText('<something>')).toBeInTheDocument(); And screen.getByText('<something>'); (The specific ge

QA_test for multiple outputs on gnuradio with different types

I have written a gnuradio block with 1 input and 2 outputs. Now I'm writing the qa_test in python. the code below is to test a block with 1 input and 1 output.

How do I run the tests that are part of an installed/installing Cabal package?

I have a Haskell package I've installed from Hackage, using cabal and would like to run the tests suites that are part of the package, but it isn't clear to me

TDD for an algorithm involving randomness

I would like to try out test-driven development, but the project I am working on involves a lot of randomness and I am very unsure about how I can test it. Here

How to check if an element contains multiple items in Cypress.io

How can I check if an element contains multiple items in Cypress.io without replicating my code so much? Current Example: cy.get(".column") .children() .con

How to force fail a test in Cypress.io

In Cypress.io is there a way that I can force a test to fail if a certain condition is met? For example, on my webpage, if the string "Sorry, something went wro

Cypress: how to drag an element towards another dynamic element

In cypress I'm trying to drag one element towards another element? How can I do that? It should look something like this cy.('@firstElememt').trigger('drag').to