• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
 
RFT Tutorial - 10 How to Insert clipboard commands into RFT Scripts?Brief Introduction
We can insert system clipboard commands into a RFT script during recording or editing. Inaddition to this we can insert a verification point test command into a RFT script, againstthe active content in the system clipboard.
This short tutorial presents a simple method of Inserting clipboard commands into RFTScriptsSteps to Insert clipboard commands into a script
during recording or editing
are asunder:Step – 1:
 
Inserting script support commands:a) During Recording:
C
lick the
“Insert Script Support Commands”
button on theRecording Monitor toolbar.
b) During Editing:
It is a three-step process:1)
Position the pointer in the script where we want to insert the comment.2) Click the
“Insert Recording into Active Functional Test Script”
button on theFunctional Tester toolbar.3) Click the
“Insert Script Support Commands”
button on the Recording Monitortoolbar.
Step – 2:
C
lick the
“Clipboard”
tab, In the
“Script Support Functions”
dialog box.
Step – 3:
 
I
nserting the clipboard verification point test command into the script:
a) Select the “Verification Point tab”.b) Key in the verification point name in the
“VP Name”
field.c) Click the
“Convert Value to Regular Expression”
button to convert the systemclipboard value to a regular expression pattern. This value shall be matched at runtimeagainst the system clipboard contents.d) Click the
“Evaluate Regular Expression”
button to evaluate the current patternagainst the system clipboard contents. In theEvaluate Regular Expressiondialog box, the
“Pattern”
and
“Match Against Value”
fields contain the current value.e) To try an expression, change the value in the Pattern field and click the
“Evaluate”
button. The
“Result”
indicates whether the expression matched.f) Click
“OK”.
g)
 
Click the
“Insert Code”
button to insert the clipboard verification point command intothe RFT script.
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...