Sunday, November 8, 2015

Step Generator

Note: Step Generator is used to reuse listed things and generate a code for the same. But for functions you need to add 'Call' keyword' after inserting functions and before running the script.

Note: In UFT, Step generator is located in Design in Menu bar.


11/8/2015

- Adding Test Objects
go to Insert - > Step Generator

Select Test Objects in the category drop down and the objects that you wanted to add script for.

Note: Looks like Step is used to create syntax/code for adding or doing operations on the test objects


- Adding Builtin Functions

go to Insert -> Step Generator

Select Functions in the category drop down.

- Adding Local Script Functions


- Adding Library Functions

Note: Library functions are listed only library functions are associated with the test. You could see same in the operations in Step generator window.(looks like Step generator(operation field) will also list library functions)

To have function library, the existing function in the script could be saved as seperate file extension .vbs.
Once .vbs file is created, associate it from the Settings section in menu bar. Once it is associated, in the Operations field in Step generator you could see the same.








No comments:

Post a Comment