Page 1 of 1

Integration of VS Code(open source tool) with Ranorex

Posted: Sat Oct 13, 2018 10:06 am
by abdul89
Hi Ranorex Team,

Can we integrate Visual Studio Code (open source tool) with Ranorex Studio ?

Our project management are checking if this is possible ?

Visual Studio Code Website : https://code.visualstudio.com/

Thanks
Abdul

Re: Integration of VS Code(open source tool) with Ranorex

Posted: Mon Oct 15, 2018 11:09 am
by odklizec
Hi,

Have you tried the VS integration steps? Of course, you will have to adapt some steps according to the menus in your tool. I don't VS Code, but I guess it should allow to reference libs as well as to create console-based apps? And that should be all you need for successful integration.

Re: Integration of VS Code(open source tool) with Ranorex

Posted: Mon Oct 15, 2018 2:38 pm
by krstcs
Since Ranorex is essentially a .NET library, you can link and reference it in your VSCode projects.

However, you will be missing/losing several of the most important features that make Ranorex better than just using VS Coded UI Test, such as the Repository and Report generation. You would either have to manage these yourself or not use them at all (which would not be a good idea).

For example, not using the Ranorex Repository means that you are likely hard-coding your element locations, which violates the separation of duties principle of software development. Your script should be separate from the SUT element definitions so if you have to change one element, it is changed for the whole project from the repository, instead of having to find each instance in code. It also means that several of the most powerful parts of the API would not be usable since you wouldn't be using RepoItemInfo objects.

Re: Integration of VS Code(open source tool) with Ranorex

Posted: Tue Oct 23, 2018 4:03 pm
by Aracknid
edit: Sorry for the double post.

{snip snip]

Re: Integration of VS Code(open source tool) with Ranorex

Posted: Tue Oct 23, 2018 4:06 pm
by Aracknid
Another point of view....

I don't use VS Code (I use Visual Studio), but I don't use the repository either. And if you code your work intelligently, it's absolutely not a problem. When something changes in my application, I only have to change it in one place too. I also don't use the reports. I have my own system for that. True, it was a lot of work, probably more than using the Ranorex provided methods, but we already had them before we started using Ranorex and ported over from our old automation tool to Ranorex.

Aracknid.

Re: Integration of VS Code(open source tool) with Ranorex

Posted: Fri Nov 23, 2018 1:21 pm
by hellboy81
Visual Studio =/= Visual Studio Code