6g) Test drive the demo

This page explains how a simple installation can be done. The simple installation also gives you a sample project so you can immediately start playing around with CWB.

Overview of the different steps

  1. Java JDK
    1. A prerequisite to using CWB
  2. Disk space requirement is at least 1 GB
  3. CWB Installation zip-file
  4. SAHI
    1. Start up the automation and testing tool Sahi.
  5. IntelliJ
    1. Start up the IntelliJ IDE
  6. Sample Project
    1. Import our sample project to get started

 

1) Java JDK

  • Java JDK is a prerequisite to using CWB. So if you don't have Java JDK installed, download and install it here.
  • This is a simple walk-through installation. If needed, you can find more information on installing the JAVA JDK here.

2) Download the zip-file with everything in it

  • The file can be found here. Unpack the file somewhere. The top-directory should look like this in a Windows-environment:

3) Install SAHI

  • Click on the sahi file, shown in the screen shot above and sahi will be extracted into c:\sahi.
  • Open the file browser_types.xml in c:\sahi\userdata\config and verify if Firefox is installed as expected by Sahi. If not, enter the correct path to Firefox or an other browser.

4) Start SAHI

  • Start the start_sahi.bat file found in c:\sahi\userdata\bin

5) Run IntelliJ

  • Double click on the idea.bat file found in the extracted folder as shown below

6) Import the Sample Project

  • Open import project
  • Navigate to pom.xml as shown in the screenshot below
  • Click on OK
  • Click on next in the screen below
  • Click on next in the screen below
  • Click on next in the screen below
  • Click on the green plus sign in the screen below
  • Navigate to the JDK as shown below
  • Click on next in the screen below
  • Click on finish in the screen below
  • The sample project opens and you can run your first test

7) Run first test

  • Double click on one of the features
  • Right mouseclick and click on run 'scenario ...

8) Optional: change browser

  • By default Sahi uses Firefox, so please install Firefox or change the browser to chrome for example in CWB as shown below.