1,493 questions
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 ...
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 ...
-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 ...
1
vote
0
answers
257
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 ...
1
vote
0
answers
41
views
how to spy/argumentcaptor of background thread to verify in karate-spring boot application
I've a scenario, API service running in springboot and trying to port the existing functional Test to karate based testing. I've added. the API endpoint based configuration and other validation for ...
1
vote
0
answers
54
views
Entity Framework Core in memory reading wrong data type
My functional tests use Microsoft.EntityFrameworkCore.InMemory version 7.0.20.
When I run the functional tests for any entity that has a dateonly field, I get an error:
Expression of type 'System....
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&...
0
votes
0
answers
327
views
Cypress e2e test can't access app url in GitHub Actions
I am trying to set up an e2e test in my app using Cypress and GitHub Actions.
The tests pass in local with no issue but, when I push to GitHub and consequently run the tests, they don't anymore. The ...
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 ...
0
votes
0
answers
45
views
How to functionally test an app that has a GUI and also CLI
How should I functionally test an app from which you can execute its functionalities either through the GUI or through CLI? If I make changes to a functionality, lets say "Read a file"; ...
1
vote
0
answers
124
views
jest tests prisma error 'Foreign key constraint failed on the field: `ResetPasswordToken_userId_fkey (index)`' while testing nest app
I have a problem while performing functional tests on nest app. Testing app is builded with nest Test.createTestingModule.
describe('createResetPasswordToken', () => {
it('should create reset ...
0
votes
0
answers
81
views
Create JUnit tests for a card validating method
I created a Java method that takes a card number and an expiry date and validates the card.
I used Luhn's algorithm for validating the card number.
public static boolean isValidCreditCard(String ...
0
votes
1
answer
66
views
Difference between functional and regression test cases
I am aware of the definition of functional and regression test case. But I am not able to distinguish which test case should fall in functional and which one should fall in regression test.
For ...
0
votes
1
answer
985
views
Code coverage report for testcases written in robot framework for Java application
I have a scenario where I am trying to get the coverage report of the functional testcases we have written using robot framework.
Application backend is written in java and UI code is written Vue.js
...
-1
votes
1
answer
183
views
Functional testing using User model in a Laravel 8 package
I am coding a Laravel package, and I have written functional testing. For that, I need to seed users, using factories.
In my config, I have :
'user' => [
'table' => 'users',
...
0
votes
2
answers
3k
views
How to unit test repositories using Entity Framework
I am building a system using Entity Framework as as my repository, and while i agree that i should not be testing Entity Framework i would like to be able to verify my logic around Entity Framework in ...
0
votes
0
answers
44
views
Mocking Classes/ methods in ruby in a functional test?
Background:-
I'm currently writing a functional test for a particular controller's action in order to validate its functionality by making a POST request.
Background on controller's action -
This ...
0
votes
1
answer
95
views
What parameters are missing when I use this function? Python, Pytest
I am trying to call a function to use it result in parametrize. I use fixtures in this function and when I call it at the class level, I see an error.
My code:
def subscriber_groups_ID(self, ...
2
votes
2
answers
2k
views
Could not create instance of functional test class. Specs must have a public zero-arg constructor
I am working with Kotlin, Micronaut and Kotest5. Setup a functional test directory in gradle. Created functional test in it. Test runs fine, however if I am injecting objects in the test class ...
0
votes
1
answer
403
views
Symfony 6 WebTestCase return 500 or 404 response
I need your help for a basic functional test with Symfony 6.2.
I try to implement WebTestCase class to my project. Problem is, the tested route return an internal server error.
Here my test class
<?...
0
votes
1
answer
97
views
Cannot use import statement outside a module of axios
while react component testing I'am facing this issue and I don't understand how can i solve this issue. I have added all the necessary elements but still facing this issueenter image description here
...
2
votes
1
answer
306
views
Functional test a controller using session in symfony 6 (after the 'session' service has been deprecated)
In controllers in Symfony 5 I used to inject the Session and use it.
class MyNiceController
{
public function __invoke( Session $session )
{
$this->useTheSession( $session );
}
}...
1
vote
1
answer
861
views
How to insert into the database booted in the test container in my junit testing code
I have the following code in the docker-compose.yml file to have a database started in my test container (the exposed port is dynamic).
postgres:
image: my-proxy.jfrog.io/postgres:12
ports:
...
3
votes
1
answer
1k
views
Starting a Flask Server from Within Test Code?
I'm working through the Flasky tutorial from Miguel Grinberg's book Flask Web Development 2e and I've run into a snag with the end-to-end testing in Chapter 15. When I try to run the code I get a ...
1
vote
1
answer
1k
views
Wiremock trigger a rest post call
I understand that wiremock is used to simulate a service's response, given a request. However, I am wondering if we could use wiremock to mock a service and then use this mocked service to send out a ...
0
votes
0
answers
83
views
Using another service.yaml configuration file in unitest instead of default in symfony 6
I have a microservice that use JWT for authentication/authorization, and it just need a verify an jwt token is correct or incorrect, so in the code, i only implement the decoder for JWT.
Lcobucci\...
0
votes
1
answer
506
views
symfony ux-autocomplete functional test case symfony php unit
I've implemented symfony ux autocomplete with ajax loading. Which is working 100%.
When you implement it using ajax it loads nothing in the select dropdown unless you search and it will show the ...
0
votes
1
answer
57
views
Loop through multiple accounts in codeception functional test
I got multiple accounts: "userWithCertainRole", "userWithAnotherRole" & "userWithTwoRoles". I want to functional test a specific page for all these accounts with ...
1
vote
0
answers
384
views
drupal 9 phpunit functional testing database user issue
I'm trying to get up and running with drupal php functional testing. However there seems to be something wrong with my phpunit.xml cofiguration. When running the test i get the following error:
...
0
votes
1
answer
84
views
Symfony phpunit functional test edit confirm inconsistent
I added some functionality where if you edit an item that somebody edited in the meantime, you go to an "edit confirm" page where you can select which changes you want to overwrite.
How it's ...
0
votes
1
answer
82
views
which tool supports Flutter error bug reporting tool while running automation scripts
I am working in Flutter Android mobile application automation. I am looking for a tool that supports to generate the Bug report while running the automation scripts. Please advice!!!
1
vote
1
answer
956
views
Karate match two json files(expected json and API response) irrespective of the order of array elements
Expected Response:
{"data":{
{"assignments":[{"locationId":"1186755","locationName":"X.11.11"},{"locationId":"1186756",&...
2
votes
1
answer
2k
views
Karate - Iterate through array and call rest api for each value
Scenario:
* def Test_assignment_type = 'ALL'
* def TEST_NODE_ID = '123455667'
* def list = [ '123', '1234', '12345' ]
* def gId_list = karate.mapWithKey(list, 'HOOK_TEST_LOCATION_GID')
* ...
2
votes
0
answers
306
views
Functional tests fail when run together, but pass when run separately
I'm implementing a project using .net-core and microservices base on eShopOnContainers. In my functional test I previously put all the tests in one class called IntegrationEventsScenarios.cs and now ...
1
vote
0
answers
288
views
Automated Testing of a Webview
Talk to me QAs!
Has anyone done automated tests (E2E) of a webview mobile app (developed in react) ? The application does not open on the web, only on mobile devices.
If yes, which testing framework ...
3
votes
0
answers
480
views
Why multiple tests are not allowed in robotframework-datadriver while using csv file.. is there some workaround?
Problem Statement:
I want to have 1 robot file with 3 Test cases
1st test case would not use any Test Template
2nd test case would use a Test Template using Variables in 'Variables' section so as to ...
0
votes
2
answers
486
views
Find Codeception first elements with more than one CSS class with same name
I have something like the following markup:
<div class="test">
<div class="test2">test</div>
<div class="test2">test2</div>
<div class="test2">test3</...
1
vote
1
answer
5k
views
Spring Boot Cucumber Test with Junit 5 will not load application-test.properties
I am not able to get my Cucumber test to read from the application-test.properties file, which resides in the test/resources folder. The cucumber test is reading the features, but the application ...
0
votes
0
answers
43
views
doubles subtracting isn't returning the right number c++ [duplicate]
I'm creating functional tests to my program, but for some reason when I wrote system1->getValue() - 36.6033 I got a crazy number like -6.58727e-005. I've done some debbuging and system1->...
0
votes
1
answer
234
views
How to run geb functional test in https?
My application requires the app to run in https since the browser sends payment data to payment gateway through JavaScript library.
If the app is run in http then this error is thrown by the payment ...
0
votes
1
answer
256
views
geb withconfirm throwing No signature of method: geb.navigator.NonEmptyNavigator.getJs()?
I have created a simple hello world app and here is the spec to test withconfirm block.
https://github.com/learningcscience/confirmgeb/blob/master/src/integration-test/groovy/booktest/BookSpec.groovy
...
0
votes
1
answer
443
views
Intercepting a HTTP request in the middle of a test in Testcafe
I am writing a functional test using Testcafe. The test scenario is as below,
There is a toggle button that activates/deactivates based on an API call
When I open my application, an API call is made ...
1
vote
1
answer
453
views
How to assign new value to a ModelForm field which form edits user data, to test if the data will be edited Django test TestCase
I'm testing Django forms handling and trying to test a ModelForm, which form edits the user's data. I tried to write the test in several ways, but each one throws different mistakes. And all the ...
3
votes
2
answers
5k
views
How to access Session in PHPUnit WebTestCase (Symfony 5)
I'm trying to test methods which requires Sessions in my PHPUnit WebTestCase, with no success.
PHP 8.0, Symfony 5.4
Here's my code:
When user log-in, I'm saving custom info in session:
public function ...
5
votes
1
answer
1k
views
How to test form submission with wrong values using Symfony crawler component and PHPUnit?
When you're using the app through the browser, you send a bad value, the system checks for errors in the form, and if something goes wrong (it does in this case), it redirects with a default error ...
1
vote
0
answers
73
views
How to find number of links and print them, when mouse is hovering a element in UFT?
Recently I came across fireevent and I tried to implement it on the website of Flipkart. I was trying to use firevent("onmouseover") for the link.
I searched for mobiles in the search box ...
0
votes
1
answer
44
views
Mockito Mocking not working as expected during functional test
I have a two classes let's say classA and classB. classA calls a method in classB which saves some value in a database using the DaoClass.
I have to test if the values are getting saved in database.
@...
0
votes
0
answers
105
views
StatementInvalid: SQLite3::BusyException: database is locked
I have referred various answers on StackOverflow but I still haven't been able to resolve this issue. I am sharing the code for my controllers_test.rb and along with that the screenshot. Every time I ...