GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Testing Tools  >  SilkTest

 Print  |  
Question:  Silk Test Base State

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


January 01, 2008 01:33:55 #1
 kedarprj   Member Since: January 2008    Total Comments: 1 

RE: Silk Test Base State
 

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.

     

 

Back To Question