Skip to content
Demo
Python
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
docs
pages
.gitignore
README.md
__init__.py
requirements.txt
test_task.py

README.md

GroupDocs Test Task

Automated tests for the GroupDocs web application.

Running Tests

Java

You will need a version of the Java Runtime Environment installed

Python

Before you will be able to run these tests, you need to have Python 2.6 installed.

Run

easy_install pip

followed by

sudo pip install -r requirements.txt (To install all needed python lib's)

Running tests locally

To run tests locally it's a simple case of calling test_task.py from the GroupDocs directory.

python test_task.py

To change an account:

  1. Create an account on the GroupDocs instance
  2. Edit 'email' and 'password' vars in test_task.py with your credentials

To change application instance (by default set to - http://stage-apps.groupdocs.com):

  1. Edit variable self.base_url in page.py

note Tests configured to run on Firefox To change this:

Edit self.selenium variable according to selenium syntax (e.g. webdriver.IE(), etc.)

Running tests in TeamCity

You will need a version of the Team City installed

  1. Deploy TeamCity on your local machine and pin to any port
  2. Create new Admin Account and New Project
  3. Go to Project Configuration
  4. Enter General info about project
  5. Skip VCS Settings section
  6. On Build Step, select Command Line type of runner
  7. Put Command executable: python
  8. And Command parameters: path to GroupDocs tests script(e.g. C:\GroupDocs\test_task.py)
  9. Skip all other steps and Run the build
  10. Click on Run Button in Projects Page
  11. Check the results after run

TeamCity is communicate with tests throug teamcity-messages lib - unittest addon for sending test result messages to TeamCity

Something went wrong with that request. Please try again.