Can UFT execute scripts in background without activating Browser
I need to be able to execute UFT scripts in background without UFT window and without browser activated on screen. Is this Possible with UFT. If yes then how can I run both of them without any windows popping up on screen. I just want to see the results pass or fail after execution.
You can start UFT from a vbscript. You set the visible property for the UFT Object to .visible=False.
This isn't going to preclude UFT's need to activate the AUT.
Originally Posted by bklabel1
The only way I've seen this happen is by accident, with UFT and the AUT being invoked in a different user session on the VM.
... just another Tester ...
I suppose it depends on exactly what you're doing, but... are you sure QTP is the best answer? If you're trying to test the GUI, I have to wonder why you're opposed to displaying it. That's definitely the hard way to do things.
If you're trying to test web functionality, apart from the GUI, then you could write a script in any language that interacts with HTTP calls. Many would be more efficient than using QTP and trying to hide it. If you give me a better idea what you're trying to accomplish, I'll try to give more helpful advice.
My scripts would be used by developers to test the new build, and they don't want see any windows opening and closing on screen, just want to see the results if it passed to failed running through TFS. I am testing only GUI stuff.
Originally Posted by belewda
I thought you were asking about not showing UFT. You do not want the Application Under Test Browser window to be displayed.
I have never seen anyone attempt this.
Just another thing showing how outdated QTP has become.
So, you are testing only GUI stuff. That is really good to know.
Originally Posted by szkapoo
You could have gotten the answer to your question if you had executed your script without a browser running (assuming you are testing a web app and your script does not do a browser start).
When doing GUI related testing, GUI driven test tools such as QTP/UFT, SilkTest, Ranorex, etc. do rely on the GUI of your AUT to effectively test whether an object has been clicked or an object really does exist.
Suggestions to your issue (don't want any window popping up on their screen):
1. Run your script against the Dev environment and give your developers the test results
2. If you have remote VM machines, tell developers they can run your script on those machines instead of their local machines.
Thanks for your suggestion, I wll run tis by our development.
Originally Posted by Gilbert
You can use a combination of Jenkins and VMs to achieve unattended test execution.