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



I'm involved in automation using silk test of an swing application running in a browser. Ther..

Answer / 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

I'm involved in automation using silk test of an swing application running in a browser. Ther..

Answer / nponpandian

use Browser.GetCaption() method

Is This Answer Correct ?    0 Yes 0 No

I'm involved in automation using silk test of an swing application running in a browser. Ther..

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

Post New Answer

More Silk Test Interview Questions

Define PEER Review ,what it contains & What we discuss in that meeting.

2 Answers  


How to create a test frame?

1 Answers  


What statement in for test is used to transfer control of the script out of the innermost nested for, for each, while switch or selected statement?

1 Answers   IBM,


What is the syntax of ui object identifier used by dom extension?

1 Answers  


What is the dom browser extension?

1 Answers  


What is multi-tagging?

1 Answers  


who is the head of the BMC

1 Answers   BMC,


How can you read the contents of PDF using silktest?

2 Answers  


why silk test sees each objects as custom windows?

1 Answers   BMC,


Need information on how the scripts (test cases) are written for any application in silktest.

1 Answers  


How do you create a user defined class in silk?

2 Answers  


Which tag in silk is the most reliable in a scenario where content and order of object change frequently?

5 Answers   IBM,


Categories