Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-3535

Apply changes in lesson numerical questions (MDL-40227)

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor Minor
    • 4.2.0
    • 3.9.2
    • Lesson add-on
    • Hide

      This issue only needs to be tested in 1 device.

      This issue should be tested in a 3.9.2 or higher site.

      Setup

      There are 2 lessons already created in our 4.1 site > Testing Isabel > MOBILE-3535. If you want to use a different site or course, follow these instructions to create them.

      1. In a course, create a Lesson with the following settings (this will be the online lesson):
        1. "Flow control > Allow student review" set it to "Yes".
        2. "Flow control > Provide option to try a question again" set it to "Yes".
        3. "Flow control > Maximum number of attempts per question" set it to "Unlimited".
        4. "Grade > Re-takes allowed" set it to Yes.
        5. "Availability > Allow lesson to be attempted offline using the mobile app" set to "No".
      2. Add a new question page with type Numerical. Make sure that the right answer has decimals (e.g. "1.1") and add some text in the "Response" of the right answer. 
      3. Duplicate the previous lesson and edit it to set "Availability > Allow lesson to be attempted offline using the mobile app" to "Yes". This will be the offline lesson.

      Test student

      1. Configure the app to use a language that uses "." as a decimal separator (e.g. English).
      2. Login as a student and navigate to the online lesson.
      3. Click to start the lesson.
      4. In the numerical question, add some text characters to the answer (e.g. 1abcde) and submit it. Check that the app says that no answer was provided (having invalid characters is considered as an empty answer).
      5. Try again and now enter the right answer but using a comma as the decimal separator (e.g. 1,1). Check that the app says that no answer was provided (your current language doesn't accept the separator).
      6. Try again and now enter the right answer but using a dot as decimal separator (e.g. 1.1). Check that the app says that the answer is correct.
      7. Click Continue to reach the end of the lesson and then leave the lesson.
      8. Change the app's language to a language that uses "," as a decimal separator (e.g. Deutsch).
      9. Open the online lesson again and click to start it.
      10. Enter the right answer but using a comma as the decimal separator (e.g. 1,1). 
      11. Check that the app says that the answer is correct. In the page that displays the feedback the answer is displayed using "." (I opened MDL-77550 to fix it).
      12. Click Continue to reach the end of the lesson and then go back to the lesson entry page.
      13. Start the lesson again and enter the right answer but using a dot as decimal separator (e.g. 1.1). Check that the app says that the answer is correct.
      14. Now repeat the steps 2-13 but with the offline lesson with the following changes:
        1. When you open the lesson (before clicking start), open the top-right menu and click Download.
        2. Go offline before clicking to start the lesson.
        3. When you finish the lesson and go back to the lesson entry page, go online and synchronise the data (so the attempt is finished and you can try again).
        4. In step 11 the app will correctly display the number using ",".

       

      Test teacher

      Do these tests after the student ones so you have some attempts created.

      1. Configure the app to use a language that uses "." as a decimal separator (e.g. English).
      2. Login as a teacher and navigate to any of the lessons (these tests should be done in online, but you can use any of the lessons).
      3. Click "Reports" and select the student. In the review page, check that the answer is displayed using ".".
      4. Change the app's language to a language that uses "," as a decimal separator (e.g. Deutsch).
      5. Open the report again. Check that the answer is displayed using ",".
      Show
      This issue only needs to be tested in 1 device. This issue should be tested in a 3.9.2 or higher site. Setup There are 2 lessons already created in our 4.1 site > Testing Isabel > MOBILE-3535 . If you want to use a different site or course, follow these instructions to create them. In a course, create a Lesson with the following settings (this will be the online lesson): "Flow control > Allow student review" set it to "Yes". "Flow control > Provide option to try a question again" set it to "Yes". "Flow control > Maximum number of attempts per question" set it to "Unlimited". "Grade > Re-takes allowed" set it to Yes. "Availability > Allow lesson to be attempted offline using the mobile app" set to "No". Add a new question page with type Numerical. Make sure that the right answer has decimals (e.g. "1.1") and add some text in the "Response" of the right answer.  Duplicate the previous lesson and edit it to set "Availability > Allow lesson to be attempted offline using the mobile app" to "Yes". This will be the offline lesson. Test student Configure the app to use a language that uses "." as a decimal separator (e.g. English). Login as a student and navigate to the online lesson. Click to start the lesson. In the numerical question, add some text characters to the answer (e.g. 1abcde) and submit it. Check that the app says that no answer was provided (having invalid characters is considered as an empty answer). Try again and now enter the right answer but using a comma as the decimal separator (e.g. 1,1). Check that the app says that no answer was provided (your current language doesn't accept the separator). Try again and now enter the right answer but using a dot as decimal separator (e.g. 1.1). Check that the app says that the answer is correct. Click Continue to reach the end of the lesson and then leave the lesson. Change the app's language to a language that uses "," as a decimal separator (e.g. Deutsch). Open the online lesson again and click to start it. Enter the right answer but using a comma as the decimal separator (e.g. 1,1).  Check that the app says that the answer is correct. In the page that displays the feedback the answer is displayed using "." (I opened MDL-77550 to fix it). Click Continue to reach the end of the lesson and then go back to the lesson entry page. Start the lesson again and enter the right answer but using a dot as decimal separator (e.g. 1.1). Check that the app says that the answer is correct. Now repeat the steps 2-13 but with the offline lesson with the following changes: When you open the lesson (before clicking start), open the top-right menu and click Download. Go offline before clicking to start the lesson. When you finish the lesson and go back to the lesson entry page, go online and synchronise the data (so the attempt is finished and you can try again). In step 11 the app will correctly display the number using ",".   Test teacher Do these tests after the student ones so you have some attempts created. Configure the app to use a language that uses "." as a decimal separator (e.g. English). Login as a teacher and navigate to any of the lessons (these tests should be done in online, but you can use any of the lessons). Click "Reports" and select the student. In the review page, check that the answer is displayed using ".". Change the app's language to a language that uses "," as a decimal separator (e.g. Deutsch). Open the report again. Check that the answer is displayed using ",".
    • MOODLE_39_STABLE
    • MOODLE_402_STABLE
    • Moodle App 4.2.0

      We should review the changes done in MDL-40227 and apply them in the app too if needed.

      Specs doc:

      https://docs.google.com/document/d/1bh8T48NvAw9FhkigVV6oJOtwnq8hIQFv27MioDFmsIE

            dpalou Dani Palou
            dpalou Dani Palou
            Pau Ferrer Pau Ferrer
            Isabel Renedo Rouco Isabel Renedo Rouco
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.