How to generate jhipster app with protractor tests - testing

I have installed Jhipster 4.9.0, and when i run "jhipster" command to generate my app, i only have Cucumber and Gatling as testing options.
I would like to know how to generate my app with protractor tests.
Thanks a lot!

The Protractor test option only shows for Gateway and Monolithic app types, as a frontend is required for Protractor tests to run.
When using jhipster client, you can pass --protractor to enable Protractor tests. To see other available options, run jhipster client --help

Related

Unable to integrate Cypress with testlink

Is there any way to integrate Cypress test cases with Testlink?
I think of a situation where when running the test, it created the suite test and the case test and updated the status of the testLink to for example passed (if cypress has run the entire test successfully)
Yes it's possible to integrate Cypress with Testlink Because Testlink has its own API and you would need to write your own plugin to integrate it though.
This is the path to the api: /lib/api/rest/v2 and Here are all the Rest endpoints: https://github.com/TestLinkOpenSourceTRMS/testlink-code/blob/testlink_1_9/lib/api/rest/v2/tlRestApi.class.php
then do a GET on http://localhost:3000/lib/api/rest/v2/whoAmI Good Luck

When i run a test in protractor instead of opening the given link in browser it gives error(please check image)

So when i execute a simple calculator program from VS- Studio and when the browser opens ...everytime it is same(plz refer image) tried lot but everytime same error. I followed lot of tutorial for protractor automation tool..no progress
You are running integration tests using karma
I am sure you are using ng test
Which will run integration test. I mean the spec file inside your component will be run using karma
Use ng e2e to run protractor tests.

jenkins selenium tests ci

I have created a Jenkins maven task to run selenium tests on one project, and now I want to use these selenium test in a proper way for CI.
Actually, I have a Jenkins task which 1-builds the project, 2- uses sonar, 3 - deploys the project. I would like to add the selenium tests to this process. The question is: can I run the selenium tests before deployment? Is it necessary to do a previous deploy for the selenium tests before the real deployment? Is there anyway to simulate a deployment or something like that so I can run the selenium tests?I would appreciate If you could advise me on how to do or any plugin which could help me.
As per my understanding, To deal with the scenario you should run the selenium test on QA environment. If all test pass then deployment should start for staging etc.
Additionally, once the deployment is done on staging, then selenium script should run again, test staging and if something went wrong then rollback from staging should be happened.
I never tried it but you can use below github plug-in for deployment(in case you are using github) :-
https://wiki.jenkins.io/display/JENKINS/GitHub+plugin
If you are using SVN then use below :-
https://www.packtpub.com/mapt/book/application_development/9781783553471/3
Hope it will help you :)

Setting up Protractor e2e tests with Bamboo CI

We use Protractor to automate our angular app and now need to run those protractor tests from a Bamboo CI server.
I'm new to Bamboo and was wondering if anybody could either show me how to or point me to a web article that would show me how to trigger/execute my protractor tests from Bamboo server.
Locally, we run the tests using gulp protractor which all run and pass; Now I'd like to execute those same tests from a Bamboo server.
I was only able to find some articles on Google that shows how to set up Selenium with Bamboo. I understand that Protractor uses Selenium under the hood but am just not sure if Protractor would follow the same steps as Selenium does, when setting it up on a Bamboo CI machine.
If Protractor follows a different setup than Selenium on a Bamboo CI machine, could someone please point me to either another article or simply show the steps here if it's simple to do.
This question is already a few months old, but it's still unanswered, so I try to help. ;)
I haven't tried it by myself, but there is a gulp task in bamboo. (as also mentioned here: gulp tasks execution in bamboo)
I think you have to install node.js on you bamboo server and then you can just add the gulp task to your plan and configure it for your needs.
Short field description:
Node.js executable: should be filled if you have installed Node.js on your bamboo server, or select the correct one if you have installed multiple versions of Node.js (I haven't installed Node.js, so there is no executable available for me)
Gulp executable: I'm not so femiliar with gulp, but I think this default value should be correct in the most cases.
Task: In your case you should insert protractor here

Setting up Hudson with Selenium RC to run tests written in C#

I just deployed a Hudson server and configured it to checkout, build and deploy to a testing http server.
Now I want more =)
I have some Selenium RC tests wrtten in C#/.Net, using the MbUnit infrastructure, that runs ok on Gallio Icarus.
How to setup Hudson to run these tests? Our is in a Windows 2003 server.
I was thinking about just setting a batch script that runs the tests. But how to run them in CLI? Is there a CLI test runner that could run our tests?
Hah! Just found out.
I have to run:
Gallio\bin\Gallio.Echo.exe path\MyTestAssemlby.dll
When Google fails you, try searching your own PC =)
If you prefer NAnt, MSBuild or PowerShell you can use those too...