From 6be3e8fd009f1989b610e9ba268753176a991f60 Mon Sep 17 00:00:00 2001 From: Bernardo Engelke Date: Wed, 17 May 2017 14:50:04 -0300 Subject: [PATCH] Assign tests on the way --- tests/behat/unasus.feature | 154 ++++++++++++++++++------------------- 1 file changed, 77 insertions(+), 77 deletions(-) diff --git a/tests/behat/unasus.feature b/tests/behat/unasus.feature index 4955162..c8cbc63 100644 --- a/tests/behat/unasus.feature +++ b/tests/behat/unasus.feature @@ -32,14 +32,14 @@ Background: # -----------------------------ASSIGN SETUP----------------------------------------------- # Unix timestamp 946684800 = 1 jan 2000 at 00h00m00s And the following "activities" exist: - | activity | course | idnumber | name | intro | grade | assignsubmission_onlinetext_enabled | completionexpected | added | - | assign | C1 | a1 | Test assignment one | Submit something! | 100 | 1 | 978307200 | 946684800 | - | assign | C1 | a2 | Test assignment two | Submit something! | 100 | 1 | 946684800 | 946684800 | - | assign | C1 | a3 | Test assignment three | Submit something! | 100 | 1 | 0 | 946684800 | - | assign | C1 | a4 | Test assignment four | Submit something! | 100 | 1 | 946684800 | 946684800 | - | assign | C1 | a5 | Test assignment five | Submit something! | 100 | 1 | 946684800 | 946684800 | - | assign | C1 | a6 | Test assignment six | Submit something! | 100 | 1 | 946684800 | 946684800 | - | assign | C1 | a7 | Test assignment seven | Submit something! | 100 | 1 | 946684800 | 946684800 | + | activity | course | idnumber | name | intro | grade | assignsubmission_onlinetext_enabled | completionexpected | + | assign | C1 | a1 | Test assignment one | Submit something! | 100 | 1 | 2147483647 | + | assign | C1 | a2 | Test assignment two | Submit something! | 100 | 1 | 978307200 | + | assign | C1 | a3 | Test assignment three | Submit something! | 100 | 1 | 0 | + | assign | C1 | a4 | Test assignment four | Submit something! | 100 | 1 | 946684800 | + | assign | C1 | a5 | Test assignment five | Submit something! | 100 | 1 | 946684800 | + | assign | C1 | a6 | Test assignment six | Submit something! | 100 | 1 | 946684800 | + | assign | C1 | a7 | Test assignment seven | Submit something! | 100 | 1 | 946684800 | # And the following activity "assigns" exist: @@ -242,76 +242,76 @@ Background: # And I press "Submit assignment" # And I press "Continue" # And I log out -# -# And I log in as "student2" -# And I follow "Course1" -# And I follow "Test assignment two" -# And I press "Add submission" -# And I set the following fields to these values: -# | Online text | I'm the student2 submission | -# And I press "Save changes" -# And I press "Submit assignment" -# And I press "Continue" -# And I log out -# -# And I log in as "student3" -# And I follow "Course1" -# And I follow "Test assignment three" -# And I press "Add submission" -# And I set the following fields to these values: -# | Online text | I'm the student3 submission | -# And I press "Save changes" -# And I press "Submit assignment" -# And I press "Continue" -# And I log out - -# And I log in as "student1" -# And I follow "Course1" -# And I follow "Test assignment four" -# And I press "Add submission" -# And I set the following fields to these values: -# | Online text | I'm the student1 submission | -# And I press "Save changes" -# And I press "Submit assignment" -# And I press "Continue" -# And I set the submission date of activity "a4" to "0" days after -# And I log out -# -# And I log in as "student1" -# And I follow "Course1" -# And I follow "Test assignment five" -# And I press "Add submission" -# And I set the following fields to these values: -# | Online text | I'm the student3 submission | -# And I press "Save changes" -# And I press "Submit assignment" -# And I press "Continue" -# And I set the submission date of activity "a5" to "10" days after -# And I log out -# -# And I log in as "student1" -# And I follow "Course1" -# And I follow "Test assignment six" -# And I press "Add submission" -# And I set the following fields to these values: -# | Online text | I'm the student3 submission | -# And I press "Save changes" -# And I press "Submit assignment" -# And I press "Continue" -# And I set the submission date of activity "a6" to "11" days after -# And I log out -# And I log in as "student1" -# And I follow "Course1" -# And I follow "Test assignment seven" -# And I press "Add submission" -# And I set the following fields to these values: -# | Online text | I'm the student3 submission | -# And I press "Save changes" -# And I press "Submit assignment" -# And I press "Continue" -# And I set the submission date of activity "a7" to "11" days after -# And I log out + And I log in as "student2" + And I follow "Course1" + And I follow "Test assignment two" + And I press "Add submission" + And I set the following fields to these values: + | Online text | I'm the student2 submission | + And I press "Save changes" + And I press "Submit assignment" + And I press "Continue" + And I log out + + And I log in as "student3" + And I follow "Course1" + And I follow "Test assignment three" + And I press "Add submission" + And I set the following fields to these values: + | Online text | I'm the student3 submission | + And I press "Save changes" + And I press "Submit assignment" + And I press "Continue" + And I log out + + And I log in as "student1" + And I follow "Course1" + And I follow "Test assignment four" + And I press "Add submission" + And I set the following fields to these values: + | Online text | I'm the student1 submission | + And I press "Save changes" + And I press "Submit assignment" + And I press "Continue" + And I set the submission date of activity "a4" to "0" days after + And I log out + + And I log in as "student1" + And I follow "Course1" + And I follow "Test assignment five" + And I press "Add submission" + And I set the following fields to these values: + | Online text | I'm the student3 submission | + And I press "Save changes" + And I press "Submit assignment" + And I press "Continue" + And I set the submission date of activity "a5" to "10" days after + And I log out + + And I log in as "student1" + And I follow "Course1" + And I follow "Test assignment six" + And I press "Add submission" + And I set the following fields to these values: + | Online text | I'm the student3 submission | + And I press "Save changes" + And I press "Submit assignment" + And I press "Continue" + And I set the submission date of activity "a6" to "11" days after + And I log out + + And I log in as "student1" + And I follow "Course1" + And I follow "Test assignment seven" + And I press "Add submission" + And I set the following fields to these values: + | Online text | I'm the student3 submission | + And I press "Save changes" + And I press "Submit assignment" + And I press "Continue" + And I set the submission date of activity "a7" to "11" days after + And I log out # Atribuição de nota em assignment (Avaliação da atividade por parte do professor) # And I follow "Courses"