Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Responses, following your list:<br> Q1. Install Jenkins (we already have that on our server)<br> A1. None needed.</p> <p>Q2. Install plugins for Jenkins (which ones?)<br> A2. As far as I remember no specific plugin is required just for this purpose. Jenkins should be able to run maven or ant job, it's out of the box.</p> <p>Q3. Install xvfb so tests are run in a headless browser (how do I specify that in the Java written test?)<br/> A3. In your Java tests you will be specifying the host where the browser should be launched (more technically, the host that runs selenium server). It's normally 'localhost', but for this case it will be different (it is generally not a good idea to run jenkins and selenium on the same box). So, in your java code you indicate that host with xvfb AND with selenium grid (that listens to port 4444 by default). It is also considered some good practice to factor this information out of the code (property files and, further, variables in the pom file, or provided by jenkins).</p> <p>Q4. Install Maven on computer, jenkins and eclipse, use maven projects.<br> A4. Maven should be installed on jenkins host (and your local machine, the one you use to develop tests).</p> <p>Q5. Which part of my project folder from the eclipse workplace should I upload on the server and where? I have a testng.xml file and some classes (which are the acutal tests)<br> A5. Your code is placed under version control (right?), so you point jenkins to fetch your project (then compile code, compile tests, run tests...). The answer is "at least all code that is needed to compile your tests and run them". Jenkins <em>builds</em> your project from source and test execution is just a phase of this process.</p> <p>Q6. How do I tell Jenkins to automatically run the Selenium Webdriver tests after deploy, and which file do I point to?<br> A6. use 'integration-test' phase served by surefire plugin.</p> <p>Q7. How to get reports - through TestNg or through some Jenkins feature?<br> A7. Jenkins will display (and distribute, if set up this way) the reports generated by testng.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload