Hello all experts,
I am a newbie in testing!! now that I am assigned a task to make vb call the winrunner test scripts(TSL)
I have been googling and found no answer...could anyone pls give me an idea how this could be done..
a few links or some tutorials to have a look will be much appreciated.
WinRunner scripts need WinRunner to execute. I'm not a VB expert, but presumably you can invoke an application with VB? Then use that, along with the information in the WR manual dealing with command-line execution.
If the intention is to execute TSL on a PC that doesn't have WR installed on it then - sorry - no can do.
You can launch WR from VB by calling the executable. I've ad to do that in the recent past here. We wanted a way fro people that didn't know how to run WinRunner scripts to be able to come up to a system and kick off a batch of tests if they wanted to.
We had a VB application running where they could choose a list of tests with paramteres (like server to run against, setting time stampping and debug modes).
As stated, you will still need to have WR installed on the system to run the tests, TSL isn't a language you can compile.
Insanity: doing the same thing over and over again and expecting different results
Thanks for the replies,
The main reason behind using VB is trying to make the testing tool independent...now my company runs a testing environment with winrunner.
for future use we wish not to be dependent on TSL..the framework remains the same and whatever the tool be we need to have a common interface that calls the functions.
one possible way I reckon is write the test results of TSL into a file or database, where VB could read it and compare with the expected result file /db..
but i have no idea if this is possible..i know that TSL can write to atext file or excel sheet,but can it write to database like MS Access/SQLserver .
pardon me if I am explaining it in an amateurish way...
I'm not sure I understand what "independent" means in this context. If you wish to be independent of TSL, then scrap WinRunner??? A common interface can be a framework written with WinRunner resident and custom functions. WinRunner has built-in comparison logic. Results are available as part of the tool. If you wish to write results to a databse, you can do that with WinRunner using all the functions of the TSL family "db_*".
For a framework, you are in luck. Using the word "framework" here automatically triggers a message to the EMOS QAF member who will set you up! [img]images/icons/smile.gif[/img] [img]images/icons/smile.gif[/img]