Title: Lab 2
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 Acceptance Test Driven Development (ATDD) test cases and scripts to verify rules for user ID logon.

Steps for success:

1. The Robot Framework tool is installed on an ACC server (cs1.austincc.edu) that is accessible to every student via the web.  You will need to use WinSCP to logon the server and to upload your scripts to the server, and to download the results from the server.  If you have not already downloaded WinSCP, please refer to the instructions (Software Testing Scripting Labs.pdf). NOTE: 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 posted in the grades section of Blackboard.  If you have questions on how to access and use Robot Framework you may want to review the YouTube video at (https://youtu.be/Y3UeAc6QMis) for a demonstration of how to logon and use Robot Framework on the ACC server (cs1.austincc.edu).NOTE:  The server name was changed to cs1.austincc.edu since this video was created.

3. Your assignment for this Lab is to execute a completed implementation of a logon userID and password checking program that is implemented as an Acceptance Test Driven Development (ATDD) program.

4. Download the zip file "QuickStartGuide-1.0.zip", which is attached to this assignment to your computer.  Unzipping the file on your computer, then log onto the cs1,austincc.edu server using WinSCP, and finally drag and drop the unzippled QuickStartGuide-1.0 folder to your files on the server.

5. The first change that 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 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”.

6. The second change that 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 filet” to look like:

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

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

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

7. Using WinSCP, open the folder QuickStartGuide-1.0, and you will see the contents of the folder.  At this point, you need to execute the command "pybot  --your path--/QuickStart.rst".  This will execute the sample username and password test.

8. 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.

9. Additional details can be found at the following URL https://github.com/robotframework/QuickStartGuide/blob/master/QuickStart.rst (for this lab only perform the steps listed above).

Attached Files:
- QuickStartGuide-1.0.zip
- RobotFrameworkIntroduction(1).pdf