Example of CodedUI test in Visual Studio using Ranorex API

Ask general questions here.
Stian
Posts: 25
Joined: Mon Jan 30, 2012 9:38 am

Example of CodedUI test in Visual Studio using Ranorex API

Post by Stian » Tue Jan 31, 2012 8:55 am

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.

Stian
Posts: 25
Joined: Mon Jan 30, 2012 9:38 am

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

Post by Stian » Tue Jan 31, 2012 10:50 am

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?

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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

Post by Support Team » Tue Jan 31, 2012 1:17 pm

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
.
Image

Stian
Posts: 25
Joined: Mon Jan 30, 2012 9:38 am

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

Post by Stian » Tue Jan 31, 2012 1:37 pm

Many thanks, I'll have a look :)