1,493 questions
476 votes
15 answers
250k views
What is the difference between unit tests and functional tests?
What is the difference between unit tests and functional tests? Can a unit test also test a function?
37 votes
5 answers
123k views
How to pause the test script for 3 seconds before continue running it? Playwright
I'm running a test called create admin. The test will first create admin, then check if the admin was created successfully. In the script, I have a part of code where I want to wait for 3 seconds ...
1 vote
2 answers
71 views
How can you write functional tests for an ASP.NET Core gRPC webservice with .NET 8 [closed]
I'm having issues trying to write a functional test for a ASP.NET Core gRPC web service, after investigating a number of articles on the issue, but with all of them referring to use of the Startup ...
0 votes
2 answers
3k views
Running into "Target page, context or browser has been closed" issue
The below code is my Playwright test function test("@Login @Testing Sign In Page Test", async ({ page }) => { console.log("Sign In Page Test"); const ...
108 votes
9 answers
192k views
Catching exceptions from Guzzle
I'm trying to catch exceptions from a set of tests I'm running on an API I'm developing and I'm using Guzzle to consume the API methods. I've got the tests wrapped in a try/catch block but it is still ...
1 vote
1 answer
161 views
DeepFace Analyze - Test scripts for batched image processing
I am having trouble getting image analysis batch processing to work. I would like to send a list of images to DeepFace to get a list of race, gender, and age predictions. I am calling test functions ...
172 votes
11 answers
133k views
Difference between acceptance test and functional test?
What is the real difference between acceptance tests and functional tests? What are the highlights or aims of each? Everywhere I read they are ambiguously similar.
54 votes
2 answers
16k views
What's the meaning of the percentages displayed for each test on PyTest?
I'm new to testing with Pytest, and I've run into a minor but annoying hangup. In the command line test session results, I see my tests passing, but the percentage shown is not 100%, for some tests. ...
2 votes
1 answer
4k views
How to fix flaky test on Playwright?
Hi I have this app that I'm testing. The app itself will fill the value and click the button to provide the data on table. However, in reality it takes more than 40 seconds to load the data itself so ...
1 vote
0 answers
254 views
How do you generate Gorm tables with relations?
I'm trying to achieve this Add functional tests to my Go project The tests should bring up an actual MySQL database (by connecting to a docker container already up and running from the docker ...
-2 votes
1 answer
63 views
In Smart bear floating license, how to know the license is available for user before InstallTestCompleteAdapter task run?
In case of Smart bear floating license, how to know the license is available for user before InstallTestCompleteAdapter task run? i want to know whether the floating license is available or not for ...
51 votes
13 answers
71k views
Best way to take screenshots of tests in Selenium 2?
I need a way to take screenshots of my functional tests. Right now I'm using Selenium 2 with C# bindings. I pretty much want to take a screenshot at the end of the test to make sure the desired page ...
54 votes
11 answers
40k views
Set Rspec default GET request format to JSON
I am doing functional tests for my controllers with Rspec. I have set my default response format in my router to JSON, so every request without a suffix will return JSON. Now in rspec, i get an error ...
0 votes
1 answer
113 views
MSTest Serilog Console issue
I have a library C# project which has services written. This is using serilog and able to print serilogs on console during normal execution. But when I am using same library within my functional test ...
0 votes
1 answer
153 views
get php version which codeception tests are running
I'm trying to upgrade my project's php version from php 7.4 to php 8.1, Now I changed the php version in my composer.json to php 8.1 like that: "require": { "php": "^8.1&...