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
6
votes
1 answer

Get number rows in UITableView while unit tests- swift?

I'm writing a test case for UIViewController that has UITableView. I want to ask how can I get number of rows in UITableView func testloadingDataIntoUiTableView() { var countRow:Int = …
NinjaDeveloper
  • 1,620
  • 3
  • 19
  • 51
6
votes
1 answer

Annotating/Fetching/mapping Testrail test case ID to the local Java TestNG test (Jenkins Test Rail Integration)

I am trying to use Testrail as a test case management system and so, integrating testrail with the Jenkins would be useful. This is what I want to achieve: Lets say I manually create three test cases in testrail with case ID's C1, C2 and C3 and…
6
votes
2 answers

Test case for 100% branch coverage with no fault?

The problem statement is A method that has a zero fault that you can write a test suite to that has 100% statement coverage but doesn't find the fault and another test suite that has 100% branch coverage that does reveal the fault? Here is the…
Suresh Atta
  • 120,458
  • 37
  • 198
  • 307
6
votes
2 answers

Can we set performance test case baseline programmatically in xcode?

I have written some performance test cases using XCTest framework in my project. I was wondering is it possible to set baseline value for performance testing programmatically before the first run or is there any other way to set the baseline except…
6
votes
2 answers

yii2 testing using codeception

I am writing a simple test case. I installed codeception using composer. My test cases are located in root folder inside test case folder when i try to run the following code namespace app\tests\testcases; use yii\codeception\TestCase; class…
Web Developer
  • 133
  • 2
  • 14
6
votes
2 answers

How do I simplify these NUNit tests?

These three tests are identical, except that they use a different static function to create a StartInfo instance. I have this pattern coming up all trough my testcode, and would love to be be able to simplify this using [TestCase], or any other way…
Lucas Meijer
  • 4,424
  • 6
  • 36
  • 53
6
votes
1 answer

Test Isjson in MXUnit

I am working on the MxUnit test frame work for CFML. In it, I want to check whether the return value of a function is a valid JSON or not. Currently I am using: assertEquals(True,IsJSON(userEventItems),'The return must be json'); Is there any…
6
votes
5 answers

How to wait and get value of Span object in Selenium Python binding

I have following code in my web page.
  • First Name: Anuja
  • By the time page loading, the value for Sapn is not set. It will take very small time to set the…
AnujAroshA
  • 4,623
  • 8
  • 56
  • 99
6
votes
2 answers

Matlab UnitTest TestCase with optional plots of results?

While testing objects and functions of a project in Matlab using matlab.unittest.TestCase classes (new to 2013a), sometimes a plot is needed to visualise the actual/expected data. I have so far used the following method but feel this isn't the best…
PhD_Dan
  • 125
  • 1
  • 7
6
votes
1 answer

Google test undefined reference using SetUpTestCase static variable

I am writing a testcase that will have a SetUpTestCase() method that will allocate a shared resource although I am receiving undefined reference linker errors. class ParsingEventsTest: public ::testing::Test { protected: static xml…
Patryk
  • 22,602
  • 44
  • 128
  • 244
6
votes
1 answer

TestCase with list or params

I am trying to write a testcase that takes a string and expects the string split up. I cannot initialize a List in a TestCase, so I tried using TestCaseSource with a params argument, however I get Wrong number of arguments provided Is there any…
Justin Pihony
  • 66,056
  • 18
  • 147
  • 180
6
votes
1 answer

How to include test case descriptions in lcov/genhtml code coverage output

I'm using lcov to generate code coverage reports for a C code base. I would like to integrate test descriptions into the final output (using lcov's gendesc utility.) However, I have no clue on how to do that, and documentation on gendesc seems…
luis.espinal
  • 10,331
  • 6
  • 39
  • 55
5
votes
3 answers

How do I use executeQuery in grails testcase?

How do I use executeQuery in grails testcase? A error : groovy.lang.MissingMethodException: No signature of method ***.executeQuery() is applicable for argument types: () values: [] I have already called mockDomain. By the way, it is in unit…
LiCheng
  • 829
  • 8
  • 8
5
votes
1 answer

TestSuite with testsuites and testcases

I need to make a big python suitecase consisted of other suitcases and testcase which I have already made to execute together. How do I do this? For example, here there is a suitecase (suiteFilter.py) which I want to add: import testFilter1 import…
Gabriel Quesada
  • 163
  • 2
  • 3
  • 9
5
votes
1 answer

Start a second activity inside a TestCase (which is not the activity under test)

How can I start a second (mock) activity in a ActivityInstrumentationTestCase2 or InstrumentationTestCase? My Problem is this: Intent intent = new Intent(getInstrumentation().getContext(), MyMock.class); myMock = (MyMock)…
cody
  • 6,389
  • 15
  • 52
  • 77