*** Settings ***
Library         Selenium2 Library
Library         Wcs Robot Framework Library
Suite Setup     Start WCS Server  True
Test Teardown   Close All Browsers

*** Keywords ***
Given a logged in admin
  Click Link  Login
  Input Text  username  admin
  Input Text  password  admin
  Click Button  Log in


*** Testcases ***
Configure Language
  Open Browser  http://localhost:10003/admin  ff
  Click Link  Settings
  Click Link  Language
  Select From List  qx=Language  English
  Submit Form

Configure Debug
  Open Browser  http://localhost:10003/admin  ff
  Click Link  Settings
  Click Link  Debug Options
  Select From List  qx=Display Exceptions  Display as Text
  Submit Form

Configure Authentication
  Open Browser  http://localhost:10003/admin  ff
  Click Link  Settings
  Click Link  Identification
  Select Checkbox  qx=Simple local username / password
  Submit Form
  Click Link  Users
  Click Link  New User
  Input Text  qx=Name  Admin
  Input Text  qx=Email  admin@localhost
  Select Checkbox  qx=Administrator Account
  Input Text  qx=Username  admin
  Input Text  qx=Password  admin
  Submit Form

Configure Roles
  Open Browser  http://localhost:10003/admin  ff
  Given a logged in admin
  Click Link  Roles
  Click Link  New Role
  Input Text  qx=Role Name  First Role
  Click Button  Submit

