Test cases › Studio › Questions in the editor
TC-STU-174 Creating a question checks text, decimals, range, variable name and codelist Medium
revision 1 · last changed 6d ago by import from the test management tool
- Role
- Member with Studio access
- Preconditions
- Signed in as a member with Studio access. A draft study configuration, not marked Apply to Completed visits, is open in the editor, with a section and no Yes/No questions. In a CRO organization a variable name is entered with the question text, because a new question starts with EDC on.
- Test data
- Values in the steps below.
- Passes when
- The question is not saved while any of these errors remain.
- Source
- Live observation; Implementation (UI); back end confirms · verified 2026-10-06
Steps
| # | Step | Expected result |
|---|---|---|
| 1 | Start a new question in the section and leave the question text empty. | Save stays disabled while the question text is empty. |
| 2 | Enter text, choose Number, set Decimal Places to its empty choice and save. | This is required field. is shown under Decimal Places. |
| 3 | Choose 0 (Whole numbers), set Min to 10 and Max to 5 and save. | Invalid range, min value must be less than max value is shown. |
| 4 | Change the category to Single Select and save without a codelist. | Please select a codelist. is shown. |
| 5 | Enter a variable name with a space and save. | Only alphanumeric characters, underscores (_) and colons (:) are allowed. is shown under Variable Name. |
Automated tests (0)
None. An automated test is tied to this case when its title or source cites TC-STU-174. The old tool named automation/tests/studiosvc/test_questions.py::TestStudioQuestions::test_cannot_create_question_with_empty_title; automation/tests/studiosvc/test_questions.py::TestStudioQuestions::test_create_question_with_invalid_type (partially automated), which matches no test the suites ran.
Note from the old tool: The API tests assert the server refuses a question with no text or an unknown type. Nothing asserts that Save stays disabled without text, or the on-screen messages for missing decimal places, an inverted range, a missing codelist or a malformed variable name.