---
# System prepended metadata

title: Running SideeX on Jenkins
tags: [垃圾桶]

---

---
tags: 垃圾桶
---
# Running SideeX on Jenkins

### Step 1 - Download [Jenkins](https://jenkins.io/zh/download/) and install

### Step 2 - Start Selenium Standalone Server
1. Download [Selenium Standalone Server](https://www.seleniumhq.org/download/) (Tested version: 3.141.59)
2. Download the [drivers](/@sideex/book/%2F%40sideex%2Fwebdriver##Here-are-the-browsers-currently-supported-by-SideeX) that you'd like to test
3. Open the terminal and switch the path where you save the `selenium-server-standalone-{version}.jar` and drivers
4. Run `java -jar selenium-server-standalone-{version}.jar`
- This is a reference from [SideeX to WebDriver](/@sideex/book/%2F%40sideex%2Fwebdriver)

### Step 3 - Use SideeX Runner with Jenkins
1. Create a folder (e.g., `your_sideex_runner_project_path`), add [SideeX Runner](/@sideex/book/%2F%40sideex%2Frunner), [Runner config](/@sideex/book/%2F%40sideex%2Frunner#Quick-Start) file and test cases to this folder
2. On Jenkins, create a `New Item` ![](https://i.imgur.com/xL70TiA.png) named `Sideex Runner Test` and choose `Freestyle project`, then click `ok`
![](https://i.imgur.com/3fGtQcj.png)
3. On next page, in `Build` segment, select `Execute Windows batch command` if you use Windows, otherwise select `Execute shell`. Then paste the following contents and click `save`
    * Windows
        ```
        cd /d your_sideex_runner_project_path
        node sideex-runner.js -c config.json
        ```
    * Linux
        ```
        cd your_sideex_runner_project_path
        node sideex-runner.js -c config.json
        ```
    * Mac
         ```
        cd your_sideex_runner_project_path
        node sideex-runner.js -c config.json
        ```
        :::warning
        Due to Mac's security mechanism, you may need to put your project folder under the Jenkins project.
        :::
        
    ![](https://i.imgur.com/SuGCMzu.png)
4. Click `Build Now`, the test case will be run
![](https://i.imgur.com/qauky8G.png)
