SilkTest Interview Preparation Guide
Download PDF

SilkTest Interview Questions and Answers will guide us now that SilkTest is an automation tool for testing the functionality of enterprise applications in most versions of Windows, Solaris 9 and 10, and Red Hat Enterprise Linux WS 2.1 and 3.0, s learn SilkTest or get preparation for the job of SilkTest with the help of this SilkTest Interview Questions with Answers guide

146 SilkTest Questions and Answers:

1 :: What is SilkTest?

SilkTest is a software testing automation tool developed by Segue Software, Inc.

2 :: What is SilkTest Host?

SilkTest Host is a SilkTest component that manages and executes test scripts. SilkTest Host usually runs on a separate machine different than the machine where AUT (Application Under Test) is running.

3 :: What is 4Test?

4Test is a test scripting language used by SilkTest to compose test scripts to perform automated tests. 4Test is an object-oriented fourth-generation language. It consists of 3 sets of functionalities:

1. A robust library of object-oriented classes and methods that specify how a testcase can interact with an application’s GUI objects.
2. A set of statements, operators and data types that you use to introduce structure and logic to a recorded testcase.
3. A library of built-in functions for performing common support tasks.

4 :: What is the VO browser extension?

Virtual Object (VO) browser extension is a SilkTest add-on component for testing Web applications. VO browser extersion uses sophisticated pattern recognition techniques to identify browser-rendered objects. The VO extension sees Web pages as they appear visually; it does not read or recognize HTML tags in the Web application code. Instead, the VO extension sees the objects in a Web page; for example, links, tables, images and compound controls the way that you do, regardless of the technology behind them.

5 :: I have recently encounterd a problem using Silk Test V3. When I record selecting a Menu Item it correctly records eg. Product.File.Exit.Pick()
But when I play it back it just selects the File Menu and fails to select Exit. The File Menu is not dropped, it is just highlighted.
The application is written in Visual C++ and is running on NT 4.
A couple if the menu items to work but that is about 2 out of 15 items. I can work around the problem using the menu short cut keys but would prefer to be simulating using the mouse in some test cases. Any ideas?

I have run into this problem before and it turned out to be a focus problem in the AUT. First, we need to understand how QAP/Silk selects menu items. It doesn't really use the mouse. It uses the key to highlight the menu bar and then arrows to the desired menu item. Try something out: Drive your application to the state before the menu selection. Now manually type F-10 or Alt and see if the menu highlights and allows you to arrow to the menu item. I'm guessing that it is probably a ChildWin or DialogBox that is really holding the focus and not passing the keyboard events to the MainWin. If this is the case, you need to explain to the developers that they need to enable this so that you can continue with your automated testing. A trick around this problem is to do a YourProduct.Click () to force the focus to the MainWin and then do the menu selection (YourProduct.File.Exit.Pick())

6 :: How to close unexpected window?

You meant to say one more browser window (Order Request) appearing apart from original window (Order Status)?

Answer1
If Order Request window is a popup.

Following code closes the active browser window if it is a popup:
[-] !(if Browser.ComboBox("#1").exists())
[ ] Browser.SetActive()
[ ] Browser.typekeys("")

Answer2
If Order Request window is a Browser window.(not a popup)
You can use the following code to close unwanted Browsers(like Order Request)

Order_Status.SetActive()
Browser.CloseOthers()

7 :: What is the best way to create a new test script?

In Automation; creating test scripts involves basically two step:
1. Creating Test Data for all test cases.
2. Writing scripts for automating the test cases.

The first steps, is the outcome of analysis of what all data is required for all of your testcases to be executed. These all should be collected and scripts to be written so that TEST DATA is ready.
The second steps, is basically the test case execution steps automation.

8 :: Is There any function for word count of web page is available in the SilkTest?

You can use Clipboard functions. Get All the contents by Ctrl+a & ctrl+C. Then parse the List of sting ...

9 :: What is SilkTest project?

A SilkTest project is a collection of files that contains required information about a test project.

10 :: Is there any problem in using scripts created on v6.0 to 6.5 or higher versions?

Moving from lower to higher version should not be a problem....
This is a general statement and cannot be true at all instances.
I faced problems with scripts working in 6.5 not running in 7.0 because some of the recognition patterns used each changed. And in some situations, finally landed two paths of the script to perform same action based on version.
PS: Did not encounter any problems from 6.0 to 6.5.