|
The Test Interactions
01 Field Updates
A field update test-interaction is provided for each of the fields. It accepts a value and enters it into the field. Having entered the value it leaves the field to trigger any event driven processing on the value. The value in the field is then captured and the behaviour determined. The behaviour is classified as:
- Field-Updated value accepted
- Field-Updated value modified
The report on the interaction incorporates the value present in the field after the update attempt.
02 Field Updates With Modification Checks
This interaction first checks whether the behaviour is the expected one given the value supplied. Assuming that the reported behaviour is correct the details of any modifications are checked against the rules for modifying values. Anomalies that are detected are reported. The behaviour is either undefined or:
Notice that no distinction is made between an update that accepts the supplied value as is and an update that applies any modification rules, such as truncation, correctly.
If the Field Update interaction reports undefined behaviour or the reported behaviour was wrong or invalid modification has occurred then this component reports an undefined behaviour.
03 Enter Account Create Details
This accepts the four field values and updates the fields using the Field Updates With Modification Checks interaction. It checks the state of the submit button after updating the fields. The behaviour classification scheme is:
- Fields-Set-Submit-Disabled
- Fields-Set-Submit-Enabled
The behaviour is undefined if one of the field updates reports undefined behaviour. The report includes the four field values and the observed state for the submit button.
04 Enter Account Create Details And Check Form Behaviour
The state of the submit button is checked against the rules requiring that the button is only enabled when is data present in all fields. The behaviour classifications are:
- Fields-Valid-Submit-Enabled
- Fields-Invalid-Submit-Disabled
If the submit button is in the wrong state then the behaviour is undefined.
05 Press Submit And Wait For Response
This simple interaction activates the submit button and waits for a recognisable response from the system. A timeout is implemented in case the system fails to respond at all. The behaviour is:
- Submitted-And-Response-Provided
If no response is recognised within the timeout then the behaviour is undefined.
06 Submit Account Create Via HCI
Values are provided for the Username, Password, Password Confirmation and Email-Address fields. The data in entered using the Enter Account Create Details And Check Form Behaviour interaction. Where this reports the behaviour as Fields-Valid-Submit-Enabled the Press Submit And Wait For Response interaction is operated. The behaviour classifications are:
- Submit-Rejected-Passwords-Not-Identical
- Submitted-To-Server-Reported-Creation-Rejected
- Username-Not-Unique
- Email-Address-Syntax-Error
- Submitted-To-Server-Reported-Creation-Accepted
This component is designed to be used with values that are valid for an attempt at submission not with values that cause the form to disable the submit button. To guard against this if Fields-Invalid-Submit-Disabled is reported after entering the values then it is classified as a testware anomaly and the test is aborted.
07 Submit Account Create Via HCI And Check Response
The password fields are checked to see if they match. If they match then if the reported behaviour indicates the submission was rejected because the password were not identical then an anomaly is raised and this interaction reports undefined behaviour. Similarly if they do not match then if the reported behaviour is not rejection due to the passwords not matching then an anomaly is raised and undefined behaviour is reported. Otherwise the behaviour reported to this interaction is passed on as is:
- Submit-Rejected-Passwords-Not-Identical
- Submitted-To-Server-Reported-Creation-Rejected
- Username-Not-Unique
- Email-Address-Syntax-Error
- Submitted-To-Server-Reported-Creation-Accepted
08 Create Account Operation With Database Audit
The content of the Account Table in the database is captured. A request to create an account is submitted using the Submit Account Create Via HCI And Check Response interaction. After the response the content of the Account Table in the database is captured. The behaviour reported is based on the state of the database and is:
- Table-Unchanged-Account-Not-Present
- Table-Unchanged-Account-Present
- Account-Added-To-Table-All-Others-Unchanged
Anomalies such as spurious deletion or modification of rows or an incorrect new row or additional new rows or duplicate entries cause the behaviour to be undefined.
This interaction is concerned with the operation of the create process rather than the interfaces that allows create requests to be submitted.
09 Create Account Operation With Consistency Checks
Checks are applied that compare the response received from the HCI with the state of the database.
|
Table-Unchanged-Account-Not-Present
|
Table-Unchanged-Account-Present
|
Account-Added-To-Table-All-Others-Unchanged
|
|
Submit-Rejected-Passwords-Not-Identical
|
Valid |
Valid |
Anomaly |
|
Username-Not-Unique
|
Anomaly
|
Valid |
Anomaly |
|
Email-Address-Syntax-Error
|
Valid
|
Valid |
Anomaly |
|
Submitted-To-Server-Reported-Creation-Accepted
|
Anomaly |
Anomaly |
Valid |
Operator interaction anomalies are raised to identify a discrepancy between the response to the operator and the action taken by the system. The behaviour reported only addresses the impact on the system state and so echoes the behaviour received from the Create Account With Database Audit interaction:
- Table-Unchanged-Account-Not-Present
- Table-Unchanged-Account-Present
- Account-Added-To-Table-All-Others-Unchanged
|