Loading…
Transcript

Big Bwanas with Big Bwanas

Project Coordinators/Support Deployment

with Client Decision Makers and Users

Developers

Hardware / Deployers

Clients / Users

Project Lifecycle

Users must login to gain access to the Specimen Labeling System. This requires entering a six-digit “secret code” number using the on-screen touch pad, and then clicking the “Start” button, under where the numbers are displayed. The user can clear the string of numbers by clicking the “Clear” button under the “Start” button. In order to close the Specimen Labeling System entirely, the user must click the “Shutdown” button in the bottom-right of the box.

<% form_tag do %>

<label for="user_username">Username</label>

<%= text_field(:user, :username, :helpText=> "Enter Username", :textCase => "lower",:tt_pageonload=>"loadBarcodePage") %><br>

<label for="user_password">Password</label>

<%= password_field(:user, :password, :helpText => "Enter Password", :textCase => "lower") %><br>

<% ask_location = GlobalProperty.find_by_property("ask_location").property_value rescue "false"

current_health_center_id = GlobalProperty.find_by_property("current_health_center_id").property_value rescue "7"

if ask_location == "false" %>

<label for="user_location">Location</label>

<%= hidden_field_tag('location', current_health_center_id, :helpText=> "Workstation Location", :tt_pageonload=>"loadBarcodePage", :field_type => "number") %><br>

<% elsif ask_location == "true" %>

<label for="user_location">Location</label>

<%= text_field_tag('location', '', :helpText=> "Scan location barcode", :tt_pageonload=>"loadBarcodePage") %><br>

<% end %>

<%= submit_tag value="Submit"%>

<% end %>

Open Office Document

Feature: Signing in

In order to securely access the system's features

Users should have to sign in with a user name and password

Scenario: User who has not signed in cannot access secured pages

Given I am not signed in

When I go to the clinic dashboard

Then I should be on the login page

And I should see the question "Enter user name"