Hello,Can anybody provide code of any sample script in Rational Robot?

Showing Answers 1 - 2 of 2 Answers

prakash ch

  • Jul 19th, 2006
 


*** 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

  Was this answer useful?  Yes

Prithvi Krishna

  • Aug 6th, 2006
 

Look at Robot help - lot of sample scripts there

  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