Thursday, March 25, 2010

Quick Test Professional Operations

1) Adding object repositories at runtime:

Suppose I have a shared object repository (myresource1.tsr) and I want to make sure that the repository is already associated with my test. If not I want to associate the repository and carry on with my execution. Then open your test file and type in the following script to check for or add object repository at run time.

 If repositoriescollection.Find ("C:\Program Files\myresource1.tsr")<0 Then

      repositoriescollection.Add  "C:\Program Files\myresource1.tsr"
    
 End If

No comments:

Post a Comment