BDD Integration with NUnit-console - missing dlls

Ranorex Spy, Recorder, and Studio.
zivshapirawork
Posts: 62
Joined: Wed Sep 24, 2014 7:47 am
Location: Israel

BDD Integration with NUnit-console - missing dlls

Post by zivshapirawork » Tue May 01, 2018 10:36 am

Hi I tried the BDD Integration with NUnit-console, as the runner.
This works well in Visual Studio (specflow addin), since I can mark Ranorex.Core as "Local Copy" = True , in the reference property. This will create the necessary Ranorex dll's in the bin/Debug Folder
while using the Ranorex Studio (ranorexBdd addin), I cannot mark Ranorex.Core as "Local Copy" = True , in the reference property, since every time thprject opens it returns to False (only Ranorex.Core.Resolver stays true). This then does not create the necessary Ranorex dll's in the bin/Debug Folder, and they are not found by nunit-console.

note: I know about the settings "copy runtime to local" option, but it copies the ddls to /big/Debug/runtime dir and they are still not found. Also, some xml files, that are created by the build processes, are not in the copied files. (Example Ranorex.Core.xml)

What should I do?
thanks

User avatar
RobinHood42
Posts: 239
Joined: Fri Jan 09, 2015 3:24 pm

Re: BDD Integration with NUnit-console - missing dlls

Post by RobinHood42 » Thu May 03, 2018 8:30 am

Hi,

You could overcome the issue by specifying a pre-build event:

Project -> Properties:
Pre-build_event.png
Pre-build_event.png (8.1 KiB) Viewed 403 times
I hope this helps.

Cheers,
Robin :mrgreen:

zivshapirawork
Posts: 62
Joined: Wed Sep 24, 2014 7:47 am
Location: Israel

Re: BDD Integration with NUnit-console - missing dlls

Post by zivshapirawork » Thu May 03, 2018 9:42 am

Thanks RobinHood42 , I know about this, but as stated , setting the copy true and compiling creates files (e.g. xml files) that are not in the /runtime directory. So there seems to be a difference between the output of "copy runtime to local" (Settings) option and "Local Copy" true of a reference (Ranorex.Core)

User avatar
RobinHood42
Posts: 239
Joined: Fri Jan 09, 2015 3:24 pm

Re: BDD Integration with NUnit-console - missing dlls

Post by RobinHood42 » Mon May 07, 2018 8:47 am

Hello,

Please note, that I was not referring to the "Copy runtime to output" functionality, but to a pre-build event. The "Local copy" property of the Ranorex DLLs is reset everytime the project is opened, so this is not a viable solution. Furthermore, the generated XML files just contain documentation information and are not necessarily needed for the test execution itself.

Cheers,
Robin

zivshapirawork
Posts: 62
Joined: Wed Sep 24, 2014 7:47 am
Location: Israel

Re: BDD Integration with NUnit-console - missing dlls

Post by zivshapirawork » Tue Aug 21, 2018 1:16 pm

Thanks Robin, I put the xcopy in post-build event (from Ranorex installation). works well.