Forum Discussion
Hi Abrar22
Implementation:
We use TestExecute running on different PC.
We then created a network project containing a single Host (PC) and a task containing a job which is the main project suite and the PC.
Right-clicking the Network Suite >Verify to copy the current tests across to a the TE shared project folder.
Scheduled Running:
We use MS task scheduler to run TestExecute with a command line option to run the Project which actuall runs every 5 minutes although our tests take a lot longer than that. This means the largest gap we have between tests is 5 minutes.
We experimented with the TE command line options to get the syntax right.
Reporting:
From TC, it is possible to open the Project in the TestExecute shared folder and examine the logs in the morning. We prefer this over email, web reports, TFS task creation etc. The first time you do this you get a prompt asking if you'd like to make this folder a shared project. Click "No"
Updating the Test Environment with the latest build:
We have a staging folder on a server which I copy the latest .MSI packages and SQL Server databases (using batch files).
The first Top Level Parent test in our suite checks this folder and does the necessary installs and upgrades. The other tests will not run unless this is successful. If there's no upgrades available it simple continues the tests,
Our solution is a loose integration with TE and would not be suitable for Synchronised tests.
Which ever method you choose my only advice is to investigate the differernt options, and trial them to see how it works for you.
Hope this helps
Thanks
Is CommandLine only executed via TestExecute?
A
- Colin_McCrae9 years agoCommunity Hero
?
You mean the other way round?
aka - is Test Execute only executed via Command Line?
In which case ....
No. It's an application. It can be started in the same way as most applications. Batch/Command Line is one option. And a good one if you're starting it remotely/automatically as you can pass in a bunch of parameters/switches to tell it what to run, run in silent mode, etc etc.
- abrar229 years agoFrequent Contributor
Are you doing this via Batch File? I have managed to create a batch file which Opens up TestComplete and run all test. But I am still struggling to understand how I can get latest version of my application before I run the tests and on which Vm i want to run the tests. Is it possible to share an example of you implentation?
Thanks
A
- Colin_McCrae9 years agoCommunity Hero
Unfortunately not.
All the application deployment and pulling down of test scripts from version control was handled by the build software (TeamCity) and build engineer.
As I say, I just told him where my repository was and provided the batch file to run the right tests.
How things get pulled and deployed will be different depending on the build software/environment you use. If you don't use TeamCity/TFS/GIT, our methods probably wouldn't work anyway. Your best bet would be to talk to whoever deals with build engineering (if anyone!) at your place ...