50,452 questions
Advice
0
votes
1
replies
20
views
How to use a separate classes (stubs) in vitest?
I've migrated my angular 21 tests from jasmine to vitest. And for some of my tests I use separate helper classes (like Page object models). For example:
export class SignUpPageObject {
constructor(...
0
votes
1
answer
38
views
I have problem where i have an .exe application and i am trying to open it but it is giving me the error as shown below. I am attaching the code below [closed]
import subprocess
import os
from selenium import webdriver
from time import sleep
import getpass
username = getpass.getuser()
sleep(5)
port = str(_AD_.Port)
##print(port)
cmdurl = 'http://localhost:{}'...
1
vote
2
answers
120
views
Spring Boot 4.0.0. cannot resolve symbol DataJpaTest
I am new to Java and Spring Boot. I am building a small CRUD app to learn about JPA and the H2 database.
This is my POM file:
<?xml version="1.0" encoding="UTF-8"?>
<...
Best practices
0
votes
0
replies
22
views
Implementing Page Object Model (Playwright vs Cypress)
I started using Playwright, and one of the first things I noticed is that if you're trying to implement a custom page object that stores methods, click actions, and assertions, you should create a ...
0
votes
0
answers
41
views
ESP32 Audio Kit produces no sound despite correct Arduino board settings [closed]
I am trying to do a sound test on the ESP32 Audio Kit, I have tried lots of things but no sound comes out, knowing that when I upload my Arduino code it does nothing until I press the RST button. In ...
0
votes
0
answers
22
views
How is integration testing performed in Canvas Apps, Model-Driven Power Apps, and standard web applications? [closed]
“I want to understand what integration testing is and how it is done in different platforms. How do we test that parts of an app work well together in Canvas Apps, Model-Driven Power Apps, and regular ...
Advice
0
votes
3
replies
65
views
How to navigate to domain (not url) in Python Playwright?
I know that Playwright has Page class with goto() method, but it accepts url only. In my use case I'll most probably test sites knowing only their domain, so I'd have let's say google.com as url ...
-1
votes
2
answers
61
views
Selenium use database for Chrome but not for Firefox
I have an app for listing my books.
I want to test my code in chrome and firefox both, using the fixture in my database but without touching the real database. In the database I have some data for the ...
1
vote
1
answer
81
views
HttpTestingController runs endlessly
In my component I have httpResource:
export class EmployeesComponent {
employees = httpResource<EmployeeResponseDtoOutput[]>(() => '/api/employees', {
defaultValue: [],
});
}
and in ...
0
votes
1
answer
52
views
nicegui.testing with User fixture for upload file ui.upload
Hello i am new on nicegui, i create a simple app where i need to upload the files and store this files on ftp server. I start to make some tests with nicegui.testing.User (i use this package because i ...
Tooling
0
votes
1
replies
40
views
How to write test code for Prisma version 7
For testing Prisma, I used prismock or prisma-mock . But those packages are compatible with Prisma version 6 or earlier. I visit the Prisma Official website, and they are suggesting using jest-mock-...
Tooling
1
vote
1
replies
62
views
What is the current recommended way to run integration tests in Flutter (since integration_test is discontinued)?
I’m setting up integration tests in a Flutter project and noticed an inconsistency between the official documentation and the current state of the packages.
The official Flutter documentation still ...
0
votes
0
answers
16
views
How do I create Test Suites in Kiwi TCMS?
I'm using Kiwi TCMS and I can't find the option to create a new Test Suite.
I expected to see a "New Suite" button under Test Cases, but it's not visible in my interface.
These are the steps ...
Tooling
1
vote
2
replies
39
views
Looking for a test management tool with fast test run logs and clean test case organization
I’m evaluating test management tools for a small QA team and trying to find something lightweight yet reliable for test case organization and test run tracking. Some of the traditional options I’ve ...
0
votes
0
answers
67
views
emberjs tests not running [closed]
My tests are not running anymore, abort with this error:
Error: No tests were run.
at ProcessingQueue.done (webpack://__ember_auto_import__/./node_modules/qunit/qunit/qunit.js?:819:583)
at ...
Best practices
3
votes
0
replies
38
views
Testing with corroutines
Let's say I have Worker class and I want to do long running tasks in the background until user stops it or it is cancelled. It changes state of the class while doing the work and I want to write tests ...
Tooling
0
votes
2
replies
50
views
How to write tests which analyze HTTP requests made on NextJS server side?
I work on a NextJS project with Pages Router. We are using Jest for unit tests and Playwright for E2E.
The application we are making is a funnel with several steps. Each step is a form with several ...
Best practices
0
votes
1
replies
63
views
Testing in MVVM architecture. What to test and how to approach TDD?
I’m currently working on a personal Android project using Kotlin and Android Studio, following a basic MVVM architecture:
─main
│ ├───java
│ │ └───com
│ │ └───example
│ │ └───...
0
votes
0
answers
25
views
Why is <c:if test="#{MyBean.myFunction()}"> rendering multiple times in my xhtml file?
I have a large xhtml file, below the imports there is a component that should only render when a test from a Bean returns true.
<c:if test="#{MyBean.myFunction()}">
<div id=&...
-3
votes
0
answers
82
views
Entering text with no dependency on current keyboard layout
If a GUI test must involve entering text in a text field, a convenient shortcut is robot.enterText(..) (available in both FEST and its fork, AssertJ Swing).
I was under the impression the utility is ...
Advice
0
votes
0
replies
45
views
Make Bazel use either RUNFILES_DIR or RUNFILES_MANIFEST_FILE?
Bazel on Linux usually sets the RUNFILES_DIR environment variable but it may alternatively set RUNFILES_MANIFEST_FILE. General advice for scripts is to make your scripts capable of working with both. ...
Advice
0
votes
0
replies
40
views
Designing a props-driven test framework for data quality validation - best patterns?
Question: I'm building a testing system for a data quality SaaS app where tests are entirely props-driven (similar to React component testing philosophy).
Goal: Create reusable, composable test ...
0
votes
0
answers
29
views
WebdriverIO element selector not finding validation error text with xPath - returns false for isExisting() & isDisplayed()
I am testing a web UI using WebdriverIO, specifically an email send form. This test must ensure that the error helper text (like "email required") are displayed when submitting the form ...
1
vote
0
answers
40
views
Locust POST Request with .xlsx File to Flask Endpoint Returns a 503 Error
I am testing my Python Flask app using Locust to load-test a POST request with an .xlsx file attachment. However, I consistently encounter a 503 Service Unavailable error.
This issue ONLY occurs when ...
Best practices
0
votes
1
replies
27
views
Is there a way to reference contracts deployed on anvil in a typescript test?
Right now, I am deployed contracts on anvil with a script, logging the addresses, and hardcoding it into my viem typescript test. Is there a more seamless way to do ts tests in conjunction with smart ...
0
votes
0
answers
55
views
Mockito MockStatic behavior leaking to other junit tests
I am using Mockito 5.20.0 to mock a static method, but the mock is not correctly closing / the mocked behavior is leaking outside of the tests it is intended to apply to. This is only a problem if ...
Best practices
0
votes
6
replies
72
views
Workflow from feature development to staging test to production run
The title is somewhat difficult. I try to explain what I want the input from you all.
My current practice from a feature/bug development towards the codes journey to the production is the following.
...
Best practices
0
votes
0
replies
42
views
How to run tests with CDK pipelines
We are building and deploying a few system using the AWS CDK Pipeline, mostly with dotnet
Most cases we are building the deployed apps using dockerfile assets referenced in the CDK
Should we run the ...
-1
votes
1
answer
87
views
Can I construct my own env::Args instance in Rust for testing purposes? [duplicate]
I'm writing a Rust program where I do manual command-line argument parsing. I skip the first argument since that's the executable and I don't care about that, then check the second argument for what ...
Best practices
0
votes
0
replies
23
views
"Test only" endpoints purely for e2e tests?
Context: Fullstack program which implements reconnection logic that utilizes TTL session expiries that are managed on the backend to determine whether or not a session is "still open to rejoin&...
Advice
0
votes
2
replies
108
views
How to run and test software code and then put it in hardware
I'm trying to build my own handheld games console similar to a Game Boy.
Currently for the POC I’m using the Arduino Uno, separate SD card reader module and 2.4 inch TFT Display. I want to put the ...
0
votes
1
answer
166
views
AWSSDK.S3 causes x-amz-content-sha256 error against minio
I'm using the AWSSDK.S3 for .NET (v4.0.9.1) in my app. For my tests I run minio in a docker container. I know this worked in the past but with an update to the current versions of the SDK and the ...
-3
votes
1
answer
117
views
How can I test a Python script that batch renames files?
I have a script that iterates through folders in cwd. pull the date from each folder's name, then rename files in each folder with said date, and move them up (and out) of their parent folder.
e.g. ...
1
vote
1
answer
85
views
Zustand persist doesn't execute in testing
I am doing unit testing for my project.
This is the code I want to test:
import { create } from "zustand";
import { persist } from "zustand/middleware";
interface LanguageState {
...
0
votes
1
answer
94
views
Testing Eloquent model events in Laravel 11
I can't seem to find a definitive answer on how to test the following boot methods using PHPUnit tests in Laravel.
I'm referring to the mthods in public static function boot() on a model.
Survey model ...
0
votes
0
answers
47
views
Unable to move Test Case work items between projects in ADO “Work item type Test Case cannot be moved because it is disabled, hidden or not supported”
I'm trying to move Test Case work items from one Azure DevOps project to another within the same organization.
However, when I try to move them, I get the following error:
Work item type Test Case ...
0
votes
0
answers
133
views
Laravel PHPUnit test: Multiple databases issue
In my Laravel application, I have set up two databases in a single server. All specific migrations and model classes have $connection property set up to use blog instance. The app works fine, no ...
0
votes
1
answer
53
views
I can only run my backend tests locally because all the instances of the mocked environment are created and into the actual db because of celery
I want to create tests but every time I run a test it triggers celery and celery creates instances into my local db. that means that if I run those tests in the prod or dev servers, then it will ...
0
votes
1
answer
48
views
Appium inspector not displaying app loaded in ios Simulator
I'm constructing an mobile automation frame using appium with webdriverIO. My employer is in the early stages of constructing their app so I'm using a boilplate WDIO app as it's a hybrid app.
I'm ...
2
votes
0
answers
58
views
How to properly handle native JavaScript confirm() in Laravel Dusk without triggering UnexpectedAlertOpenException
I’m writing a Laravel Dusk browser test for a “Delete Contact” button that shows a native JavaScript confirm() dialog before deleting a record.
However, every time the test runs, I get this error:
...
0
votes
0
answers
35
views
Cypress test hover
I read that :hover is not supported for various reasons ( reference )
So what is the approach to test if hover on an item actually works ?
I tried to trigger mouseenter, mousemove to position, but it ...
0
votes
2
answers
110
views
How to remove setTimeout in Vitest?
I have a function that allows users to register. After successful registration, the user is redirected to the home page (after 5 seconds). Before being redirected, the user receives a toast ...
0
votes
1
answer
70
views
How to select the validation pop-up messages displayed by the browser when a user enters incorrect data
Is there a way to select the validation pop-up messages generated by the browser when a user inputs an incorrect format, such as an invalid email address?.
I am writing a test case to verify whether ...
1
vote
1
answer
75
views
How to directly test ActionController::RoutingError for an invalid path in Ruby-on-Rails-7.1?
In Rails Controller tests of an invalid route, this used to work before Rails-7.1 (in Minitest):
assert_raises(ActionController::RoutingError){ get "/non_existent" }
In Rails-7.1 (or later),...
0
votes
1
answer
124
views
How to check if a http server has started in Go tests without using time.Sleep?
I am writing an e2e test which starts the binary of the program and sends an http.Get() request to the server endpoint.
main.go
func main() {
handler := http.HandlerFunc(func(w http.ResponseWriter,...
0
votes
2
answers
54
views
Apache JMeter testing multiple HTTP requests concurrently with only one query parameter different in requests
I have a question related to Apache JMeter testing. I want to send multiple HTTP requests to a single GET endpoint simultanesously (concurrently), that has multiple query parameters, one of them is ...
0
votes
0
answers
58
views
Django Testing in microservices with more than 1 db running
I would like to ask about a certain topic that is tough one. Im working in a project that has microservices architecture with more than 1 databases running every time. in django, how can I perform ...
-3
votes
1
answer
127
views
Make assumption based on verify in Mockito
Can you make assumptions with Mockito?
If the method's not invoked, this would throw AssertionError and make the test fail.
then(mock).should().doSomething();
Instead, I want the test to be skipped, ...
0
votes
1
answer
76
views
How to safely capture both toast title and message in Playwright without waiting timeout? [closed]
I’m working with Playwright (Node.js) and need to capture notification toasts that appear on the page.
The issue is that the toasts don’t always have the same structure:
Some have only a message
...
0
votes
1
answer
40
views
NestJs e2e Testing issue overriding provider
I tried following the documentation here as best i could, but im getting an error where the DI seems broken. What am i missing
Here is the error, with some logs:
stdout | src/resources/cats/cat.spec....