1,004 questions
0
votes
0
answers
44
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
1
answer
43
views
How to go for JUnit testing for producing the test cases for the given program?
Suppose if you are going for the creation of test cases in VS code then how to build the test file for that by commands or built-in options ?
0
votes
1
answer
90
views
AzureDevops API - create test points
is there a way to create Test Point in Azure Devops? I can find in documentation how to update existing test point - assign tester, etc... but my use case is to create a particular number of test ...
0
votes
0
answers
54
views
Removing all the Mock JSON fixtures to convert it into methods for the similar use
In my project, we have 1000+ fixtures (mock JSON) files. I am required to find a way to remove all these JSON files, and use .mock() methods instead. Here is an example:
struct Person {
var name: ...
0
votes
1
answer
98
views
Laravel 11: Routes Work in Browser and Postman but Not Found in PHPUnit Tests
I am developing a modular project in Laravel 11, where each module defines its routes inside itself. The routes are working perfectly in the browser and Postman, but when testing the same routes using ...
1
vote
1
answer
208
views
Unit Testing in Ceedling using ASSERT Statements
I am writing test cases in Ceedling for the below function with assert statement :
fsp_err_t ad7606c_init(const bsp_io_port_pin_t cs, const spi_instance_t* spi)
{
fsp_err_t result = FSP_SUCCESS;
...
1
vote
1
answer
83
views
The failed test cases image are broken inside my Jenkins report
The images inside the Jenkins report are broken but the same images are not inside the local report.
I am using the Jenkins Free model to run test cases but in the Jenkins report the images appear ...
-1
votes
1
answer
662
views
Add parent link for new work items, if link contains an item with a parent
A use case may be:
Feature is created
A child PBI is created
A new test case is created via - "Add link", "New item"
So most probably the test case is also a child of the ...
0
votes
1
answer
22
views
fControl.get is not a function in angular unit test
Trying to write an unit test for changeFunctionalityStatus(). facing the issue like fControl.get is not a function .
Stuck with this Anyone pls help me why this issue coming. TIA
...
0
votes
1
answer
45
views
Need to Skip test cases under a fixture If previous test of the same fixture failed (Using TestCafe)
I am working with a situation where I have the following scenario/steps to Test
Create
Edit
Delete
I have the test cases ready but I need a way to skip the Edit and Delete TCs if the Create TC fails....
0
votes
1
answer
85
views
How to submit nested test suites with plugin qase-pytest?
I'm struggling to created nested suites when using qase-pytest plugin, hence in the docs, it can be use dot annotation to create the nested test suites but it doesn't works. I use the library from ...
0
votes
1
answer
90
views
While importing methods from another file - AttributeError: 'TestCase' object has no attribute 'assertRaisesRegexp'Cell Execution Error
Problem Summary: I am trying to import two python methods mentioned in another file and receiving the following error,
In Jupyter Notebook (another file named verify.ipynb), I have imported two ...
-1
votes
1
answer
368
views
I am getting this error while writing the test case : - Trying to run get method on non-active contract
I am writing smart contracts to mint fungible tokens(jettons) in the FunC language for the TON. While writing the test case i am getting below error :-
Trying to run get method on non-active contract
...
0
votes
1
answer
88
views
I am facing issue while using AltTester unity sdk
Using this library in C# script while writing test cases in unity c# script
using Altom.AltUnityDriver;
we face the error ,
type or namespace name 'Altom' could not be found (are you missing a using ...
-1
votes
1
answer
47
views
How to write unit test case using Jamine to test form controls touched, untouched and dirty conditions
I have a form built using reactive forms angular and I have the below code.
The entire if conditions says , branch not covered, how can i make sure the branch is covered.
this.tableOptions.rowData....
0
votes
0
answers
294
views
How to import Test cases from a CSV file into JIRA Xray Test repository using python
Does anybody know how to import Test cases from a CSV File to a Test repository in JIRA XRAY using Python?
I am currently receiving response 500 every time I run my code, failing to add test cases
My ...
0
votes
2
answers
1k
views
Azure DevOps: Link Test case to User Story during bulk import
While conducting a bulk upload of test cases to Azure DevOps, I want each test case to be linked to an existing User Story with Link Type of Tested By.
Is this possible?
0
votes
0
answers
215
views
Python Coverage is not increasing using Pytest
I have multiple python modules to be tested and I'm testing it using the tox file with the command "coverage run -m test_folder".
While testing, for few modules I'm getting lower test ...
1
vote
1
answer
55
views
Django TestCase slef.client.patch gives a 404 error
I want to test the update function of a view set
from rest_framework.viewsets import ModelViewSet
@extend_schema(tags=['Customers'])
class CustomerViewSet(ModelViewSet):
""" This ...
-1
votes
1
answer
178
views
Getting NullPointerException while writing Integration TestCases in Junit 5 with mockMvc
Getting this NPE even when all services are annotated
Here is the code, and I think I can also get similar error for EncryptDecryptService though not getting that for now
Error
java.lang....
0
votes
1
answer
499
views
Is it possible that Azure devops backlogs view will show testcases as well?
I would like to see testcases on the backlog view but it is not showing even though they are linked. Is there a way to make them appear on the backlog views?
I've tried to google it without any ...
1
vote
1
answer
55
views
Django session in tests
everyone!
I can't figure out how the sessions work in Django.
I have a shop, an anonymous user's shopping cart is bound to session_key.
The session key is taken from the request object.
def ...
0
votes
1
answer
44
views
Django test case is showing errors because of moesif
I do not want to push actual api key. When I replaced the actual key on code base this error is generated
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing ...
0
votes
0
answers
65
views
Laravel feature test with redirecting middleware
I am using laravel 9.X, i have created Feature Test cases.
There is a middleware on route
Route::group(array('prefix' => 'location', 'middleware' => 'adminAuth'), function () {
Route::get('/',...
-1
votes
1
answer
19
views
Django unit test fixing database row id
from django.test import TestCase
class DefTests(TestCase):
def setUp(self):
# first made the label
UserType(label="mylabel").save() ## UserType is model object, and I ...
0
votes
1
answer
646
views
ADO - On exporting the test cases to CSV or Excel, it doesn't display the "Description" field
On ADO, trying to export the test cases in CSV or Excel format, the field listed as "Description" under "Summary" tab is never exported.
This is the Summary tab and Description is ...
0
votes
0
answers
38
views
type 'Null' is not a subtype of type 'Future<UserPermissionApiResponse>' while writing unit test case in dart using mocktail
I am trying to write the unit test case for a method called authenticate which has nested method of the same class called login. Now I want to mock the login method and run the test case. I did that ...
0
votes
1
answer
250
views
Gitlab - import CSV and link new issue to existing issues
I'm uploading issues in Gitlab from a CSV file.
Every row representa a Test Case.
I would like to link every new imported "Test Case" issue to its "Requirement"/"User Story&...
0
votes
1
answer
104
views
How can the Toy object I get from a Child object not be the same as passed in through the constructor? [closed]
I am doing an assignment that requires me to create the code that will make this run with no errors or failures. This is only one test case:
Toy t1 = new Toy(1000121, "Red Bike", 3, 98.90);
...
0
votes
0
answers
45
views
How to functionally test an app that has a GUI and also CLI
How should I functionally test an app from which you can execute its functionalities either through the GUI or through CLI? If I make changes to a functionality, lets say "Read a file"; ...
0
votes
1
answer
2k
views
How to clear/reset mockimplementation for a method using Jest
Using Jest I've mockimplemented the method and testcase is getting succeeded and for testcase2 I need to implement same mock method with different input and I'm unable to do that.
jest.mock('../../lib/...
0
votes
2
answers
994
views
NUnit custom attribute for each [TestCase]
in my UI tests I created Custom Attribute [TestCaseId] to be used in tests:
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public class TestCaseIdAttribute : PropertyAttribute
{
...
1
vote
2
answers
720
views
How to Null Check?
My application developed by C# (Microsoft.EntityFrameworkCore, version 6.0.25).
I am using Moq (version 4.20.70) and NUnit (version 4.0.1) for unit test cases
I tried below method to null check,
[...
1
vote
0
answers
51
views
error in testing :the exc is Authentication credentials were not provided
I make a test for the /course url, made a login using another endpoint /auth/login in setUP and setUp working fine.
The test is failed. here the error message:
ERROR:root:the exc is Authentication ...
0
votes
0
answers
60
views
Django existing db records not found in testcase when using postgresql
ubuntu 22.04, mysql 8.0.35, postgresql 16.1, python 3.8.18, django 4.2
django default db = "mydb"
We have a large data set saved in "mydb", generating that takes a long time.
While ...
0
votes
0
answers
248
views
Resetting Primary Key (pk) Sequence in Django Factory Boy for Each Test
I'm trying to figure out how to reset the factory model's primary key (pk) sequence in Django when using FactoryBoy for testing. Consider the following sample model and tests:
class Profile(...
0
votes
2
answers
182
views
Rename testcase parameters in Azure DevOps
For my project we use the Test Plans and Test Cases work items within Azure DevOps for quite some time. Now from an automation perspective we want to rename a few of the paramters in some of our ...
-1
votes
1
answer
137
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:
@...
0
votes
1
answer
125
views
How to write selenium code for validate asterisk symbol
How to write selenium code for validate asterisk availablity with mandatory fields e.g First Name* , Last Name* , Enter Address*, Enter Phone Number*
Need to validate asterisk availablity after the ...
0
votes
1
answer
222
views
how to give relative path for json file for test cases in C#
Need to access a json file from project structure. so need to give relative. C#
This is for the test case where the data list is compare with the data List from the API call.
string ...
1
vote
1
answer
119
views
how to send entity json and multipart file to json data using mockmvc
@RestController
@CrossOrigin
public class KycController {
org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(KycController.class);
@Autowired
private KycRepo repo;
@Autowired
...
0
votes
2
answers
91
views
Running Test cases for Azure automatically
I have written more than 300 test cases in Azure. Now I have to execute them one by one.
But I want to run all of them automatically. Is there any way to run all of them automatically instead of ...
1
vote
2
answers
80
views
Python program for ant count fails for a particular test case
I am trying to make a Python program to solve the following problem:
A large number of ants live on the island of Eden and reproduce at a rate of 40% per month. There is also an anteater on the ...
0
votes
2
answers
472
views
How to re run only failed test cases in cypress and azure pipeline
I've running testcases in azure pipeline but for some reason testcases fail randomly, I just want it to re run only the failed ones, not the whole suite, same as well in local
I've tried retires ...
0
votes
1
answer
111
views
In CoreClassReflection.php Class Does Not Exist While Using Infection
I try to use Infection to evaluate my testcase using php, I have 2 file (Displayuser.php, displayuserTest.php)
for the first file Displayuser.php the code like this, this file under func folder
<?...
1
vote
1
answer
873
views
Jest mock DeviceEventEmitter from react-native
I am trying to mock DeviceEventEmitter from react-native using jest. The actual code adds and removes a listener on component mount and unmount respectively. I have tried a lot of solutions but none ...
0
votes
1
answer
429
views
Testrail: Can I use the test run configuration values within a test case so that they are available within the test execution?
In current TestRail v8.0.1 Default (1030) I use configurations a lot during test run definition.
It would be great to have these values (often more than one) available during test execution.
I tried ...
-1
votes
1
answer
182
views
How to write a Junit test for phone number with 10 digits in JAVA
I'm trying to write a test case for phone number where only numbers are allowed to pass. How to write it in java using the object types.
I tried this where I hard coded the characters. But I want a ...
1
vote
0
answers
319
views
java.lang.ClassNotFoundException during execution of Contextloads() method in Spring Boot JUnit test case
We have a Spring boot v 2.7.x application, running on java 11. And we want to switch to java 17 and Spring boot 3.0.0.
But now, when I am making the changes locally (IDE is IntelliJ), the following ...
0
votes
1
answer
2k
views
What is the rosetta simulator name in Xcode to run unit test cases in fast lane
I looking for the rosetta simulator name in fastfile to run a lane in server.
I am trying to run using "iPhone 14 (Rosetta)"
But the error in terminal says it doesn't know this device name &...