Questions tagged [functional-testing]

Functional testing is a quality assurance (QA) process and a type of black box testing that bases its test cases on the specifications of the software component under test.

Filter by
Sorted by
Tagged with
0 votes
1 answer
87 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 ...
Utkarsh Singh's user avatar
0 votes
0 answers
41 views

Symfony WebTestCase InvalidArgumentException: Invalid "base_uri" option

I am trying to set up functional testing for my symfony 5.4 application. However, I keep getting the following exception: App\\Tests\\Functional\\LoginTest::testSomething Symfony\\Component\\...
Floris's user avatar
  • 1
-1 votes
1 answer
41 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', ...
Juliatzin's user avatar
  • 18.7k
0 votes
2 answers
60 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 ...
Androme's user avatar
  • 2,399
0 votes
0 answers
37 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 ...
anyonymousgamer's user avatar
0 votes
1 answer
39 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, ...
IraIra25's user avatar
2 votes
2 answers
598 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 ...
Tech Noob's user avatar
  • 510
0 votes
0 answers
25 views

How to fix 'Module com.google.common not found' error when creating a Selenium WebDriver class with ChromeDriver?

While creating a simple Selenium webdriver class I'm getting the below error. **Error occurred during initialization of boot layer java.lang.module.FindException: Module com.google.common not found, ...
Anmol Kumar's user avatar
0 votes
1 answer
70 views

How to properly setup TypoScript in a Functional Testcase for TYPO3 CMS 11?

I'm trying to load the TypoScript setup in a functional test into the TypoScriptFrontendController but failing on a lack of documentation / knowledge. How do you setup the TypoScript setup properly in ...
HEYDANNY's user avatar
  • 304
0 votes
0 answers
27 views

Run functional tests with Gradle

I am trying to create a project in Spring Boot, built with Gradle. I created functional tests with Rest Assured. My service is running at localhost and when I run ./gradlew build, my unit tests pass, ...
cholev's user avatar
  • 1
0 votes
1 answer
139 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 <?...
Rakohn's user avatar
  • 31
0 votes
1 answer
62 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 ...
Shalini Dixit's user avatar
2 votes
0 answers
119 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 ); } }...
Xavi Montero's user avatar
  • 9,645
0 votes
0 answers
79 views

Functional Tests for Plotly graphs in Dash Application

My team and I are developing a Dash application and I'm currently thinking about how to run functional tests. So far, we have some pytest code in place that uses selenium to basically click a download ...
Fabian Bachl's user avatar
0 votes
1 answer
299 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: ...
Laodao's user avatar
  • 1,587
0 votes
0 answers
13 views

Grails module inside maven archetype parent project not able to load grails plugins inside grails module

I have a parent maven archetype reactor project having a grails 2.4.4 project as submodule (standalone grails 2.4.4 project in process to a multimodule project), all build phases are working fine only ...
JagatC's user avatar
  • 1
3 votes
1 answer
548 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 ...
Darwin von Corax's user avatar
1 vote
1 answer
390 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 ...
Laodao's user avatar
  • 1,587
0 votes
0 answers
43 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\...
Erics Nguyen's user avatar
0 votes
1 answer
265 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 ...
dev_mustafa's user avatar
  • 1,083
0 votes
1 answer
30 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 ...
Jelmer405's user avatar
  • 189
1 vote
0 answers
251 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: ...
kevinius's user avatar
  • 4,332
0 votes
1 answer
56 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 ...
Joshua Bakker's user avatar
0 votes
1 answer
36 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!!!
vani's user avatar
  • 11
1 vote
1 answer
408 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",&...
harshini reddy's user avatar
2 votes
1 answer
860 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') * ...
harshini reddy's user avatar
2 votes
0 answers
205 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 ...
Kaveh Naseri's user avatar
  • 1,159
1 vote
0 answers
164 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 ...
Wilsinho's user avatar
3 votes
0 answers
259 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 ...
Manish Arya's user avatar
0 votes
2 answers
290 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</...
Tejas Gajjar's user avatar
1 vote
1 answer
3k 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 ...
Panda Wu's user avatar
0 votes
0 answers
42 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->...
Paifo's user avatar
  • 1
0 votes
1 answer
160 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 ...
kofhearts's user avatar
  • 3,656
0 votes
1 answer
180 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 ...
kofhearts's user avatar
  • 3,656
0 votes
1 answer
312 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 ...
Bhagya Swamy's user avatar
1 vote
1 answer
344 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 ...
Radoslav Hadzhiev's user avatar
2 votes
2 answers
3k 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 ...
SilentBob's user avatar
5 votes
1 answer
835 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 ...
Christophe's user avatar
1 vote
0 answers
47 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 ...
Prasad Varma's user avatar
0 votes
1 answer
36 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. @...
user avatar
0 votes
0 answers
83 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 ...
Rishabh Malhotra's user avatar
0 votes
0 answers
840 views

PHPUnit - assertCount() not returning same result

I am using assertCount() method within my Symfony project and PHPUnit Functional tests. I was refactoring a method, and suddenly I does not work any more. But I am not sure what could be a problem. I ...
misafe's user avatar
  • 37
1 vote
1 answer
513 views

How to use the django test's database with Selenium?

I am testing my django app with django TestCase class. For unit tests and integrations tests I encountered no problem with the database django create then destroy for the tests. But now i want to do ...
Barthélémy Déchanet's user avatar
1 vote
0 answers
404 views

Session in Symfony (5.3/5.4) functional tests

Background I updated from Symfony 5.3 to Symfony 5.4. Since then I get an error message, when I start my PHPunit-tests. The error message Since symfony/framework-bundle 5.3: Accessing the "...
Tim K.'s user avatar
  • 315
4 votes
1 answer
1k views

How to write unit test case in loopback 4

I am new to loopback 4. I wish to write unit test cases for my project. However, I could't found proper example where they have used mocking service and using stubs. Please assist me or share any ...
Harshit Rajput's user avatar
3 votes
1 answer
2k views

React Testing Library - Mock Service Worker response not used by component

I have an app that fetches a list of users and displays them. The app works as expected but the test fails: Users.js import React from 'react'; function Users() { const [users, setUsers] = React....
nv.snow's user avatar
  • 874
0 votes
1 answer
291 views

Functional Test Tools for AWS IAM Policy Simulator

This is my first post here, I am working on a AWS CodePipeline which creates new AWS Accounts and assign users through AWS SSO, which has Permissions Set with specific managed IAM policies and inline ...
Arun Janarthanan's user avatar
5 votes
3 answers
2k views

Funtional testing in symfony 5

This is my symfony project where I am practising functional test and I have such error when I am testing my function. Here, The section of code in which my error occur:\ <?php namespace App\Tests;...
Saddam Hawari's user avatar
1 vote
0 answers
3k views

SocketException: Connection reset in apache httpclient

I'm running some test cases from outside of container by calling endpoints of the container (localhost:8087) I'm using apache httpclient to call locally running container but I keep getting connection ...
N.Rajal's user avatar
  • 115
15 votes
3 answers
32k 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 ...
jialeee17's user avatar
  • 651

1
2 3 4 5
30