...
Ralph Navarro is the original generator. This doc may serve as a general reference for people who need to install/update their Intelliji IDEA in the future.
It is a living doc and welcome any one in the TSSG team to update/Modify as needed.
a a. Right click on tssgTech/tests/GebAndSpock |
b b. In popup menu, select Import Gradle Module (about 70% down the list) |
c c. In status bar (bottom of IDEA window), wait for import and index. |
d d. Gradle tab will show up on right side of IDEA window. |
5. Setup multipage branch |
a a. In IDEA window, bottom right corner, click on Git: <branch> |
b b. Select the remote branch multipage |
c c. In the popup, name the local branch multipage |
6. Configure IDEA to run the Gradle chromeTest task |
|
Create Create a Gradle Environment Configuration |
i a. In Edit Configuration dropdown (top right area of IDEA window), click drop |
down down and select Edit Configuration |
ii b. In Popup, on top left, click '+' and select Gradle |
iii c. Give the Gradle environment a name (e.g. Run chromeTest) |
iv d. Select Gradle project: tssgTech/tests/GebAndSpock |
v e. In Tasks, enter chromeTest |
vi f. Click OK button in bottom right of popup. |
7. Run Geb and Spock tests in Selenium Grid |
a. This is the default configuration in src/test/resources/GebConfig.groovy |
b. In the chromeTest environment, select the green play button |
8. Configure Geb and Spock to run tests locally |
a a. n src/test/resources/GebConfig.groovy, chrome {} section, |
comment out the entire section driver = {} that starts with DesiredCapabilities |
b. Uncomment b. Un-comment: driver = { new ChromeDriver() } |
9. Run Geb and Spock tests Locally. |
a a. Run the Gradle environment you created earlier. |
b b. Select the green play button |
10. Review test reports |
a. in GebAndSpock/build/reports/chromeTest/ |
i. tests/index.html # contains report as html |
ii. geb/Tests/TSSGTechSpec # contains screenshots |
11. Others: IntelliJ IDEA |
a. Menu: File → Settings → Tools → Terminal → Shell path |
On Windows On Windows + Docker Toolbox: Set to the same configuration as the |
Quickstart Terminal Quickstart Terminal shortcut's properties launch command line. |
On Linux On Linux: Set to location of bash (e.g. /bin/bash) |
b. Menu: File -> Settings -> Build, Execution, Deployment: |
Gradle: Gradle Projects -> GebAndSpoke -> Build and run using: Intelliji IDEA | Run tests using: Intelliji IDEA |