Questions tagged [testing]

Software testing is any activity aimed at evaluating an attribute or capability of a program or system and determining that it meets its required results.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

flutter run vs. right click run

I have a test file that needs to be ran on a device as opposed to the emulator. This is the test: @GenerateMocks([GeolocatorWrapper, PermissionsWrapper]) void main() { TestWidgetsFlutterBinding....
smiles79's user avatar
0 votes
0 answers
6 views

Test: How can I tap on a Google Map marker inside my app using maestro mobile UI testing framework

I'm new to programming and Maestro. I'm developing a native Vue 3 application that uses the Google Maps plugin. I've added multiple markers on the map and need to perform some tests, specifically ...
user17524413's user avatar
1 vote
0 answers
13 views

Multifunction custom JS file in karate 1.4.1

I am in the process to upgrade the karate version from 0.9.6 to 1.4.1 and could see following issues, Multifunction javaScript file isn't supported Common functions needed to be added as inline ...
Afreen Patel's user avatar
0 votes
0 answers
14 views

How to pass email preview link to Cypress test file?

I build registration form in Nextjs. When user press submit I update database and send confirmation email. How can I pass email preview url to register.cy.ts file? Full implementation: I'm writing end ...
Arnas Dičkus's user avatar
0 votes
1 answer
19 views

Wrapped mat-radio component tests input checked property not working

Hi I am trying to wrap the mat radio button and write unit test but im now blocked on this: "should uniquely select radios by a name". I am trying to test the wrapped component with some ...
luigi denora's user avatar
0 votes
1 answer
19 views

PICT: Incorrect numeric value

I use pict.exe from Microsoft for pairwise testing. I have following input file content: SomeString: Value1, Value2 SomeFloat: 0.00, 50.00, 100.00 IF [SomeString] = Value1 THEN [SomeFloat] = 0.00; ...
pklgn's user avatar
  • 43
1 vote
0 answers
24 views

Mock 2 clocks for different integration in same class - Micronaut

I'm facing an issue in my Micronaut integration test where I'm trying to use two different fixed clocks in two separate tests. One should be set to 10th Oct 1800, and the other to 10th Oct 1900. ...
ajinzrathod's user avatar
0 votes
0 answers
7 views

How to setup react testing library with useLoaderData?

I have problem with react-router-dom 6.16 and react testing library with vitest. App.tsx const router = createBrowserRouter([ { path: '/', element: ( <Root /> ), children:...
Slavo's user avatar
  • 1
0 votes
0 answers
6 views

the issue with this.fnIsolatedFormatter not being recognized as a function (QUnite Tests SAPUI5)

I'm encountering an issue with my QUnit tests in my SAP UI5 application. The specific problem is related to this.fnIsolatedFormatter not being recognized as a function within the QUnit tests, ...
youssef khemiri's user avatar
0 votes
0 answers
7 views

Why spyOn function is not executing

I' testing endpoint router.post("/changeRadius", async (req, res) => { try { const radius = req.body.radius; const id = req.body.id; if (radius === null) ...
daweek's user avatar
  • 1
0 votes
0 answers
16 views

How do I add random values to the request body using the Taurus performance test?

This is my perfomanse test, but it's not clear how I can add random values for email and phone taurus_config.yaml : execution: concurrency: 10 ramp-up: 1m hold-for: 10m scenario: create_user ...
Goro's user avatar
  • 55
-1 votes
0 answers
25 views

Unable to verify the first certificate while Installing Playwright Browsers

I am getting the Unable to Verify the first certificate and Unable to verify the leaf signature error while installing the playwright browsers pl suggest me how can i resolve this issue,i am using vs ...
Onkar's user avatar
  • 1
-2 votes
0 answers
23 views

Which is a better testing frame work: Cypress or Pytest? [closed]

I am looking to choose a testing framework which would support the following requirements: UI automation API automation CI/CD support Opensource with good online community to discuss about (a good ...
Summa11's user avatar
1 vote
1 answer
39 views

Execute the playwright tests in sequence

I have the following directory with test: Where inside the "api" folder there is test and inside the "front" folder as well. In the test.ts file I have the following: and in the ...
Stella Esparza's user avatar
0 votes
0 answers
38 views

Playwright keep data when error is thrown in test

import {expect, test} from "@playwright/test"; test.describe('tests', () => { let strings: string[] = []; test('test 1', async () => { strings.push('a'); ...
Andrii Andrieiev's user avatar
0 votes
0 answers
18 views

Playwright - Check if browser has been opened

In one of my tests, I click on a link that leads to the browser being opened. I only want to check whether the browser has been opened, as this is enough for me to know that the test was successful. I ...
fabian09's user avatar
  • 111
-2 votes
0 answers
29 views

How can chatGPT be used in software testing process? [closed]

chatGPT maybe a teachable tool. But can it be used in the process of automating the software testing process? if so, in which stages can it be effective? I tried using it in the process of test case ...
Legion's user avatar
  • 1
0 votes
0 answers
10 views

Getting "useLocation() may be used only in the context of a <Router> component" error while testing react router component with vitest [duplicate]

I'm new in react router and react testing and i keep getting error as in title. I think problem lies in NavLinks in Header. main.jsx: ReactDOM.createRoot(document.getElementById('root')).render( <...
kapi104's user avatar
0 votes
0 answers
44 views

oracle.jdbc.driver.OracleDriver - Getting this error wheni try to run in Azure devops but in local its working fine

Getting this error when I try to run in Azure DevOps but in local its working fine. java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
Suresh's user avatar
  • 1
-1 votes
2 answers
39 views

why prefering @TestConfiguration than @Configuration in src/test

i currently study more in deep the @TestConfiguration and i wonder why using this combo.. @TestConfiguration public class TestConfig { // some bean definitions and then using @...
work-in-progress's user avatar
0 votes
0 answers
45 views

How to simulate long running queries against modern analytical DBs [closed]

When building integrations against modern data platforms like Snowflake, Redshift, Databricks, BigQuery, etc, it's often useful to test that you're correctly handling edge cases. For example, you need ...
aiguofer's user avatar
  • 1,985
-1 votes
0 answers
6 views

What are the trade-offs of using Unit test functions vs Test Scripts in pgTAP?

I recently got into pgTAP to write test for SQL code, when reading documentation found that there are two ways to write tests Scripts : Where you write all related tests/cases in single file. Unit ...
user158's user avatar
  • 13k
0 votes
1 answer
10 views

How to get the verify in selenium Python

I am writing a test for cancel a data request at the page: https://school.moodledemo.net/admin/tool/dataprivacy/mydatarequests.php There is a pop-up when cancel a data request My code to catch this: ...
prosecutor's user avatar
1 vote
2 answers
69 views

How to test code that returns external information

Let's say I want to make a module of code that provides utilities for fetching information about the user's monitors. Just looking at perhaps one function, let's say we want to write a ...
wigi426's user avatar
  • 103
0 votes
0 answers
23 views

ErrorResponseException test java.lang.NullPointerException: Cannot invoke "org.springframework.http.HttpHeaders.isEmpty()"

When test ErroResponseException throws: java.lang.NullPointerException: Cannot invoke "org.springframework.http.HttpHeaders.isEmpty()" because "this.headers" is null at org....
Rain1987's user avatar
0 votes
1 answer
37 views

How to have an instance object available to all tests?

I am writing component tests for an http service. I have a test runner class that houses some helpful structs and shared functions (mostly just "make an http call" and "compare json ...
Raeglyn's user avatar
  • 105
0 votes
0 answers
7 views

CucumberJS and Allure-CucumberJS: Result File Not Generated

I have done my due diligence searching for an answer to this, but I cannot figure it out. I am using "@cucumber/cucumber": "^8.0.0" to run my tests. Example script in package.json:...
CoffTm72's user avatar
1 vote
1 answer
38 views

Cypress avoid waiting for background image loading

I am writing a test for a login page: cy.visit(loginUrl); // type username and password cy.get('#user').type(email); cy.get('#password').type(password); cy.get('#submit').click(); But I can see ...
Varun Sukheja's user avatar
0 votes
2 answers
31 views

Create a flutter app how search, connect and dialogue with bluetooth motherboard [closed]

We have to create a flutter app how connect to other bluetooth motherboard. Our work is similar to an application for connected light bulbs. We tried to creat emulator bluetooth app on phone to try to ...
Romain Geurts's user avatar
1 vote
1 answer
33 views

Unable to download PDF file using playwright with js because it's open in preview mode in Chrome browser [closed]

I am facing an issue where I am unable to download a PDF file because it opens in the preview mode in the Chrome browser i want to enable this option using playwright with JS so i can download ...
Avinash Chauhan's user avatar
0 votes
1 answer
38 views

Trying to use JavascriptExecutor to test a button but getting 'Unexpected keyword or identitfier'

I have the following line in my code: JavascriptExector js = (JavascriptExector) driver; I'm getting red lines under it with the error message Unexpected keyword or identifier i tried importing import ...
Hadi Mazboudi's user avatar
0 votes
1 answer
18 views

Unit tests fail after upgrading from NServiceBus 7 to NServiceBus 8

After upgrading my application to use NServiceBus 8 from NServiceBus 7 I had problems with my unit test project. I upgraded the NServiceBus.Testing package that my unit test project depends on to ...
Clinton Avery's user avatar
0 votes
0 answers
28 views

Cypress failing in Jenkins but passing in local

Cypress is having problems finding elements or clicking on certain things sometimes when I run the test through the Jenkins pipeline, but there are no issues when running it on local. Not Finding ...
Dmns's user avatar
  • 11
0 votes
1 answer
28 views

Jest not recognizing ECMAScript Modules

I am getting an error when i run the test Jest failed to parse a file. This happens when your code or its dependences use non-standaed javascript syntax. ({"Object.<anonymous>":...
Harrshini B's user avatar
0 votes
0 answers
17 views

Capture multiple arguments with NSubstitute

I am using NSubstitute to write a unit test, and am trying to capture multiple method arguments passed in a method call. I understand that I can capture a single argument using the Arg.Do<T>() ...
Filip Östermark's user avatar
0 votes
0 answers
47 views

Ask help for cargo test for no_std

In my project, I used #![no_main],and have the following in my Cargo.toml [profile.dev] panic = "abort" [profile.release] panic = "abort" cargo build works, but cargo test fails ...
Nada.Zhao's user avatar
-1 votes
0 answers
12 views

Infotainment testing from Laptop ( Mac) Android auto testing from laptop

I wanted to know How we can connect infotainment system to laptop. I wanted to test android auto functionality of infotainment on laptop by writing robot python test cases on maps,music etc. So wanted ...
Vishruth's user avatar
2 votes
1 answer
48 views

How to call Nodejs's garbage collection on Angular jest tests? Tests are slow and leaking memory with node v20

After upgrading NodeJS to v20 my project started to run into the following error when running its tests: FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory As well as ...
The Fabio's user avatar
  • 5,707
1 vote
1 answer
29 views

Listen for console message with chromiumoxide

For the purpose of creating a test suite, I am using chromiumoxide and trying to execute some Javascript which contains console.assert statements and to listen for errors and any error messages. For ...
Max888's user avatar
  • 3,247
0 votes
0 answers
19 views

Why is my phyton mock only working with a specific way of import?

I have a utils class that besides other stuff has a function to get an id: # utils.py def get_id(): return ... Also, there is another class, lets say its about cars, that uses this function: # ...
ningelsohn's user avatar
-1 votes
0 answers
41 views

Golang parallel test - logging inside inner functions

I'm running go test with t.Parallel set in all my tests. During the test I call multiple inner methods from other packages I developed. All of these methods are using log.Printf for logging. When I ...
Tomer Bar's user avatar
0 votes
0 answers
28 views

Locust - Simulating 1000 non-concurrent users over certain period of time

I am trying to simulate 1000 non-concurrent users over a period of time. The goal is to evenly distribute them and test real life application. What I'm struggling is finding a way to let user be only ...
Mark Marky's user avatar
-3 votes
0 answers
12 views

what is command name in DOS used to create file? [closed]

I am unable to understand . Trying to improve it but want a good and acceptable answer. Please anyone help me to get the right answer. Anyone in the world try to answer please. I am unable to ...
Kunwar Isht Dev Pratap Singh's user avatar
0 votes
0 answers
15 views

Why I am seeing this error "one or more matched elements are not visible" when click on steps in cypress?

When I click on one of the cypress history steps it does not highlight the element in the DOM that is being rendered, I can also see a crossed out eye icon and when I put the course in the steps it ...
Luis Zarza's user avatar
0 votes
0 answers
10 views

How to run Winrunner test scripts?

I am currently working with a legacy code and most of the unit test for this is written in Winrunner tool. Unfortunately I am unable to find this tool to download, anyone has any idea where I can get ...
Ashish Kumar S's user avatar
0 votes
1 answer
36 views

SpringBootTest cant fill Map in my Service

i have this service @Service @Slf4j public class RepoService{ private final Map<EnumRepoType, EnumRepo<? extends AbstractType>> firstMap; private final Map<RepoType, Repo<? ...
FaiLError's user avatar
0 votes
0 answers
39 views

Bazel test with expect_failure = True and "bazel cquery //..." failure

I use Bazel and bazel_skylib for test. There are a few targets that should fail and I test it with expect_failure = True and all work correctly. Also, the target that fails is marked tags=["...
Denis Zheltikov's user avatar
0 votes
1 answer
69 views

How to see the number of points scored when exporting answers on the LimeSurvey platform? [closed]

Good evening, the survey participants were tested on the LimeSurvey platform. For each answer, I assigned a score and after completion, users see the number of points scored. But when I export answers ...
Olya's user avatar
  • 1
0 votes
0 answers
36 views

Cls is undefined on my testing module nestjs

I have an interceptor that works in production but doesn't work when I run tests. The implementation of the test module is the following: const moduleFixture: TestingModule = await Test....
Nicola's user avatar
  • 1
-1 votes
1 answer
26 views

Breadcrumbs navigation for Test catalog / test environment

i've got a task at my job as internship to enable a breadcrumb navigation for their test catalog in vs code, which I unfortunately can't post here for security reasons. But basically looks like this: @...
Gilchrist's user avatar

1
2 3 4 5
1001