Page 1 of 1

Example of CodedUI test in Visual Studio using Ranorex API

Posted: Tue Jan 31, 2012 8:55 am
by Stian
Could someone provide me with a coded UI test sample developed in Visual Studio using the Ranorex API?

I've managed to run tests developed in Ranorex Studio through Visual Studio, but I would like to develop the tests using only Visual Studio working through the Ranorex API.

An example of a test implemented this way would be great.

Re: Example of CodedUI test in Visual Studio using Ranorex API

Posted: Tue Jan 31, 2012 10:50 am
by Stian
Okay, I am sort of getting there...

I've managed to create an object repository with Ranorex Spy, exported it to a C# code file which I included in my Visual Studio. From there I managed to click a button defined in the repository without doing any recording.

Is this the way to work through the API (edit the repository through Ranorex Spy and use it via VS and the Ranorex API)?

All good so far...

What I am really curious about now is how to run these tests on other browsers, like Safari and Chrome.

Anyone got a tip?

Re: Example of CodedUI test in Visual Studio using Ranorex API

Posted: Tue Jan 31, 2012 1:17 pm
by Support Team
Hi,
What I am really curious about now is how to run these tests on other browsers, like Safari and Chrome.
There is a new blog which handles this topic.
The only thing you can't use is the Ranrorex Test Suite file and the data binding, so you have to set the variables via code, but this shouldn't be problematic.
If you have any further questions regarding this blog, don't hesitate to contact us.

Regards,
Markus
Ranorex Support Team

Re: Example of CodedUI test in Visual Studio using Ranorex API

Posted: Tue Jan 31, 2012 1:37 pm
by Stian
Many thanks, I'll have a look :)