Hello,
Would it be possible to configure the build process so that the executable compiled can run without any dependency on an .rxtst file?
Thanks,
Chowdhury
Possible to run executable without .rxtst file?
-
- Posts: 5
- Joined: Tue Mar 13, 2012 7:32 pm
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Possible to run executable without .rxtst file?
Hello,
Why do you want configure the build process in that way, is there a special reason for it?
Regards,
Markus
Ranorex Support Team
Why do you want configure the build process in that way, is there a special reason for it?
Regards,
Markus
Ranorex Support Team
-
- Posts: 5
- Joined: Tue Mar 13, 2012 7:32 pm
Re: Possible to run executable without .rxtst file?
Just to make it into an all-in-one package. Just a little less hassle.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Possible to run executable without .rxtst file?
Hi,
Okay, this is a point
.
It is possible, you have to open the properties window of the test suite, right click on your *.rxtst file in the projects view and select "EmbeddedResource" as Build Action, then you have to input a Logical Name for it.
After this you have to copy following code into your Program.cs class:
Regards,
Markus
Ranorex Support Team
Okay, this is a point

It is possible, you have to open the properties window of the test suite, right click on your *.rxtst file in the projects view and select "EmbeddedResource" as Build Action, then you have to input a Logical Name for it.
After this you have to copy following code into your Program.cs class:
var reader = new System.IO.StreamReader(typeof(Program).Assembly.GetManifestResourceStream("The Logical Name of the RxTst file")); var tstString = reader.ReadToEnd(); error = TestSuiteRunner.Run(typeof(Program), Environment.CommandLine, tstString);This should make the trick.
Regards,
Markus
Ranorex Support Team