turnitin / moodle-plagiarism_turnitin

Turnitin Plagiarism plugin for Moodle
http://www.turnitin.com
45 stars 65 forks source link

failed behat tests #614

Open ehsan42 opened 2 years ago

ehsan42 commented 2 years ago

Moodle 3.11.5+ (Build: 20220218) Php: 7.4, mysqli: 5.7.36

The following features are failing on the following steps

var/www/html/plagiarism/turnitin/tests/behat/workshop.feature:49 var/www/html/plagiarism/turnitin/tests/behat/forum.feature:53 var/www/html/plagiarism/turnitin/tests/behat/installed.feature:26 var/www/html/plagiarism/turnitin/tests/behat/pseudo_submission.feature:51 var/www/html/plagiarism/turnitin/tests/behat/assignment_groups.feature:57 var/www/html/plagiarism/turnitin/tests/behat/eula.feature:44 var/www/html/plagiarism/turnitin/tests/behat/assignment_drafts.feature:49 var/www/html/plagiarism/turnitin/tests/behat/assignment_drafts.feature:120 var/www/html/plagiarism/turnitin/tests/behat/assignment_multiple_files.feature:45 var/www/html/plagiarism/turnitin/tests/behat/assignment_resubmission.feature:45 var/www/html/plagiarism/turnitin/tests/behat/assignment_any_file_type.feature:45 var/www/html/plagiarism/turnitin/tests/behat/assignment.feature:44

--- Failed steps:

001 Scenario: Add a post to a discussion with a file attached and retrieve the originality score # /var/www/html/plagiarism/turnitin/tests/behat/forum.feature:53 And I add a "Forum" to section "1" and I fill the form with: # /var/www/html/plagiarism/turnitin/tests/behat/forum.feature:37 Field matching locator "Enable Turnitin" not found. (Behat\Mink\Exception\ElementNotFoundException)

1 scenario (1 failed) 63 steps (15 passed, 1 failed, 47 skipped) 0m55.09s (68.03Mb) To re-run failed processes, you can use following command: php admin/tool/behat/cli/run.php --format="pretty" --format="progress" --format="moodle_screenshot" --colors /var/www/html/plagiarism/turnitin/tests/behat/forum.feature:53 --rerun

--- Failed steps:

001 Scenario: A submission can be queued and sent to Turnitin for a workshop # /var/www/html/plagiarism/turnitin/tests/behat/workshop.feature:49 And I add a "Workshop" to section "1" and I fill the form with: # /var/www/html/plagiarism/turnitin/tests/behat/workshop.feature:37 Field matching locator "use_turnitin" not found. (Behat\Mink\Exception\ElementNotFoundException)

1 scenario (1 failed) 43 steps (15 passed, 1 failed, 27 skipped) 0m52.23s (67.99Mb) To re-run failed processes, you can use following command: php admin/tool/behat/cli/run.php --format="pretty" --format="progress" --format="moodle_screenshot" --colors /var/www/html/plagiarism/turnitin/tests/behat/workshop.feature:49 --rerun

The reason is that when the test is trying to set the following

  | Enable Turnitin                        | 1 |                             
  | Check against stored student papers    | 1 |                             
  | Display Similarity Reports to Students | 1 | 

those settings are missing from the activity behat-turnitin1

what it should see 'turnitin plagiarism plugin settings' behat-turnitin3

The 'turnitin plagiarism plugin' settings is only visible when setting a valid Tunritin Account ID and Shared Key. I have tried with fake credentials to get the menu to appear but it showing error as unable to authenticate. behat-turnitin4

In the feature there are steps to set credentials but the test just leaves them blank. And I configure Turnitin URL And I configure Turnitin credentials behat-turnitin2

dragos5436 commented 2 years ago

These tests are also failing for Moodle 4.0

ixiongtii commented 12 months ago

We have an open ticket for this issue and is under review.