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.

A test case is also defined as a sequence of steps to test the correct behavior of a functionality/feature of an application. A test case is a set of conditions or variables under which a tester will determine if a requirement upon an application is partially or fully satisfied. It may take many test cases to determine that a requirement is fully satisfied. In order to fully test that all the requirements of an application are met, there must be at least one test case for each requirement unless a requirement has sub requirements. In that situation, each sub requirement must have at least one test case. Generally Senior tester writes test cases and after verification and approval the junior testers carry out execution of test cases.

998 questions
26
votes
6 answers

Is there a JUnit equivalent to NUnit's testcase attribute?

I've googled for JUnit test case, and it comes up with something that looks a lot more complicated to implement - where you have to create a new class that extends test case which you then call: public class MathTest extends TestCase { protected…
Steph
  • 261
  • 3
  • 3
26
votes
5 answers

Laravel 4 No tests found in TestCase

I'm having some problems with phpunit. When I execute a test, phpunit give me these warnings: 1) Warning No tests found in class "Illuminate\Foundation\Testing\TestCase". 2) Warning No tests found in class "TestCase". But I'd like to ignore…
Eduardo Kasper
  • 688
  • 7
  • 18
25
votes
4 answers

Running a PHPUnit testcase multiple times

I'm looking for a way how to run a testcase multiple times with different setting. I'm testing a database access class (dozens of test methods), and want to test it in "normal mode" and then in "debug mode". Both modes must produce the same test…
Vojtech Kurka
  • 875
  • 9
  • 10
24
votes
2 answers

What is the use of contextLoads method in Spring Boot Junit Testcases?

This method is empty in all my JUnit test cases. What is the use of this method? Sonarqube is complaining "Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation." I can…
Thiagarajan Ramanathan
  • 1,035
  • 5
  • 24
  • 32
20
votes
9 answers

No tests found for given includes: [***Test](filter.includeTestsMatching)

I am using Intellij 2019.2 to run gradle test cases, however, I keep getting the following exception. According to some posts, I have done the following: Add junit(junit-jupiter-api:5.3.1) dependencies as testImplementation and Put…
Guifan Li
  • 1,543
  • 5
  • 14
  • 28
16
votes
10 answers

Jira as Test Case Management Tool

I have reviewed several test case management solutions available for Jira such as: http://www.testandtry.com/2009/07/01/test-case-management-in-jira-1/ http://confluence.atlassian.com/display/CONFEVAL/Customise+JIRA+For+Test+Case+Management I was…
curiousgeorge
  • 271
  • 1
  • 4
  • 12
16
votes
16 answers

In agile like development, who should write test cases?

Our team has a task system where we post small incremental tasks assigned to each developer. Each task is developed in its own branch, and then each branch is tested before being merged to the trunk. My question is: Once the task is done, who…
Brian R. Bondy
  • 339,232
  • 124
  • 596
  • 636
14
votes
2 answers

overloading unittest.testcase in python

I'm trying to create a custom unit test framework by sub-classing the unittest.testcase class but seem to make a mistake when dealing with the __init__ method. I cannot figure out why the constructor of ComplexTest doesn't get invoked before the one…
doberkofler
  • 9,511
  • 18
  • 74
  • 126
13
votes
2 answers

How do I run Django tests on a copy of my production database?

I've written a series of tests for my Django app, and would like to run them on a copy of my production database. As far as I can tell, the best way to do this is using fixture loading like so: Run manage.py dumpdata -o app.dump Move the resulting…
Sam
  • 1,952
  • 1
  • 18
  • 31
12
votes
6 answers

Stop testsuite if a testcase find an error

I have a testSuite in Python with several testCases. If a testCase fails, testSuite continues with the next testCase. I would like to be able to stop testSuite when a testCase fails or be able to decide if the testSuite should continue or stop.
Gabriel Quesada
  • 121
  • 1
  • 3
12
votes
1 answer

How do I effectively implement the MVVM design pattern for my android app which will also ease writing of test cases?

I am planning on implementing the MVVM architectural design pattern for my android app. I have read online that it will help me achieve efficient separation of concerns and easily write test cases for Data model, UI, etc. Need some insight/advice…
Ian Pinto
  • 2,199
  • 1
  • 21
  • 24
12
votes
2 answers

Test cases for string inputs

What are some useful test case ideas (and test questions) related to string inputs? Usefulness need not mean applicable everywhere or all the time--just often enough to be worth considering when you address a new problem/system/domain. Individual…
Kimball Robinson
  • 3,287
  • 9
  • 47
  • 59
12
votes
1 answer

Codility. How to run own test cases?

I know this is a silly question but I would like to know how to execute own test cases in a Codility test. I can add several test inputs to my function but I don't know how execute it using these values. I appreciate any input.
ctowers
  • 131
  • 1
  • 1
  • 5
12
votes
6 answers

Positive test cases and negative test cases

What are positive test cases and negative test cases? Upon Googling about it I have found answers that are very confusing. Can anyone explain with example?
a Learner
  • 4,944
  • 10
  • 53
  • 89
12
votes
10 answers

Absolutely positioned parent and float:right child stretches

In IE6, IE7 and FF2 the .outer div below is stretching out to the right edge of the document. Here is a complete test case:
Roatin Marth
  • 23,589
  • 3
  • 51
  • 55
1
2
3
66 67