Can anybody tell test cases for the following condition?

In a railway reservation form, 4 types of ticket ranges are
there like a) age up to 3, NO TICKET. b) age up to 7, HALF
TICKET. c) age up to 60, FULL TICKET. d) age from 61, SENIOR
CITIZEN QUOTA.
if you enter age into the text box the relevant message
should be displayed..... Eg. FULL TICKET.

Answer Posted / naga raju.ch

Use select case statement

example:

dim age
age=inputbox("Enter the age")
select case age

case "age up to 3"
msgbox "No Ticket"

case "age up to 7"
msgbox "Halt Ticket"

Just i gave example

case "age up to 60"
msgbox "Full Ticket"
case else
msgbox"SENIOR CITIZEN QUOTA"
end select

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the ad hoc testing?

677


If I wrote test cases for Login Window with test case Name Login window & test case id L_01.Now if Name of Login window get changed in the next version.then May I have to change the Test case name & Test case id OR HAVE TO block the previous test case and write the new one

1953


What is Initial Configuration?

1952


consider a program module that inputs two (2) values, n and max, and computes the sum of the first n integers as long as this sum is less than max; otherwise an error should be reported. if n is negative, then it takes the absolute value. a) list the equivalence partitions, and b) list the boundary values.

1790


How to test a stored procedure?

651






What are the Test Cases Comes under Regression Suite?

508


Please can any one tel how to write the test cases for these Requirements:- 1.The applications sends the periodic data 2.The applications sends the alarm data 3.The Application stores the Periodic data and alarm data if it is unable to send 4.the application having the configure through GPRS or SMS

1876


Write a test case on online shopping website? (please tell me the format how to write in MS excel,if u have any sample than attach it.)

3906


How does the size of the OPCODE field limit the number of operations? Give an example to support your explanation?

1950


write test cases on file open dialog box in notepad

1196


Explain the sanity testing?

694


Explain the load testing?

641


how to write test cases for the example state name starts with A B C D E F G H I J K L Z

2085


Can any one tell me how to write test data. i mean, to test each input, 2 test input(1 for +ve, & other for -ve) are given. so , for example, if i want to write test data for login form, how many test data should i write in test case?

1832


hai im finished software testing course im technicaly strong but yet now no opportunities come to me.if any opportunities please send to my mail id my mail di is sumathi11685@gmail.com

1820