Hello
I'm trying to call a test from another test in Mobile Test Studio. The only indicated way is through a coded step. Below is the code inside the test method. The test returns a -1 exit code.
I have called the separate test from the command line directly so know it's possible to call a test, but not sure if this is capable in Mobile Test Studio.
//Code Start
// initialize new system process
Process runFooTest = new Process();
// define the process name to be started
runFooTest.StartInfo.FileName = @"C:\Program Files (x86)\Progress\Test Studio\Bin\MobileStudio\Telerik.MobileTesting.Runner.exe";
// set the arguments
runFooTest.StartInfo.Arguments = @"/msgServer=ws://localhost:8083 /project=C:\MobileAutomation\Mobile /test=Successful_Connection_iOS_App";
// run the process
runFooTest.Start();
// wait until the test return an exit code
runFooTest.WaitForExit();
// get the exit code from the executed process
int exitCode = runFooTest.ExitCode;
//Log.WriteLine(exitCode.ToString());
// check if this test step pass or fail. If return 0 - process complete normally, else - process fould.
Assert.AreEqual(exitCode, 0);