Run protractor tests in Eclipse or Visual Studio - eclipse

I'm new on protractor and i got a few tests running (i did in Webstorm 30 day trial). But now i'm trying to do it in Eclipse to integrate with TFS or VS itself, so i can associate with our test cases. Does anyone know how to? Do i have to use an especific IDE or something like that?

In visual studio itself, you can write protractor tests (Protractor for .NET is built on top of Selenium WebDriver C# binding.) by installing protractor package and Nunit, then you can integrate with TFS if you want.
For more information, you can look into this link.

You have to use Eclipse Neon.
Probably yow will have to downgrade your protractor because it works only till 4.10(It doesn't work with latest version)

Related

How to run Junit Test (Java) from VSCode

I have an Eclipse Maven project that uses selenium and Junit to run some tests.
It currently works fine when I run it as Junit Test.
I want to try out the ide from visual studio code but I can't get it to work. I am getting the following message:
ConfigError: The project 'CopaSelfWebCheckIn' is not a valid java project.
I know there is no main folder. I rather run it from where it is right now.
Can someone explain me how to set this up. Thanks.
Make sure you have all the required java extension installed on your VS-Code
Mainly
Test Runner for Java
Language Support for Java(TM) by Red Hat
Maven for Java (if you have any dependencies)
Debugger for Java
Project Manager for Java
All these extensions are packed with a single extension Extension Pack for Java
if you have installed proper dependencies and extensions your vscode will look similar to the below picture

Is NUnit Test tool for windows is removed from NUnit 3.0.1

In old times we used Nunit window test tool.
Right now I am facing some issue with Nunit test adapter & it's not displaying tests in Visual Studio. Unsupported test framework error in NUnit
Now I can find only NUnit Console and no window tool. Any tool available to open NUnit test project out of visual studio for execution & results?
I have installed Nunit 3.0.1 (latest available) on my machine.
There is a new GUI Runner currently under developement - version 0.1 is expected soon. This is the replacement for the GUI you're currently using.
The other option, as Johan said, is to use Visual Studio's built in Test Runner, and install the NUnit3 Test Adapter, either as a Nuget Package, or a Visual Studio Extension.
To run NUnit 3.0 tests in Visual Studio you need to use the NUnit3 Test Adapter.
https://github.com/nunit/nunit3-vs-adapter/wiki

How to run your protractor tests in eclipse?

I have installed Enide Studio 2014 from eclipse marketspace. What configurations setting need to be done in Eclipse to make protractor tests running.
Currently I am using Webstorm IDE and it has run configurations setting like Node Interpreter, Working Directory, JavaScript File, Application parameters.
I am not not sure where I can do the same settings in Eclipse.
Disclaimer I'm the author of AngularJS Eclipse
I suggest you that you install AngularJS Eclipse 1.2.0-SNAPSHOT which provides now an Eclipse Protractor support :
completion, hyperlink, validation for Protractor in the JavaScript Editor
Run/Debug Protractor

How to integrate qunit with eclipse

How can I integrate qunit with eclipse? I could not find a plugin for the same in Eclipse marketplace.
Is there any other way by which I can integrate the two?
Should it be through JS Test Driver?
Here's one way to do this:
Download and install the headless browser "phantomJS". It has a plugin for launching qunit tasks.
In Eclipse, define a menu item Run/External Tools/Configuration with a command line like this
phantomjs-1.9.7-linux-x86_64/bin/phantomjs phantomjs/run-qunit.js nttp://mysite.com/myproject/tests/qunit-composite.html
If you have many test scripts and test cases, and if want to store your run results in a database, then additionally do this:
Install the Build Server TeamCity, it is free and has an Eclipse plugin.
Configure and start TeamCity from the command line.
In TeamCity, add a new project with a single Build Step with the phantomjs call mentioned above
All this brings more complexity of course.

how to use nunit with visual studio

Visual studio has a built-in unit test framework. I am wondering if I can use nunit instead?
Yes, TestDriven.Net, Nunit and Resharper provide integration with VS. More details in the two posts below (in response to the same question).
Unit test, NUnit or Visual studio?
and
Unit test, NUnit or Visual studio?
Using NUnit without extensions
This answer is long overdue, but I'm using NUnit in Visual Studio without any additional extensions (that are mainly also not free).
The whole idea is to configure your test project (a usual Class library project actually) so that when you hit F5 or Ctrl-F5 it automatically starts NUnit GUI and starts test execution.
The main benefit of this project configuration (all configuration steps are described with images) is that it's easy to also debug your tests if you need to when you have bugs in them.
Here's a free Visual Studio addin for NUnit: NUnitAddin