Skip to content

rnjn/twistDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twist

Twist demo

This demo showcases automation testing features of Twist. The Application Under Test is a simple eCommerce website, which is created using the open source Apache Open for Business
Project (ofbiz). I have used Selenium 2 (WebDriver) as the Twist driver for testing this website.

Prerequisites

Before you run the twist demo, you would need to install Apache ofbiz. The requirements for both Twist and ofbiz are

  1. Java 1.6 JDK
  2. Ant

Once you have downloaded ofbiz 10.04 from here, just run the following commands in your favorite shell -

  1. ant run-install
  2. ant run-install-exttest
  3. ant run

The third command above will start the website on http://localhost:8080/ecommerce by default. Please test if you are able to access this site before starting the demo.

Demo Setup

  1. Clone the repo by running

git clone https://github.com/rnjn/twistDemo.git {insert folder name}
2. CD into the copied folder and run
ant smoke

  1. If everything works, the setup for twistDemo is done - enjoy going through the example scenarios.
  2. If some tests fail, its mostly a bad check-in, and I would be working on fixing it. Please look for an update soon.
  3. If all tests fail, there's something wrong with the setup.

To browse the example scenarios using the excellent Twist IDE

  1. Download and install Twist from here
  2. Open Twist IDE.
  3. Click on File > Import , which should open the Twist import wizard.
  4. Choose "Existing Projects into Workspace" and click Next.
  5. Choose the location you have cloned the twistDemo project to.
  6. Twist will then detect the project and give you the option to import the project. Click Finish to import the project.
  7. You should be able to see the imported projects, and a list of example scenarios on the left side of you screen (in the Scenario View).

Why Apache ofbiz?

Basically there are two main reasons for choosing Apache ofBiz -

  1. Its really easy to install.
  2. It works on the Windows, Ubuntu and Mac machines that I have tested on, without any noticeable differences.

Another added advantage is that metaphors used in the ecommerce world are fairly well known, so understanding the tests are not polluted by the domain under test.

There are plans to host a sample ofbiz site online, which will take away ofbiz installation from the setup.

About

A Twist demo project which automates an eCommerce website created using ofbiz

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published