Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Krieg committed Nov 21, 2017
0 parents commit 1c7117c
Show file tree
Hide file tree
Showing 461 changed files with 19,036 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
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
32 changes: 32 additions & 0 deletions Dockerfile
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"]
30 changes: 30 additions & 0 deletions README.md
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'
```
Loading

0 comments on commit 1c7117c

Please sign in to comment.