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...
Related
I'd like to Integrate Ranorex to Jenkins and i have 2 staff i'd like to check
- First should only on the slave where the Ranorex automation should be triggered that Jenkins is not started as a service or on both master and slave
- Second i'm working with JenkinsFile pipline and i'd like execute Renorex test from this script (jenkinsfile) but i couldn't found any solution any ideas
Thanks a lot :P
I can help you with the first question you have:
The Jenkins service must be executed only on the machine where the automated tests are to be executed. You must also have Ranorex installed on that machine with a runtime license available. Jenkins can be configured to provide continuous integration, so each time you update the source code from Ranorex Jenkins will be able to automatically compile the solution and run the automated test.
Ranorex has an add-on that you can install in Jenkins to integrate the run configurations in order to be launched.
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 :)
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
I have been creating codedUI tests for a website in VS2010.
What I would like to do is add these tests to our build process as a form of gated checkin. So if new code produced failed tests then it this code rejected.
does anyone have any experience or know of any resouces regarding this setup.
Thanks in advance
If you are using TFS for your builds you can easily integrate the tests into your build process. If you are using something else for your build process you will need to have MSTEST installed on the build server and another machine to run the tests as an agent.
I am using Selenium RC(Java) with TestNg. I run the script using TestNG. Now i want to integrate selenium with Hudson. So that whenever Hudson deploy the build into test server Dev team wants to perform Regression Testing using Hudson.
Simplest way is to use ant task to start/stop selenium before/after executing your test. Another way is starting server from code if required. You can use ISFW where server started by framework if required.