Synchronization :
Synchronization is a process to make the Automation tool(QTP) wait for the application process to complete prior to moving to subsequent steps.
How can we achieve this, it can be done in the following ways.
1. Inserting the synchronization point.
2. Increasing the Browser Navigation timeout.
3. Increasing the Object Synchronization timeout
4. Using Browser Sync method
5. Inserting the Wait/Exist statement.
Synchronization Point :
Synchronization is a process to make the Automation tool(QTP) wait for the application process to complete prior to moving to subsequent steps.
How can we achieve this, it can be done in the following ways.
1. Inserting the synchronization point.
2. Increasing the Browser Navigation timeout.
3. Increasing the Object Synchronization timeout
4. Using Browser Sync method
5. Inserting the Wait/Exist statement.
Synchronization Point :
- One can Insert a Synchronization point during a recording session on an application object and ensure the tool waits for the object to get fully functional prior to continuing with subsequent steps.
- One can insert a Synchronization Point by navigating to Insert -> Synchronization Point , using the Hand Icon to select an object on the application window.
- Select a Property Name for this object for which synchronization is to be defined.
- Once the synchronization point is defines, a waitproperty statement gets generated in the expert view and an operation with waitproperty in the keyword view.
- Increasing the Browser Navigation timeout would enable QTP to wait for the browser to navigate to the desired webpage.
- Increasing the Object Synchronization timeout would enable QTP to wait for the objects on the UI to appear .
Both the Above properties are accessible by navigating through File -> Settings tab. - Sync : Used to make QTP wait for application to navigate to a specified page.
- Wait : This would make QTP wait for the time specified in the wait statement.
- Exist : This would make QTP wait for the time specified in the exist statement till the object exist or the time gets elapsed.
No comments:
Post a Comment