Knowledgebase

Search:     Advanced search

Scripts Without a SetContext Statement Do Not Synchronize

Article ID: 780  |  Last updated: 23 Dec, 2014

Problem

After renaming a control in the application repository and choosing Script > Synchronize with Application Repository (or Synchronize Multiple with Application Repository), references to controls in the script are not updated.

Cause

The script does not contain a SetContext statement or the statement has been commented out. This often occurs when one script calls another and the application context is set by the first script.

Solution

QA Wizard Pro needs the SetContext statement to determine which application the script uses. Without it, QA Wizard Pro cannot determine if the changes apply to the script.

To fix this problem, make sure that your script contains a SetContext statement before synchronizing it with the application repository. The statement has the following syntax:

Script.SetContext("ApplicationName")

If the script is called by another script, you can comment out the SetContext statement after you synchronize the script.

Article ID: 780  |   Last updated: 23 Dec, 2014
Tags
rename control synchronize

Prev   Next
Handling Known Exceptions     Binding to Target Application Error After Upgrading