vbscript - QTP: Set relative Path in QTP during the run time -


Using the QPP menu bar, I can set my folder path and use the relative path in the action script Can i

First of all, if I want to get one in the script, how can I do this?

Secondly, if I want to set the system environment variable named "TEST_ROOT_PATH", can I achieve it during the run time of every test?

Allows dynamic modification of the collection of QTP folders, as the basis for finding relative paths Do the work. You can access this collection by the "Folders" method of the QPP application.

This should be something like this:

  set qtApp = CreateObject ("QuickTest.Application"). QtFolders = QtApp.Folders qtFolders.Add "Your Path"  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -