Title: Lab 3
Course: Special Topics in Computer Programming (TEMPLATE) > Section: Competency Modules

Check schedule for due date

Objective:

In this lab you will use Robot Framework to execute python scripting test cases to verify rules for user ID logon.

Steps for success:

1. Ensure that you have completed Lab 2 before beginning this lab.  In Lab 2 you downloaded all of the necessary files for Lab 3.  Lab 3 will require minor modification to work in a multi-user environment.  You may find it helpful to verify that you have a text editor installed to view and edit text files (eg: WordPad) and the Python IDLE editor installed to view and edit the python files.

2. Your server User name (cs1 User name) and Password (cs1 Password) for the server are the same as what you used in Lab 2.

3. Your assignment for this Lab is to execute a completed implementation of a logon userID and password checking program that is implemented as a Python script.

4. If you have not already done so, you must make the following change to ensure that the working file for this application is specific to your “cs1 User name” on the server.  This can be accomplished by editing line 9 of the login.py file, contained in “/home/uxxxxxxx/QuickStartGuide-1.0/sut” to look like:

DATABASE_FILE = os.path.join(tempfile.gettempdir(),

'robotframework-uxxxxxxx-quickstart-db.txt' )

where “uxxxxxxx” is your assigned “cs1 User name”.

5. If you have not already done so, you must make is to ensure that the working file for this application is specific to your “cs1 User name” on the server.  This can be accomplished by editing line 379 of the QuickStart.rst file” to look like:

DATABASE_FILE = os.path.join(tempfile.gettempdir(),

'robotframework-uxxxxxxx-quickstart-db.txt' )

where “uxxxxxxx” is your assigned “cs1 User name”.

6.  Using WinSCP, browse to the folder “/home/uxxxxxxx/QuickStartGuide-1.0/”, then execute each of the python commands, in sequence, shown in the “Demo application.pdf” file attached to this assignment. You may also use the Terminal Window to execute each of the python commands.  Refer to "Terminal Window.pdf" for an example, but for this lab you must use "python" not :"pybot" as shown in the example.

7. Your assignment is to explore the script, run the various test cases, and understand how the rules are exercised and tested in the script and submit both a Test Report and Test Summary describing what you observed.

8.  When you have completed this lab, please submit your test cases, test results and test summary for the activities described above

Attached Files:
- Demo application(2).pdf
- Terminal Window(5).pdf