SilkTest

  Home  Applications Programs  SilkTest


“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

101⟩ What is in the test result file?

1. Result sumary: The name of the script file. The name of the testcase. The machine on which the tests ran. The starting time and the total elapsed time. The number and percentage of testcases that passed and failed. The total number of errors and warnings.

2. Result detail: List of errors and detailed information.

 206 views

102⟩ How to do negative testing on webpage? Can I have to capture all error pages?

Capturing all the error messages page would lengthen your script.....Capture only one page and using "*" in declaration try to make the identifier common to all the pages...

If the error message appears as a text message, get the index of the text (Generally it is fixed) and retrieve the value of the test and compare with the expected e,g

if BrowserPage.HtmlText ("#1").GetText () == "Invalid date"

Print ("Pass")

else

Print ("Fail")

Suppose first time you enter an invalid mail ID and the error page has the tag "Error Page - Invalid mail ID". 2nd time you enter invalid date and the error page has the tag "Error Page - Invalid date".

To generalize the error page, change the tag to "Error Page - Invalid*" or "Error Page*" which suffices that error page is there.....

 205 views

104⟩ Testing a product with both web and non-web interfaces. testscripts to test both and has had trouble configuring Silk to do this. using Silk 2.1 and is wondering whether upgrading to Silk 5.0 might help?

Trying to automate the testing of both Web GUI and non web GUI at the same time. Meaning in the same testcase?

If not. Organizer: You can create 2 different .opt files (option files) one with the Web environment and the other without. In the organizer Can tell it which opt file to load before executing a specific testcase.

 229 views

105⟩ What is multi-tagging?

Multi-tagging is a technique used by the DOM browser extension to identify a Web page UI object. Whenever possible, DOM extension inserts more than one tag into the object identifier in following format:

Browser.BrowserChild

("page_title").html_class("caption_tag|#index_tag|window_tag")

1. "caption_tag" is the caption of the HTML element.

2. "#index_tag" is the index of this HTML element, counting from the beginning of this page of the same class of HTML elements.

3. "window_tag" is the window identifier.

 243 views

106⟩ How DOM browser extension identify a Web application UI object?

A Web application UI object is identified in two parts:

1. Identify the Web browser window where the Web application is running. For example, a Web browser window can be identified as "Browser.BrowserChild("Yahoo Home Page")". Another Web browser window can be identified as "Browser.BrowserChild("Google Home Page")".

2. Identify the Web UI object based on the HTML element that represents the UI object. For example, an image in a Web page can be identified as "HtmlImage("Yahoo Logo")"; A hyperlink in a Web page can be identified as "HtmlLink("Site Map")";

The full identification of a Web applicatin UI object is the concatenation of the browser window identification and the HTML element identification. For example, the Yahoo logo image is identified as: Browser.BrowserChild("Yahoo Home Page").HtmlImage("Yahoo Logo"). The site map link is identified as: Browser.BrowserChild("Google Home Page").HtmlLink("Site Map").

 217 views

107⟩ How to include a test case into a testplan?

1. Make sure your testplan is open.

2. Enter a test description into your testplan. For example, "Test login process".

3. Select this test description.

4. Click Testplan/Detail menu. The Testplan Detail dialog box shows up.

5. Click the Test Execution tag on the Testplan Detail dialog box.

6. Click the "Scripts" button to browse and select a test case script file. For example, LoginTest.t.

7. Click the "Testcases" button, to select a testcase recored in the specified script file.

8. Click OK to close the Testplan Detail dialog box.

 216 views

108⟩ How to run a test case from a testplan file?

If a testcase is linked to a testplan, you can run it from the testplan:

1. Open the testplan.

2. Select the test description line which has the testcase linked.

3. Click Run/Testcase menu. The Run Testcase dialog box shows up.

4. Click the Run button. SilkTest starts to run the test case.

5. Do not touch mouse or keyboard, to avoid interrupting the test case execution.

6. SilkTest finishes executing the testcase. The Restuls window shows up with the execution result.

7. Review the execution result.

 195 views

109⟩ How to run all test cases in a testplan?

1. Open the testplan.

2. Click Run/Run All Tests menu. SilkTest starts to run all the test cases in the testplan.

3. Do not touch mouse or keyboard, to avoid interrupting the test case execution.

4. SilkTest finishes executing the testcase. The Restuls window shows up with the execution result.

5. Review the execution result.

 193 views

110⟩ How to specify a browser extension to a Web application?

1. Run SilkTest.

2. Open Internet Explorer (IE).

3. Enter the URL of the Web application.

4. Leave the IE window with the Web application. Don't minimize the IE window.

5. To back to SilkTest window.

6. Select Basic Workflow bar.

7. Click Enable Externsions on the Workflow bar.

8. The Enable Extensions dialog will show up. Your Web application running in the IE window will listed in the dialog box.

9. Select your Web application and click Select.

10. The Extension Settings dialog will show up. Click OK to enable the DOM browser extension.

 235 views

114⟩ How to test your DefaultBaseState?

1. Close your Web application and other Web browsers.

2. Make sure your test frame is open.

3. Click Run/Application State menu. The Run Application State dialog box shows up with a list of states. One of them should be DefaultBaseState.

4. Select DefaultBaseState.

5. Click Run button. The Runtime Status dialog box shows up. And the Results File dialog box shows up too.

6. You should see no error message in the results file.

 203 views

115⟩ How record a test case into a testplan automatically?

Test cases can recorded first without a testplan, then included into a testplan later. Test cases can also be recorded into a testplan directly:

1. Make sure your testplan is open.

2. Enter a test descripption into your testplan. For example, "Test change password".

3. Select this test description.

4. Click Record/Testcase menu.

5. Enter a name for the script file.

6. Click Open. The Record Testcase dialog box shows up.

7. Enter a testcase name in the Testcase Name field.

8. Select DefaultBaseState in the Applicatin State dropdown list.

9. Click Start Recording button.The Record Testcase dialog closes. Your Web application is will be automatically started by SilkTest, based on the information in test frame file. SilkTest Editor window closes. The Record Status dialog box shows up.

10. Continue to use your Web application. SilkTest records everything you did on your application.

11. Click the "Done" button on the Recording Status dialog box to stop recording. The Recording Status dialog box closes. The Record Testcase dialog box shows up again.

12. Click Paste to Editor. SilkTest will insert the recorded acitivities as 4Test statements into a script file. The Record Testcase dialog closes.

13. Click File/Save menu to save the script file. You can enter a script file name. For example, ChangePasswordTest.t.

 205 views

118⟩ I want to set current path run time?

I want to set current path run time - means if I am having scripts on *C:Silktest*XYZ.pln then in Initialise function - I want to set path as

*C:Silktest *

How to do that in ST ?

Also I want to set few run time options , not thr' run time option dialog box but pragmatically Note ::All options present in Runtime dialog

1. Use files

2. Result file path

I checked for .opt file option ..

that is for Agents ONLY I guess..

The "CurrentPath" would return the current path.....Manipulate this string to set your current path......

In .opt file set

[Runtime]

UseFiles=C:SilkTesttest.inc;extendexplorer.inc;so on.........

ResultsPath=C:Silktest

 239 views

119⟩ Does anybody know the escape sequence for space in Silk Test?

Does anybody know the escape sequence for 'space' in Silk Test?

For eg :

On the cmd line I have to execute an exe, the location of which is : C:Program Filesxyzabc.exe

Now I need to escape the " " in 'Program Files'.

Answer1:

One thing is, you can use as C:Progr~1xyzabc.exe

Second one is give like myWindow.TypeKeys(" ")

Or just enclose the whole cmd in "". This will handle the space, I think this is your issue?

like:

string sCmdLine = "C:Program Filesxyzabc.exe"

Sys_Execute(sCmdLine)

Answer2:

You can use the command line with quotes when you have a long file name. so, if you need to execute "C:Program FilesMyProgProg.exe"

you can pass the quoted string :

""C:Program FilesMyProgProg.exe""

and it should execute Prog.exe correctly.

Answer3:

Might need to mix your quotes to make that work, like:

"'C:Program FilesMyProgProg.exe'"

 207 views