Got a UFT script that does some prompting for run criterias but I also want to make it available to run from Jenkins by batch - so there has to be some sort of run library for what batch jobs to run when etc but also able to be updated by jenkins etc?
Don't know what the best way to set this up.
Could the community suggest the best way to do this? I'm sure you all have got this issue - whats the industry standard?
yes - read that - that tells you how to use jenkins - but is it not just as important to set up the uft structure to accommodate running via ALM/Jenkins, standalone, scheduled now so that in the future when these options are enacted then you can easily do it rather than shoehorning them? like some advice...
When you set up your Jenkins job you will specify the ALM test set or test instance in a test set, host to run on.
The rest is already taken care of by ALM.
If you're running without ALM then all you really need is the command line syntax to run a UFT test - which means specifying the action name, test and location of the test.
The UFT test should know where it's associated resources are.
So when you say "UFT script that does some prompting for run criterias" do you mean actual pop-up input boxes? You should get rid of those regardless, no place for that in automation. Replace with either a batch file call that takes command line inputs, environment variables, an input file, database, anything else really.
Last edited by NoUse4aName; 09-16-2016 at 08:29 AM.
but there are some manual testers that want to run specific tests and want to use their own data files and want to run specific test cases - are you saying for them to put that in a bacth file input? management was happy there was a selection input point and not only something us automation people did
So all I really was asking is if there is a pretty standard way of using the same script that prompts for interaction to drive the script but also if it is launched by a batch process to ignore the interactive part and go the command line input/input file and I'm wondering if thats via params or just 2 different scripts?