50,461 questions
0
votes
0
answers
31
views
Rest-assured test to upload a file to a signed URL
I am trying to write a rest-assured test, that uses a signed URL from a previous request, in order to upload a file.
This is what I tried so far:
try {
uploadPathUrl = URLDecoder.decode(...
0
votes
0
answers
25
views
Unable to Fetch Code Coverage for Appium Test Suite on iOS App (Xcode Setup)
I am working on setting up code coverage for my Appium test suite on an iOS app, and I am having trouble getting it to work. I’ve configured the necessary settings in both Xcode and Appium ...
3
votes
1
answer
862
views
Mocking node:crypto return value with Vitest
I tried following another related post on this topic with the creator's same outcome.
Since its post is dead I'd like to try again if someone has an idea on how to mock the node:crypto function or ...
0
votes
2
answers
37
views
Integrity constraint violation while testing Laravel api routes using sanctum
I've a Laravel app with api routes using Sanctum authentication. When I try to write a feature test for any api route, I always receive an error:
"message": "SQLSTATE[23000]: Integrity ...
0
votes
1
answer
30
views
Determining orthogonal array
I need to test my web site having 20 user roles and 40 permissions across different web pages, which Orthogonal array will be the closest to consider for this scenario i.e. two factors first with 20 ...
0
votes
0
answers
22
views
Unit testing for checking Console Outputs [duplicate]
Im writing Unit tests for a function written in C++14 version. Function majorly produces different console Outputs according to branches or parameter conditions using 'sprintf'.
Is there any possible ...
2
votes
0
answers
42
views
Unable to test uploading file using Karate Test Automation
I ran into an issue uploading file (png/jpg) with projectId, AppID and assets= [{"label": "image"}].
I do not need to use token.
Here is what I used to write script:
Feature: ...
0
votes
1
answer
153
views
Symfony: How to start symfony server within test env?
Question: How to start symfony server within test env?
The command takes no --env parameter and it does not recognize the option configured in .env.local. Prefixing the command with environment ...
1
vote
0
answers
125
views
Find element with different locator alternatives and let them race who will find the element first
Often an html element can be found by different locators. To find the <h2>...</h2> element
<div>
<section>
<div class="articleheader">
<...
0
votes
2
answers
1k
views
How run all .NET Aspire connected Web APIs with correct ports?
How to configure .NET Aspire tests to use specific ports from launchSettings.json for each project?
I am using .NET Aspire to run all my projects perfectly. Now, I am creating tests and want them to ...
1
vote
1
answer
222
views
Containerising C++ code and the Boost library using docker
I have an example script called main.cpp which reads as follows:
#include <boost/regex.hpp>
#include <iostream>
#include <string>
int main() {
std::string line;
boost::regex ...
0
votes
0
answers
112
views
AttributeError: The layer my_model has never been called and thus has no defined input
I wrote the code for this model, and I also have confirmation of the output correctness for the summary, but in the section:
# UNQ_C1
# GRADED CELL: Sequential model
model = Sequential(
[ ...
0
votes
1
answer
97
views
"Failed to find Gauge project directory. Missing manifest.json file" Error thrown from Maven build
On a newly created Maven / Java project the pom dependencies were set for Gauge.
After scripting the specs, step-definition, function layer, and page layer the IntelliJ throws the following error upon ...
1
vote
4
answers
119
views
How can I override settings for code ran in urls.py while unit testing django
my django app has a env var DEMO which, among other thing, dictate what endpoints are declared in my urls.py file.
I want to unit tests these endpoints, I've tried django.test.override_settings but I'...
0
votes
0
answers
22
views
need mobile application test plan documentatio
I am a software QA intern can anyone give me a real mobile test plan documentation for my studies. tell me where can I download test plan documentation(any sites name) I try to find via google but ...
0
votes
0
answers
15
views
Clarification on security patches and test coverage in TensorFlow contributions
In the contribution guidelines, it is clearly mentioned that "All new features and bug fixes must include adequate test coverage." However, I’ve noticed that most security patches seem to ...
0
votes
2
answers
91
views
415 Unsupported Media Type in MockMvc Test
I am getting a 415 error while trying to test one of my @Controller's methods.
Here is my code.
Test Class:
@SpringBootTest(classes = APIController.class)
@AutoConfigureMockMvc
class APIControllerTest ...
-1
votes
1
answer
46
views
Mocha "TypeError: (0 , calc_1.addition) is not a function" when trying to test
I have a simple project structure:
I am trying to test "addition" function inside of the src/calculator.ts
export function addition(a: number, b: number): number {
return a + b;
}
Here'...
0
votes
0
answers
33
views
Inconsistent behavior between Flask real session storage and test_request_context during tests
I’m using Flask’s session storage to temporarily save a list of dataclass objects. Here’s an example of the Transaction class and my TransactionMemoryRepository:
@dataclass
class Transaction:
...
0
votes
0
answers
22
views
startActivity() on external application not bring it foreground in task of testing external application
Where is some external APK
It's required to do some automation tests on it
I'm trying to use Kaspresso+Kautomator (wrapper over express+uiautomator) to accomplish it
If application is already launched,...
0
votes
0
answers
206
views
Verify an App Store receipt always staus code 21003
I'm trying to verify a receipt with the App Store server in the sandbox environment.
I've checked all values are correct but keep receiving:
{
"environment": "Sandbox",
&...
-1
votes
1
answer
65
views
Local repository for test branch
I want to create test branch for testing purpose which is hosted in local repository server, before eventually pushing to master branch in remote repository server.
What are the correct steps required?...
1
vote
2
answers
96
views
Lombok getters and setters can't be accessed on Tests Files [duplicate]
I'm using Lombok on my Java project, with Maven, but when I try to access an attribute of my User class, annoteded with @Data (so I'd expected that I'd have getters and setters of the attributes) in a ...
0
votes
0
answers
40
views
Execute cucumber Feature files in parallel does not work
Here is my pom.xml file. Why this parallel execution does not work? This executes fine sequentially
POM file
<?xml version="1.0" encoding="UTF-8"?>
\<project xmlns="...
2
votes
1
answer
104
views
How can I use the State monad, or the StateT monad transformer, to mimic the IO monad for testing functions that run in a IO-based monadic stack?
Using State as an alternative to IO in testing
Take a simple function like this
foo :: IO ()
foo = putStrLn "ciao"
This is not testable, because it affects the state of the terminal, which ...