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?

Answer Posted / lakshmi v

In Silk Test there is a function called Browser.GetActive()
This function returns the title of the active window.
Whenever your dynamic window opens up make sure it is active
by closing all other browsers if any using the
Browser.closeOthers() function. Then use the getActive
function to return the window name which is your required
output.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the standard flow of execution of a test case?

526


What is the vo browser extension?

541


Where is a testplan stored?

565


What are the important aspects of a test case?

561


How to create a test frame?

618






How to specify a browser extension to a web application?

587


What is multi-tagging?

596


What are the problems you faced while identifying an object in silk?

1893


How to run a test case from a testplan file?

597


What is 4test?

589


What is silktest agent?

571


How to run all test cases in a testplan?

612


How to assign attribute values to test cases?

626


How to create group and sub group descriptions in a testplan?

575


How to define new testplan attributes?

512