|
INTERVIEW QUESTIONS
TESTING
RATIONAL ROBOT
DETAILS
Question: Can anybody provide code of any sample script in Rational Robot?
Answer: *** this is the sample script for login into the application***
//every statement must be within the main
Sub Main
//declare variables through dim satatement. here Result is the default integer type variable Dim Result As Integer //single quote (') is comment simbol 'Initially Recorded: 7/19/2006 12:41:57 PM 'Script Name: abc
StartApplication """C:Program FilesRationalRational TestSample ApplicationsClassics OnlineClassicsA.exe""" Window SetContext, "Name=frmExistingLogin", "" //choosing a user name from a combo box ComboBox Click, "Name=lstUserName", "Coords=142,9" ComboListBox Click, "ObjectIndex=1", "Text=Susan Flontly" //giving password through keyboard EditBox Click, "Name=txtPassword", "Coords=105,13" InputKeys "prakash" PushButton Click, "Name=cmdOK" End Sub
|
|
|
Category |
Rational Robot Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 8133 users |
Added on |
7/21/2011 |
Views |
67180 |
Rate it! |
|
|
Question:
Can anybody provide code of any sample script in Rational Robot?
Answer:
*** this is the sample script for login into the application***
//every statement must be within the main
Sub Main
//declare variables through dim satatement. here Result is the default integer type variable Dim Result As Integer //single quote (') is comment simbol 'Initially Recorded: 7/19/2006 12:41:57 PM 'Script Name: abc
StartApplication """C:Program FilesRationalRational TestSample ApplicationsClassics OnlineClassicsA.exe""" Window SetContext, "Name=frmExistingLogin", "" //choosing a user name from a combo box ComboBox Click, "Name=lstUserName", "Coords=142,9" ComboListBox Click, "ObjectIndex=1", "Text=Susan Flontly" //giving password through keyboard EditBox Click, "Name=txtPassword", "Coords=105,13" InputKeys "prakash" PushButton Click, "Name=cmdOK" End Sub Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All Rational Robot Interview Questions & Answers - Exam Mode /
Learning Mode
|