This repository has been archived by the owner on Dec 10, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alexander Krieg
committed
Nov 21, 2017
0 parents
commit 1c7117c
Showing
461 changed files
with
19,036 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/bin/ | ||
/Libs/ | ||
/.settings/ | ||
/.classpath | ||
.svn/ | ||
/katalon_studio_linux_64/jre | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM selenium/node-firefox:3.7.1-beryllium | ||
|
||
USER root | ||
|
||
# install xvfb | ||
RUN apt-get update && \ | ||
apt-get install -y xvfb git && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
apt-get clean | ||
|
||
COPY xvfb /etc/init.d/xvfb | ||
RUN chmod +x /etc/init.d/xvfb | ||
|
||
RUN echo "sudo service xvfb start" >> /etc/bash.bashrc | ||
ENV DISPLAY :99 | ||
|
||
RUN mkdir -p /katalon | ||
WORKDIR /katalon | ||
|
||
COPY katalon_studio_linux_64 /katalon | ||
RUN chmod +x /katalon/configuration/resources/drivers/chromedriver_linux64/chromedriver /katalon/configuration/resources/drivers/firefox_linux64/geckodriver | ||
|
||
RUN ln -s /katalon/katalon /usr/bin/katalon && chown seluser /usr/bin/katalon | ||
|
||
COPY start_xvfb.sh /start_xvfb.sh | ||
RUN chmod +x /start_xvfb.sh | ||
|
||
RUN chown -R seluser /katalon && chmod o+x /katalon/katalon | ||
|
||
USER seluser | ||
|
||
CMD ["/start_xvfb.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Docker Katalon Studio Selenium Firefox | ||
|
||
Container of this image can execute [Katalon Studio](https://www.katalon.com/) tests in [console mode](https://docs.katalon.com/display/KD/Console+Mode+Execution) with `Firefox` as browser type. | ||
The image is based on the [Selenium image for Firefox](https://github.com/SeleniumHQ/docker-selenium/tree/master/NodeFirefox) and uses `Katalon_Studio_Linux_64-5.1`. | ||
|
||
## Usage examples | ||
|
||
- PROJECT_FILE: katalon project file (.prj) | ||
- TESTSUITE_PATH: path to your test suite ( relative to TEST_DIR and without `.ts` extension) | ||
- TEST_DIR: base directory of your katalon tests | ||
|
||
### execute tests from inside the container | ||
|
||
1. execute the container : | ||
|
||
```bash | ||
docker run --rm -it -v ${TEST_DIR}:/testdir usuresearch/katalon-selenium-firefox bash | ||
``` | ||
|
||
2. execute tests | ||
|
||
```bash | ||
katalon -runMode=console -projectPath="/testdir/$PROJECT_FILE" -retry=0 -testSuitePath="$TESTSUITE_PATH" -browserType="Firefox" --remoteWebDriverType=Selenium | ||
``` | ||
|
||
### execute tests from outside the container | ||
|
||
```bash | ||
docker run --rm -it -e PRJ=$PROJECT_FILE -e "TSP=$TESTSUITE_PATH" -v $TEST_DIR:/testdir usuresearch/katalon-selenium-firefox bash -c '/start_xvfb.sh && katalon -runMode=console -projectPath="/testdir/$PRJ" -retry=0 -testSuitePath="$TSP" -browserType="Firefox" --remoteWebDriverType=Selenium' | ||
``` |
Oops, something went wrong.