Hello,
I have developed some test cases using code modules in Ranorex Studio, but when i try to open the .sln file in Visual studio, the project compiles fine and when i click the start button it starts executing all the tests. Is there a way i can execute just one test case that i am interested in? Also, Currently i can see the test in .rsxt file in the xml format. I dont see them in the Test explorer. How can i execute only one test in Visual studio? Can anyone please help?
P.S: I am new to Ranorex
I tried searching in your Forum but could not find anything helpful.
How to view Ranorex Tests in Visual Studio
Re: How to view Ranorex Tests in Visual Studio
Since you are working outside of Studio, you will either need to use the Test Suite Runner or pass arguments to the executable:
https://www.ranorex.com/help/latest/les ... orexStudio
Hope this helps
https://www.ranorex.com/help/latest/les ... orexStudio
Hope this helps
Re: How to view Ranorex Tests in Visual Studio
Unfortunately, Ranorex does not have a VS plugin, and it is NOT considered a test suite by the VS test harness. You cannot use it that way. In VS, you must treat it as if it were just another executable application being developed.
If you are using VS, you really can't use the Ranorex test suite structure. This is one reason I continually recommend to use Ranorex Studio only, unless you need to create some type of library or really complex module.
Note, I have added a UserVoice feature request for a Ranorex Visual Studio plugin that would act like Ranorex studio in how it handles test suites, repos, modules, and other XML-based code-behind containers.
http://uservoice.ranorex.com/forums/150 ... dio-plugin
If you are using VS, you really can't use the Ranorex test suite structure. This is one reason I continually recommend to use Ranorex Studio only, unless you need to create some type of library or really complex module.
Note, I have added a UserVoice feature request for a Ranorex Visual Studio plugin that would act like Ranorex studio in how it handles test suites, repos, modules, and other XML-based code-behind containers.
http://uservoice.ranorex.com/forums/150 ... dio-plugin
Shortcuts usually aren't...
Re: How to view Ranorex Tests in Visual Studio
Thank you Vega and krstcs for replying back. yeah i was mainly looking to debug a particular test case in VS as it is getting tougher to debug in Ranorex
Re: How to view Ranorex Tests in Visual Studio
I understand if you want to work in VS, but krstcs is correct in the regard that VS will not see Ranorex tests like Ranorex Studio / Test Runner will. However, you can specify command line arguments in VS when executing. Please give the below link a read as it should help. You will also need to reference the link I provided earlier about how to run the Ranorex test from the command line so that you know which arguments to use.
Commandline Arguments in VS when executing:
https://msdn.microsoft.com/en-us/librar ... s.90).aspx
Ranorex test arguments:
https://www.ranorex.com/help/latest/les ... orexStudio
You will likely want to look at /tc or even into run configurations to run multiple test cases with ease.
Hope this helps
Commandline Arguments in VS when executing:
https://msdn.microsoft.com/en-us/librar ... s.90).aspx
Ranorex test arguments:
https://www.ranorex.com/help/latest/les ... orexStudio
You will likely want to look at /tc or even into run configurations to run multiple test cases with ease.
Hope this helps