"page_title" is the title of the Web page, defined by the HTML tag.
"object_tag" is the label of the HTML element. How a HTML element is labeled depending on the type of HTML element.
23) How to add objects of other pages to a test frame?
Ans. If your Web application has pages other than the home page, you should also record their page objects into the test frame:
Make sure your Web browser is active and showing another page of your Web application.
Make sure SilkTest is running.
Click File/Open menu.
Select your test frame file. For example: HomeFrame.inc
Click OK to open the test frame.
Click Record/Window Declarations menu. The Record Window Declarations dialog box shows up.
Click your Web application window. Web page objects are recorded in the Record Window Declarations dialog box.
Press Ctrl+Alt to pause the recording.
Click "Paste to Editor" button. All recorded objects will be inserted into the test frame.
Repeat this for other Web pages, if needed.
24) What is DefaultBaseState?
Ans. The DefaultBaseState is a starting point of test project from which the Recovery System can automatically restart your test cases when test cases fail to continue.
25)What is the standard flow of execution of a test case?
Ans.
Starting from the base state.
Drive the application to the state where the expected result should occur.
Verify the actual result against the expected result.
Declare the test case as passed or failed.
Return to the base state.
26) How to record a test case?
Ans.
Run SilkTest.
Click Option/Runtime menu. The Runtime Options dialog box shows up.
Edit the Use Files field to include your test frame file and the exlorer.inc file. For example: ...\HomeFrame.inc,extend\explorer.inc.
Make sure IE 5.x DOM is selceted.
Click OK to cloase the Runtime Optoins dialog box.
Open your test project.
Click Record/Testcase menu. The Record Testcase dialog box shows up.
Name your test case. For example: LoginTest.
Select DefaultBaseState in the Applicatin State dropdown list.
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.
Continue to use your Web application. SilkTest records everything you did on your application.
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.
Click Paste to Editor. SilkTest will insert the recorded acitivities as 4Test statements into a script file. The Record Testcase dialog closes.
Click File/Save menu to save the script file. You can enter a script file name. For example, LoginTest.t.
27) How to write a Masterplan?
Ans. You can run all your sub-plans using master plan approach.
You just open new plan file and call your subplan/testcase from this file.
if you want to run subplan from master plan then sysntax is like
include: mysubplan.pln
28) How to define an object verification in a test case?
Ans. While recording a test case, you can define verification points to verify UI objects:
Make sure you are in the process of recording a testcase.
Make sure the Record Status dialog box is on the screen.
Make sure your recording reached the Web page that has the UI object you want to verify.
Click the background (blank area) of the Web page. Do not click any objects on the page.
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.
Select the object to be verified in the object list. Un-select all other objets.
Select the property to be verified in the property list. Un-select all other properties.
Click OK to close the Verify Window dialog box.
Continue your recording.
29) How to run a test case from a test script file?
Ans. A test script file can store multiple test cases. You can run a testcase from a test script file:
Open the test script file.
Select the test case in the test file.
Click Run/Testcase menu. The Run Testcase dialog box shows up.
Click the Run button. SilkTest starts to run the test case.
Do not touch mouse or keyboard, to avoid interrupting the test case execution.
SilkTest finishes executing the testcase. The Restuls window shows up with the execution result.
Review the execution result.
30) What's in the test result file?
Ans.
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.
Result detail: List of errors and detailed information.