Can we use regular expressions to facilitate dynamic
objects identification by SilkTest?
Answers were Sorted based on User's Feedback
Answer / madhu
You can use regular expression supported in 4test
for example for a window whose tag is
"$WelcomeXYZ"
You can make it dynamic using regular expression
by replacing the tag by
"$Welcome???" or "$Welcome*"
Is This Answer Correct ? | 7 Yes | 2 No |
Answer / venka
above all methods r wrong ..
guys i would like to share one simple method wit u ppl
as v know very well like regular expression is used to handle run time .. suppose i fax order value during the recording time is fax order.227 .. when u vil execute de script again that time value vil get incremented by ..which vil cause interuption during the execution
see the script
FlightReservation.DialogBox("Fax Order No. 227")
u have to replace this script with below metioned script
FlightReservation.DialogBox("Fax Order No. *")// by this u r instructing to tool that dont consider the value of fax order during the execution time
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / madhu
You can use regular expression supported in 4test
for example for a window whose tag is
"$WelcomeXYZ"
where XYZ keeps changing depending on user login or say
environment due to which scripts fail.
You can make it dynamic using regular expression
by replacing the tag by
"$Welcome???" or "$Welcome*"
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / skylark
Whenever you want to identify dynamic objects, use "Index"
(e.g. #1), "Window Location" or "Prior text". You can use
them together using "multitag" .Generally, those properties
dont change in dynamic objects
Is This Answer Correct ? | 0 Yes | 4 No |
I'm involved in automation using silk test of an swing application running in a browser. There is a window whose name is a dynamic. i.e based on the input(eg: some filename) the window name keeps on changing. I need to capture the window name for every run of silk test case for different input filenames. I'm aware of GetName() in SilkTest, but its not working for me. Can anybody suggest me any logic to achieve this using silktest?
How to define an object verification in a test case?
How to run all test cases in a testplan?
who is the head of the BMC
What is custom object .what it contains. Difference between custom & standard objects.
Can silktest run on mac?
How do you create a user defined class in silk?
What is the syntax of ui object identifier used by dom extension?
What are the default testplan attributes?
How to download latest silk test trial version?
How to create group and sub group descriptions in a testplan?
How to record a test case?