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

unit test for ensuring a method inside a method is not called

I have two methods like below. public bool IsSuccess() { // Some logi } public bool ShouldSendLogic() { var status = IsSuccess(); if(status) { SendInvoice(); // do some operation } return status; } Now I am writing…
Jasmine
  • 5,186
  • 16
  • 62
  • 114
-4
votes
2 answers

Write Test case in c# at a time 50 people call same process in asp.net c#

i want to create test case which allow to hit 50 times at a time get their results individually. want to know what happen if 50 people come at a time
-4
votes
1 answer

What can be the possible test cases?

I was given the following question in a programming test but i cannot seem to understand why it could't clear all the test cases. What possible test cases am I missing? A credit card company charges the customer on each transaction as per the…
-5
votes
3 answers

JUnit 4 Test Case

I need help on creating JUnit 4 Test Case for this code. public static int computeValue(int x, int y, int z) { int value = 0; if (x == y) value = x + 1; else if ((x > y) && (z == 0)) value = y + 2; else …
Syy
  • 11
  • 3
-5
votes
1 answer

JUnit test case for checking arguments

Edited I am learning how to write testcases using JUnit. Disclaimer: I haven't understood anything that I have found on the net regarding this. :) I wish to write a simple test case for this: I have a simple Java class that accepts arguments as…
Shivika P
  • 115
  • 8
-7
votes
1 answer

Unable to clear Test Cases: Am supposed to write code for this:

Apple and Orange problem. Only 3 of 12 test cases are cleared. Can't think of anything else since hours. sample input 0 7 11 5 15 3 2 -2 2 1 5 -6 sample output 0 1 1 Problem: https://www.hackerrank.com/challenges/apple-and-orange/problem Code int…
SorainOne
  • 13
  • 5
-22
votes
5 answers

Test case not passed using while loop in C++

My Need: Using a while loop greet as many names as that are available on the stdin. Stop when you read the string '42' as a name. My Coding: #include using namespace std; int main() { int input=1; int i= 0; string name; …
Kalaivanan
  • 459
  • 2
  • 8
  • 17
1 2 3
66
67