How to use Excel data connector when intergrate with Nunit

Best practices, code snippets for common functionality, examples, and guidelines.
hanguyen2009
Posts: 18
Joined: Wed May 27, 2015 9:43 am

How to use Excel data connector when intergrate with Nunit

Post by hanguyen2009 » Tue Jun 27, 2017 12:04 pm

Hi,
I have excel test case with many cases in it, we need to show these cases in the Nunit GUI Runner as image file attach.
However, I want to keep the way using Excel data connector and binding value of the Ranorex, not use TestCaseSource of NUnit, How can i do this?
For example, I want use NUnit call existing UserCodeModule that was binding data by Excel data connector of Ranorex.
I see the blog Using NUnit for test execution, but this seem that for only call run function not with binding data in Ranorex, https://www.ranorex.com/blog/using-nuni ... execution/
Attachments
UserCodeModule1.cs
(9.66 KiB) Downloaded 11 times
Nunit.jpg
Nunit.jpg (163.58 KiB) Viewed 526 times

McTurtle
Posts: 191
Joined: Thu Feb 23, 2017 10:37 am
Location: Benedikt, Slovenia

Re: How to use Excel data connector when intergrate with Nunit

Post by McTurtle » Wed Jun 28, 2017 12:37 pm

Hello hanguyen2009,

Data sources can be bound in Ranorex only as a part of the Ranorex test suite. As afar as I know you cannot import the test suite as such into NUnit. Therefore, I believe, what you are trying to do is not possible.

Regards,
McTurtle