Automating Quick Test Pro with BF
![](http://jazz.net/_images/myphoto/1036e2e011b1c4d75a4c33a6420efdbd.jpg)
Hi Folks,
I am trying to automate the execution of Quick Test Pro tests with BF.
I have run into an issue that I don't think is a BF issue but I need some guidance.
Background:
I am not a QTP expert. I barely know it.
I am using a sample vb script to leverage the QTP api.
Here's the issue:
1) If I log onto the test machine and run the vb script from the command line, everything works.
2) If I have BF launch the same script through the agent , I get an error from QTP that seems to indicate that QTP doesn't like who I'm logged in as.
3) the use for both steps 1 and 2 is the same.
My questions are:
1) When an agent logs in to a remote machine, what "kind" of log in is it? Are their different types of long ons for windows? Interactive, etc.
2) If I run a "whoami" from the BF step, it returns <DOMAIN>\cmbuild
That's the user I am using for the server auth.
This means any command run as part of the BF step runs in the context of that user right?
3) has anyone automated QTP with BF?
Thanks
Andy
I am trying to automate the execution of Quick Test Pro tests with BF.
I have run into an issue that I don't think is a BF issue but I need some guidance.
Background:
I am not a QTP expert. I barely know it.
I am using a sample vb script to leverage the QTP api.
Here's the issue:
1) If I log onto the test machine and run the vb script from the command line, everything works.
2) If I have BF launch the same script through the agent , I get an error from QTP that seems to indicate that QTP doesn't like who I'm logged in as.
3) the use for both steps 1 and 2 is the same.
My questions are:
1) When an agent logs in to a remote machine, what "kind" of log in is it? Are their different types of long ons for windows? Interactive, etc.
2) If I run a "whoami" from the BF step, it returns <DOMAIN>\cmbuild
That's the user I am using for the server auth.
This means any command run as part of the BF step runs in the context of that user right?
3) has anyone automated QTP with BF?
Thanks
Andy
One answer
![](http://jazz.net/_images/myphoto/1036e2e011b1c4d75a4c33a6420efdbd.jpg)
Hi Folks,
I am trying to automate the execution of Quick Test Pro tests with BF.
I have run into an issue that I don't think is a BF issue but I need some guidance.
Background:
I am not a QTP expert. I barely know it.
I am using a sample vb script to leverage the QTP api.
Here's the issue:
1) If I log onto the test machine and run the vb script from the command line, everything works.
2) If I have BF launch the same script through the agent , I get an error from QTP that seems to indicate that QTP doesn't like who I'm logged in as.
3) the use for both steps 1 and 2 is the same.
My questions are:
1) When an agent logs in to a remote machine, what "kind" of log in is it? Are their different types of long ons for windows? Interactive, etc.
2) If I run a "whoami" from the BF step, it returns <DOMAIN>\cmbuild
That's the user I am using for the server auth.
This means any command run as part of the BF step runs in the context of that user right?
3) has anyone automated QTP with BF?
Thanks
Andy
Hi Andy,
I've never used QTP, but I'm wondering if you're trying to run some GUI application (perhaps drive a browser for UI testing). If so, you should look into whether your agent has been installed with the 'User Mode' option selected. User mode does add some auth considerations that you'll need to watch for (see this post in a previous Build Forge forum).
Brent Ulbricht
RTC Build Lead