Wednesday, February 2, 2011

QTP FAQ 4

Call to Action : The changes made in Call to Action , will be reflected in the orginal action( from where the script is called).But where as in Copy Action , the changes made in the script ,will not effect the original script(Action)


call to copy action: In this action called program will copy in to the caling action and this action will act as local action in the calling action. and the respctive OR and Local sheet copies in to the calling action and act as local OR and local sheet to the calling action.

Call to Copy Action: In this action called action will work as External action and it be in read only mode in the calling test. just for readbility called action will copied in to the calling test.

In the above 2 actions QTP generates a statment called Runaction."Action Name".OneIterations.
Must know VBScript in order to program at all.
Must be able to program in VBScript in order to implement the real advance testing tasks and to handle dynamic situations.
Text check point is inserted to check static data in the page but for checking dynamic data like Date we can't use Text Check point.


Text check point is user for checking the data present on a specified object.It can be inserted in two ways.
1.through application.
2.through activescreen.

Bit map check point is used for checking the complete or a part of a bitmap. it can be inserted in two ways.
1.through application.
2.through active screen.




We can record a pop up window through Recovery Management.We can record popup window using Record and Playback method for negative testing.

In recovery scenario, we record popup window only when we want to prevent our application from crash by unexpected popup window.
For suppose our application is web base application and we are writing login script. And after entering correct credential user is able to login. but due to bug now user is unable to login and after click on submit button popup window is displaying. for this type unexpected behavior, we can create a popup handler script on all submit button and also we can user recovery scenario to handle this situation.
Execute_File "Path of the .vbs file "
executefile "C:Usersviju(PV)Desktopopening.vbs"
record events on your application

stop recording

go to tools menu

slect data driver

and data driven wizard

pass parametres using step by step

click next

click parametrize radio button

and parametrize yr script

clik next

click finish

No comments:

Post a Comment