Questions tagged [testcase]
A test case in software engineering is a set of conditions or variables under which a tester will determine whether an application or software system is working correctly or not.
testcase
1,014
questions
0
votes
1
answer
20
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
16
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
58
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
72
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
34
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 ...
0
votes
0
answers
28
views
"Test suite failed to run Cannot find module" getting issue with absolute path in Angular 14 test suite
I have just upgraded my Angular project from Angular 13 to Angular 14, Functionality wise everything is working fine but whenever I tried to run the test suite I am getting below error
Test suite ...
0
votes
0
answers
21
views
How to write test case for angular 15
I am trying to write test case for below the code in angular. I am new for test case.So, How to write it in the app.component.spec.ts file? I tried but not working.
app.component.ts:
public arr:[]= [
{...
-1
votes
1
answer
104
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
57
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
30
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
23
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
40
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('/',...
0
votes
0
answers
23
views
junit.framework.AssertionFailedError: Test is stuck, see ANR stack trace for more info. You may need to create /data/anr first
I'm running Test cases but facing the below error.
junit.framework.AssertionFailedError: Test is stuck, see ANR stack
trace for more info. You may need to create /data/anr first
The error occurred ...
0
votes
0
answers
24
views
Event loop already running when unit testing
I'm running into an issue when running a unit test. I'll try my best to explain the problem.
Big picture there are 3 files:
unit_test.py
main.py
helper.py (async code)
When I run the unit test, it ...
-1
votes
1
answer
15
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 ...