What is Testing Scenario ? What is scenario based testing? can u explain with an example ?

Showing Answers 1 - 19 of 19 Answers

A scenario test is a test based on a hypothetical story used to help a person think through a complex problem or system. They can be as simple as a diagram for a testing environment or they could be a description written in prose. The ideal scenario test has five key characteristics. It is (a) a story that is (b) motivating, (c) credible, (d) complex, and (e) easy to evaluate. They are usually different from test cases in that test cases are single steps and scenarios cover a number of steps. Test suites and scenarios can be used in concert for complete system tests.

shankar savant

  • Nov 19th, 2005
 

Beena Kadam Wrote: A scenario test is a test based on a hypothetical story used to help a person think through a complex problem or system. They can be as simple as a diagram for a testing environment or they could be a description written in prose. The ideal scenario test has five key characteristics. It is (a) a story that is (b) motivating, (c) credible, (d) complex, and (e) easy to evaluate. They are usually different from test cases in that test cases are single steps and scenarios cover a number of steps. Test suites and scenarios can be used in concert for complete system tests.

to some extent beena is right but testing scenerio is such that

1) what at a max we can check the conditions

2)and what will be its results

shankar savant

  • Nov 19th, 2005
 

Beena Kadam Wrote: A scenario test is a test based on a hypothetical story used to help a person think through a complex problem or system. They can be as simple as a diagram for a testing environment or they could be a description written in prose. The ideal scenario test has five key characteristics. It is (a) a story that is (b) motivating, (c) credible, (d) complex, and (e) easy to evaluate. They are usually different from test cases in that test cases are single steps and scenarios cover a number of steps. Test suites and scenarios can be used in concert for complete system tests.

to some extent beena is right but testing scenerio is such that

1) what at a max we can check the conditions

2)and what will be its results

  Was this answer useful?  Yes

anynonymous

  • Jun 20th, 2007
 

Scenario:
Tells us about an event.
A manager wants to assign a Doctor to a patient in an online application.
This is a scenario.


For this:


1. He has to select the name form a ListBox


Select doctor's name from the List Box.
Expected Result : The name should be selected (in the List Box).


QTP Script:
Window("selectDoctor").winListBox("DoctorsList").Select "DrJayan"


2. He has to click the Assign-button to assign this name to a patient.
Click on the assign button
Expected Result The selected doctor should be assigned to the patient.
QTP Script:
Window("selectDoctor").WinBUtton("Assign").Click


Bookish knowledge may be confusing sometimes....

Rahul Kulkarni

  • Aug 3rd, 2007
 

Test scenario is a set of test case that ensures BUSINESS PROCESS FLOW of testing from end to end

  Was this answer useful?  Yes

madhavi

  • Aug 13th, 2007
 

A test scenario is a type of test condition to be applied on the build.

  Was this answer useful?  Yes

rmsangita

  • Oct 11th, 2007
 

hi,

Simply we can say test scenario is "what u r going to test" This will prepared from SRS and the test leed is reponsible for preparing scenarios.

For exp: Test Scenario for Login page
Scenario id : Scen_login_1
Scen description : Validate the user name and password - So as i said we mentioned what we r going to test.

Then come to test cases, in this we will say " How we r going to test?" From scenarios the test cases will be prepared.

For the above mentioned scenario the test cases will be
1. Check whether the user id and password accepts the valid data.
2. check whether the user name accepts the invalid data and valid password
3. Check whether the user name and  password can be execute without any inputs
likewise we can write manu number of testcases

Sangita

  Was this answer useful?  Yes

[Quote: Can u tell without test scenario we can prepare testcases,suppose we can prepare what is the use of test scenarios]

Yes. A test scenario is hypothetical. A test case is a portion of the overall test written to verify a functionality.

Praveeen

  • Nov 13th, 2007
 

hi sangita,

Your answer is understandable but could you explain with any other example rather than this login page.

  Was this answer useful?  Yes

Test Scenario is a set of events with end to end transactions for a business point of view.
I can’t say my definition is right but below example might helpful to you.

if you want to open 3 accounts for 3 persons in a bank with some money for some durations, like for Age 3 with 1 lack for 35 years duration, for Age 30 with 5 lacs for 10 years duration, for 75 with 10 lacs for 3 years duration.
Interest calculations for these 3 persons will be different because of their age groups, amount of deposit and duration, so these are 3 different scenarios for opening an account

Scenario is different from Test case as test case may consist of 5 to 10 steps as it is concerned with a small functionality but where as scenario might consists of 50 steps or more.

  Was this answer useful?  Yes

Scenario means functionally how to perform a function...For example say you are trying to transfer amount from A/c1 to A/c2 example for scenario which is generic for this
Pre conditions are
1.Both the accounts should exist ( in valid condition)
2.You should have valid balance amount in A/c1
Post condition
After Amount transfer
1.A/c1 balance should be proper( the transfered amount should be deducted from the esisting balance)
2.A/c2 balance should get updated with the transfered amount..
in between you perform few steps o comple the scenario like logging into A/c1 and then...etc..
i believe it is clear

  Was this answer useful?  Yes

Test Scenario: What we are going to test (ex. validation of particular field, so we have to validate particular
string is uppercase, lowercase..)

Test Case: How we are going to test (One can validate any field by entering character data numerical data,
alpha numeric data...)


  Was this answer useful?  Yes

Scenario testing is a testing process that uses scenarios (hypothetical stories) that help testers think through complex problems or systems.  The ideal scenario has five characteristics: 

1) It is a story
2) It is motivating
3) It is credible
4) It is complex
5) It is easy to test

Scenarios differ from test cases in that test cases are written with single steps while scenarios generally cover numerous steps. 

The following is an example of a scenario that tests the interaction between a bank's customer support system and its ATM system.  
 
I am a customer of your bank.  When I lost my debit card a few days ago I went to your bank and was reissued a new card.  The representative told me that my new card would be activated within 24 hours.  My son needed some money, so 25 hours after the card was issued, I went to your bank's ATM to withdraw some cash.  I have $3000 in my checking account.  I withdraw $200 using the ATM's Fast Cash feature by selecting the $200 option.   

venky.510

  • Mar 3rd, 2010
 

If we have one requirement and based on requirement we can make multiple scenarios.

E.g: Req: To display Bus availability  search result in the listing page.

We can make multiple scenario like this:
1) Check bus availability for different locations
2) Check bus rate are proper or not.
3) Check bus availability for which i have search is displaying or not.... 

By this way we can make multiple scenario for testing in one requirement.

Hope this help, please correct me if I am wrong....

  Was this answer useful?  Yes

Alan Waldron

  • Jul 12th, 2011
 

There are many answers here but in it's most simplistic definition, a test scenario is 'what' you are going to test for and what your 'end' expected result is. Test scenarios must be written in such a way that they are easily understood by the stakeholders without the aid of seeing the application. This differs from test cases that define 'how' you are going to test elements of the scenario by defining the required execution steps and input values or test data. Test cases are usually hard to understand without the aid of seeing the application. In most cases there are many test cases created to support a single test scenario.

To be effective test scenarios are developed before test cases during the requirements phase and demonstrate the test coverage of the requirements. In this way they are 'testing' the requirements before coding and finding ambiguities that would later evolve to become defects.

Example:
- Use Case = ATM provides a 'fast cash' option i.e selecting $20, $40 or $100
- Test Scenario 1 = User is presented with a 'fast cash' option after successfully logging in Expected Results = ATM displays 'fast cash' option after login.
- Test Scenario 2 = User can successfully access x-dollars from there account without entering a numeric value Expected Results = ATM dispenses x-dollars and allows user to log off.

Note: How the above does not indicated the steps but does show user expectations of 'what' will be tested for.

  Was this answer useful?  Yes

radu

  • Sep 27th, 2011
 

A scenario test is a test based on a hypothetical story used to help a person think through a complex problem or system.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions