11) Is There any function for word count of web page is available in the SilkTest?
Ans. You can use Clipboard functions. Get All the contents by Ctrl+a & ctrl+C. Then parse the List of string ...
12) What is a SilkTest Testplan?
Ans. The SilkTest testplan is an outline that provides a framework for the software testing process and serves as the point of control for organizing and managing your test requirements. A testplan consists of two distinct parts: an outline, which is a formatted description of the test requirements, and statements, which are used to connect the testplan to SilkTest scripts and testcases that implement the test requirements.
13) What's the best way to create a new test script?
Ans. In Automation; creating test scripts involves basically two step:
Creating Test Data for all test cases.
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.
14) How to get button caption?
Ans. Use GetCaption () method......
14)How to close unexpected window?
Ans. 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("")
15)What are the types of text lines in a testplan file?
Ans. A testplan file contains text lines. There are 5 types of text lines in a testplan file:
Comment - Marked in green color: Providing commentary information.
Group descriptiton - Marked in black color: Providing descriptions for groups of tests. Tests in a testplan can be grouped into multiple levels of groups.
Test description - Marked in blue color: Providing descriptions for individual test.
Testplan statement - Marked in dark red color: Providing relations to link scripts, testcases, test data, closed sub testplans or an include file to the testplan.
Testplan statement - Marked in dark red color: Providing relations to link scripts, testcases, test data, closed sub testplans or an include file to the testplan.
Open subplan file marker - Marked in magenda color: Providing relations to link sub testplans to be included in a master testplan.
16)What are the default testplan attributes?
Ans. SilkTest offers you 3 predefined default attributes:
Category: The type of testcase or group of testcases. For example, you can use this attributes to categorize your test groups as "Boundary value tests", "Navagation tests", etc.
Component: The name of the application modules to be tested.
Developer: The name of the QA engineer assigned to develop the testcase or group of testcases.
17) How to maintain recovery system?
Ans. In your TestCaseExit () function you can incorporate like
If condition == 1
do this
If condition == 2
do that
18) How to define new testplan attributes?
Ans.
Make sure your test project is open.
Click Testplan/Define Attributes menu. The Define Attributes dialog box shows up. You should see 3 predefined default attributes: Category, Component, and Developer.
Click the New button. The New Attribute dialog box shows up.
Enter a name for your new attribute. For example: "Level" to indicate the complexity level of test cases.
Select an attribute type: Normal, Edit, or Set.
Click OK.
19)How to assign attribute values to test cases?
Ans.
Make sure your testplan is open.
Click on the test case for which you want to assign an attribute value.
Click Testplan/Detail menu. The Testplan Details dialog box shows up.
Click the Test Attribute tab.
Click the Component field. The dropdown list shows up with all values of "Component".
Select one of the values in the dropdown list.
Click OK.
20)How to assign attribute values to test cases?
Ans.
Make sure your Web browser is active and showing your Web application home page. Do not minimize this Web page window.
Make sure your test project is open.
Click File/New menu. The New dialog box shows up.
Select the Test Frame radio button.
Click OK. The New Test Frame dialog box shows up with a list all active Web applications.
Select your Web application.
Enter a test frame name. For example: HomeFrame.inc.
Review the window name. It should be the HTML title your Web application. You can rename it, if needed.