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?
Answers were Sorted based on User's Feedback
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 |
Answer / knk
Since based on the input we give (say variable sInput), the window appears, Its better to write descriptive code by giving the property of the window as the input you have given previously i.e (sInput) and activating the window with setactive() method.
Is This Answer Correct ? | 0 Yes | 1 No |
What are the types of text lines in a testplan file?
What are the problems you faced while identifying an object in silk?
How to include a test case into a testplan?
How can i used If Else statement in Silk Test. And my table name is login how can i get rowcount in the table having
How to create and edit a testplan?
What is stored in a test frame?
What is the dom browser extension?
Whats the difference between Basestate & Default basestate?
How to create a new silktest project?
In for test there are three pass modes for function arguments. They are rarely used since pass mode always default to the most used one. Pls name them and specify which one is a default?
Imagine you have a string variable that holder a credit card (16digit). There are multiple ways of obtaining last four digits of this number programmatically on a run time. Name one; for practical purpose variables name is sCCnumber?
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?