Category "testing"

Trying to upload image using Karate REST API tool

I m trying to upload two images in the post method, like this but it's returning this error, the api didn't receive the uploads images I want to know how is t

Unable to load a specific URL with Cypress

I’m unable to load the following URL with Cypress. Getting timeout error. I have set the page load time to 2 mins, still same issue. General URLs eg. (htt

What is the difference between 'toBe' and 'toEqual' in Jest?

Jest documentation reads: toBe just checks that a value is what you expect. It uses === to check strict equality. And for toEqual: Use .toEqual when

How to import JIRA Test Cases to AZDO test plans?

I have to migrate almost 150 Test Case (JIRA Tasks) to Azure Test Plans. Is there any way I can directly export JIRA TCs and Import them into the AZDO?

How to simulate android back button in react-native test

In componentDidMount I'm adding a listener to handle Android back navigation and would like to add tests around it's behaviour. How do I firstly test something

How to write a unit test for spring specification?

I created a builder class which construct Specifications object. It is used for creating queries for JpaSpecificationExecutor. The builder is used, because I ha

Solana Test Program Anchor Test failing tsconfig.json" > needs an import assertion of type "json"

I ran anchor test --skip-deploy and all it should do is initialise my program, but all I get is this error, that I cannot resolve. I checked the tsconfig.json s

Jmeter/Selenium scroll down in a specific area and not the entire page

I am having trouble trying to figure out how to scroll down a one section only from the entire webpage. I have tried window.scrollBy(x,y) which works but for th

Jmeter/Selenium scroll down in a specific area and not the entire page

I am having trouble trying to figure out how to scroll down a one section only from the entire webpage. I have tried window.scrollBy(x,y) which works but for th

Cypress - iframes - Unable to target second field, the test hangs then times out

I'm coming across an issue where once my test card number is typed into the first iframe the test tries to target the 2nd iframe (CVC) & it times out whilst

can't move a Slider <input type="range"> with Cypress using arrowKeys

I'm trying to implement some tests here and can't apply my logic to the input range of this website: https://the-internet.herokuapp.com/horizontal_slider here m

Mockito: Verify if restTemplate.exchange() is called

i try to test my SpringBoot application with Mockito. Is it possible to check if a restTemplate.exchange() method is called n times? For example: verify(restTem

How can I save part of a string in an alias using Cypress?

I'm trying to save just a number from a string I get from a paragraph but when I try to asign an alias to it and then check the value it returns undefined. I've

How can I save part of a string in an alias using Cypress?

I'm trying to save just a number from a string I get from a paragraph but when I try to asign an alias to it and then check the value it returns undefined. I've

How to test private functions/methods in Flutter?

I'm currently developing an app that uses the bloc architecture. My bloc is using streams exclusively to communicate with the UI. Therefore all its methods exce

How to test a Django on_commit hook without clearing the database?

The on_commit function has been added to Django 1.9 to be able to trigger an action (e.g. a Celery task) after the current transaction has committed. They ment

0 and 1 - Switch Coverage in State Transition Testing?

This question is not programming related but related to one of test case design the technique. State Transition Diagram technique provides Test coverage by iden

TestCafe Requires Permission To Record Screen but permission is already granted on MAC

I have two TestCafe projects, when I tried to run the old one, it continuously requires Permission to record screen but permission is already granted. The new t

Spring Boot Kotlin Mockito @MockBean dependency throws IllegalStateException null on method call

I am relatively new to Spring and Kotlin. I ran into this problem and it does not seem that there is a comprehensible (for me) explanation anywhere on the Inter

Testing private method using spyOn and Jest

My functions in Calculator class is private and I can't test in this way, describe('calculate', function() { it('add', function() { let result = Calculat