Rational Robot queries
3 posters
Page 1 of 1
Re: Rational Robot queries
Are you using any frame work?
rsudhagar- Number of posts : 2
Age : 47
Registration date : 2008-01-21
Re: Rational Robot queries
Yes, tell us about the details of Map file and creation and using of Map file in Keyword driven framework
Re: Rational Robot queries
A Map file contains map names assigned by testers to the technical references(i.e Objects).Robot recognize objects by its properties like Name,Type,Index etc.
Creating a Map File
In the Example mapping is done for the Login window,Username editbox,Password editbox and Login html link. Here UserID is the reference name given for the username editbox.The Parent and Child properties of the object will be displayed in Rational Inspector if you place the cursor over the object and from the rational inspector we can copy the property and paste it in our map file.After creating a map file in a notepad the file should be saved with .MAP extension.
Example:
[LoginPage]
LoginPage="Type=Window;Caption={Window Name*}"
UserID=Type=HTMLFrame;HTMLId=FormViewer;\;Type=EditBox;Name=logonid
Password=Type=HTMLFrame;HTMLId=FormViewer;\;Type=EditBox;Name=passwd
Login=Type=HTMLFrame;HTMLId=FormViewer;\;Type=HTMLLink;HTMLText=Logon
Usage of Map names in Step file
The reference names given by us is used in the step file to identify the object and to perform any action on the identified object.
Example:
;RT WINDOW COMP ACTION ARG
T LoginPage LoginPage Maximize
C WaitForGUI LoginPage LoginPage 100
T LoginPage UserID SETTEXTCHARACTERS "Valid User ID"
T LoginPage Password SETTEXTCHARACTERS "Valid Password"
T LoginPage Login Click
Creating a Map File
In the Example mapping is done for the Login window,Username editbox,Password editbox and Login html link. Here UserID is the reference name given for the username editbox.The Parent and Child properties of the object will be displayed in Rational Inspector if you place the cursor over the object and from the rational inspector we can copy the property and paste it in our map file.After creating a map file in a notepad the file should be saved with .MAP extension.
Example:
[LoginPage]
LoginPage="Type=Window;Caption={Window Name*}"
UserID=Type=HTMLFrame;HTMLId=FormViewer;\;Type=EditBox;Name=logonid
Password=Type=HTMLFrame;HTMLId=FormViewer;\;Type=EditBox;Name=passwd
Login=Type=HTMLFrame;HTMLId=FormViewer;\;Type=HTMLLink;HTMLText=Logon
Usage of Map names in Step file
The reference names given by us is used in the step file to identify the object and to perform any action on the identified object.
Example:
;RT WINDOW COMP ACTION ARG
T LoginPage LoginPage Maximize
C WaitForGUI LoginPage LoginPage 100
T LoginPage UserID SETTEXTCHARACTERS "Valid User ID"
T LoginPage Password SETTEXTCHARACTERS "Valid Password"
T LoginPage Login Click
Saroja- Number of posts : 3
Registration date : 2008-01-21
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|