50,459 questions
0
votes
0
answers
8
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
24
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
32
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
15
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
37
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
54
views
emberjs tests not running
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 ...
-3
votes
0
answers
34
views
ARP spoofing using Bettercap [closed]
I have started learning about penetration testing and found bettercap and was experimenting with it, Currently i am trying to do ARP spoofing on my Mobile device so that I can do a MITM attack and ...
-2
votes
0
answers
24
views
how can I upload image from file explore in Win App driver using Appium? [closed]
I tried multiple ways to upload the image through the Windows File Explorer using WinAppDriver and Appium in C#, but I still couldn’t get it to work. I tested different approaches to interact with the ...
Best practices
3
votes
0
replies
36
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
47
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
0
replies
49
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
23
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
37
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
32
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
26
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
39
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
0
replies
24
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
54
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
56
views
Need a Opinion on the workflow from Feature dev to staging test to prod 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 following
I get ...
Best practices
0
votes
0
replies
41
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 ...
0
votes
1
answer
82
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
22
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&...
-1
votes
0
answers
56
views
SCIP make test do not give me .err file
I am trying to compare two algorithms in SCIP. To do this, I am following the steps in https://www.scipopt.org/scip/doc/html/TEST.php, but it says that SCIP automatically creates the scip/check/...
Advice
0
votes
2
replies
101
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 gameboy.
Currently for the POC im using the Arduino Uno, seperate SD Card Reader Module and 2.4 inch TFT Display. I want to put the game ...
0
votes
1
answer
149
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
115
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
83
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
92
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
43
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
129
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
52
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
47
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
33
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
96
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
69
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
73
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
118
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
52
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
126
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
72
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....
0
votes
0
answers
39
views
How can I test trayicon interactions on the command line in Linux in a headless CI/CD environment
I currently have a CD/CI pipeline that tests my application by using Xvfb to start a framebuffer and xdotool to focus on the window and send a ctrl+q. My application is set to exit on ctrl+q:
#!/...
0
votes
0
answers
74
views
RobolectricTestRunner and suspend functions. Test function not found
@RunWith(RobolectricTestRunner::class)
class ServerUnitTest {
@Test
fun localAccessTest() {
runTest {
val res = LocalAccess.pingServer()
assertEquals(res, 0)
...
0
votes
1
answer
66
views
Typescript Node test cannot redifine property?
So i have this test doing in my typescript project and when i do the mock tests two test have been failing all the issues are related to TypeError [Error]: Cannot redefine property: ...
0
votes
1
answer
51
views
Laravel 9 RefreshDatabase trait connects to wrong DB / user in GitHub Actions CI
I'm running Laravel 9 feature tests with the RefreshDatabase trait in GitHub Actions. Locally, everything works fine, but on CI, it seems that RefreshDatabase tries to connect with the wrong database ...
0
votes
1
answer
83
views
why my bun with cache with docker is slower than node.js without a cache (i'm running both of them on localhost)
when i test my code with jmeter my average respond time on the bun with cache is higher that node.js that dont, i using 100 thread with period 1 second, but it seems the standard deviation is better ...
0
votes
0
answers
72
views
Weird Results in Robot Pathfinding Algorithm Testing Using MATLAB
Recently, I developed a MATLAB-based simulation to evaluate my robot pathfinding algorithm. The robots operate on a network of unidirectional tracks, where each robot computes a single path from its ...