Silk Test Interview Questions3

1. What is DefaultBaseState?

The DefaultBaseState is a starting point of test project from which the Recovery System can automatically restart your test cases when cases fail to continue.

2. 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.

3. What are the important aspects of a test case?

1. Each test case must be independent of other test cases.
2. Each test case have a single test purpose.
3. Each test case should start from a base state and returning to the same base time.

4. What is the standard flow of execution of a test case?

1. Starting from the base state.
2. Drive the application to the state where the expected result should occur.
3. Verify the actual result against the expected result.
4. Declare the test case as passed or failed.
5. Return to the base state.

5. How to record a test case?

1. Run Silk Test.
2. Click Option/Runtime menu. the Runtime options dialog box shows up.
3. edit the use files field to include your test frame file and the explorer.inc file. For example: ….\HomeFrame.inc, extend\explorer.inc.
4. Make sure IE 5.x DOM is selected.
5. Click OK to close the Runtime Options dialog box.
6. Open your test project.
7. Click Record/Testcase menu. The record testcase dialog box shows up.
8. Name your test case. For example: LoginTest.
9. Select DefaultBasestate in the Application State dropdown list.
10 Click start Recording button. The Record Testcase dialog box closes. Your Web application will be automatically started by Silk test, based on the information in test frame file. Silk test Editor window closes. The Record status dialog box shows up.
11. Continue to use your web application. Silk test records everything you did on your application.
12. 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.
13. Click paste to Editor. Silk Test will insert the recorded activities as 4test statements into a script file. The Record Testcase dialog closes.
14. Click File/Save Menuto save the script file. You can enter a script file name. For example, LoginTest.t.

6. How to include a test case into a testplan?

1. Make sure your test plan 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 testcase script file. For example, LoginTest.t
7. Click the “Testcases” button, to select a testcase recorded in the specified script file.
8. Click OK to close the Testplan Detail box.

7. 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 description 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 application state dropdown list.
9. Click start recording button. The record Testcase dialog box closes. Your web application will be automatically sarted by silk test, based on the information in test frame file. Silk test editor window cloases. the record status dialog box shows up.
10. Continue to use your web application. Silk test 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. Silk test will insert the recorded activities 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, changePaswordTest.t.

8. How to define an object verification in a test case?

While recording a test case, you can define verification points to verify UI objects:

1. Make sure you are in the process of recording a testcase.
2. make sure the Record status dialog box is on the screen.
3. Make sure your recording reached the web page that has the UI object you want to verify.
4. Click the background(blank area) of the web page. Do not click any objects on the page.
5. Press Ctrl-Alt. The verify window dialog box shows up. All the objects on the current web page are listed on the verify window dialog box.
6. Select the object to be verified in the object list. Un-select all other objects.
7. Select the property to be verified in the property list. Un-select all other properties.
8. Click OK to close the verify window dialog box.
9. Continue your recordings.


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply