Problem description: Trailing and lieading spaces are not trimmed in Name => Value pair fields in Web scenario and Web scenario step configuration forms. List of such fields:
Web scenario => Variables (trailing/leading spaces not trimmed in Value field)
Web scenario => Headers
Web scenario step => Query fields
Web scenario step => Post fields
Web scenario step => Variables (trailing/leading spaces not trimmed in Value field)
Web scenario step => Headers
Steps to reproduce:
- Open the list of web scenarios of any host
- Click on the "Create web scenario" button
- Fill in Web scenario name and add values with trailing and leading spaces in the following fields:
Web scenario => Variables => Name
Web scenario => Variables => Value
Web scenario => Headers => Name
Web scenario => Headers => Value
- Open "Steps" tab and press "Add" button in "Steps" field
- In the opened dialog populate Step name and URL and add values with trailing and leading spaces in the following fields:
Web scenario step => Query fields => Name
Web scenario step => Query fields => Value
Web scenario step => Post fields => Name
Web scenario step => Post fields => Value
Web scenario step => Variables => Name
Web scenario step => Variables => Value
Web scenario step => Headers => Name
Web scenario step => Headers => Value
- Save step configuration
- Save Web scenario configuration
- Open created web scenario and check trailing and leading spaces in all of the above mentioned fields.
Result: trailing and leading spaces were trimmed only in Variables => Name field in Web scenario and Web scenario step configuration forms
Expected: suggestion is to trim trailing and leading spaces in all of the above mentioned fields.
|