This post describes how to compile some, but not all test suites found within a Ranorex solution.
http://www.ranorex.com/forum/how-to-bui ... t1888.html
This post is also test suite based:
http://www.ranorex.com/forum/how-to-exe ... t2534.html
What I want for our continuous integration system is a command line along the lines of:
Code: Select all
RanorexSolution.exe /p:SomeRanorexSolution.rxsln /s:SomeTestSuiteName.rxtst /t:TestCaseName1:TestCaseName2:TestCaseName7
My understanding of the what happens when you hit the green (Run) arrow is Ranorex Studio does a just-in-time compile based on the XML found within the .rxsln, .rxtst, and .rxtmg files the to form an EXE file within the ~\bin\(Debug|Release) directory. This just-built .EXE file is then executed and the .EXE, in turn, deposits results into the ~\Reports directory.
I would like to do the same from the command line without interacting with the GUI. The command line I am using for executing every test cases within some but not all test suites within a solution is the following Powershell script line. It uses visual studio to build a constellation of test suites (aka *.csproj files) into a single EXE
Code: Select all
& $MSBuild "$SolutionRoot\$SolutionName.sln" "/p:AssemblyName=$Executable" "/p:Configuration=$Configuration" "/t:$BuildTarget"
$BuildTarget is the list of *.csproj files to compile
What has not worked so far:
http://www.ranorex.com/forum/running-te ... t3142.html
http://www.ranorex.com/forum/command-li ... t6948.html
http://www.ranorex.com/blog/organizing- ... ExeProject
Though to be fair the last link is still under investigation.