Silk Test Base State

What is the difference between base state & default base state?

Questions by shumi   answers by shumi

Showing Answers 1 - 6 of 6 Answers

kedarprj

  • Jan 21st, 2008
 

DefaultBaseState

SilkTest provides a DefaultBaseState for applications, which ensures the following conditions are met before recording and executing a testcase:

· The application is running

· The application is not minimized

· The application is the active application

· No windows other than the application’s main window are open

The DefaultBaseState also ensures the following for browsers, in addition to the items listed above:

· The browser is ready

· Constants are set

· The browser has toolbars, location and status bar displayed.

BASESTATE:
To record a BaseState method:

1 Open your application and the application’s test frame file.

2 Place the insertion point on the declaration for the application’s main window.

3 Select Record/Method. SilkTest displays the Record Method dialog, which allows you to record a method for a class or window declaration.

4 Select BaseState from the drop-down list in the Method Name field.

5 Click the Start Recording pushbutton. SilkTest closes the Record Method dialog and displays the Record Status window, which indicates that you can begin recording the BaseState method. The Status field flashes the word Recording.

6 When you have finished recording the BaseState method, click the Done pushbutton on the Record Status window. SilkTest redisplays the Record Method dialog. The Method Code field contains the 4Test code you’ve just recorded.

7 Click OK to close the Record Method dialog and place the new BaseState method in the declaration for your main window.

  Was this answer useful?  Yes

testingeek

  • Jan 25th, 2008
 

Default Base state : This is done during the creation of the testframe. This is essential to help the control to be passed to the Recovery system in case of a failure.
This is more to do with the AUT is ready , constants are set etc in the test framework.

The base state is the intented application state at the start. When a done are running a script. Where there is clean up after the script is run ensuring that the script is in its initial state.
This is more related to the state of a silk script.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions