Group 6: Failed tests
Group 6: https://git.rwth-aachen.de/sammattiussi/SQATicketing-Group-6
-------------------------------------------------------------------------------
Test set: de.rwth.swc.sqa.AddCustomerTest
-------------------------------------------------------------------------------
Tests run: 12, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 25.801 s <<< FAILURE! - in de.rwth.swc.sqa.AddCustomerTest
addCustomer_shouldReturn400ForExistingId{long}[1] Time elapsed: 0.197 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <400> but was <201>.
at de.rwth.swc.sqa.AddCustomerTest.addCustomer_shouldReturn400ForExistingId(AddCustomerTest.java:38)
addCustomer_shouldReturn400ForExistingId{long}[2] Time elapsed: 0.039 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <400> but was <201>.
at de.rwth.swc.sqa.AddCustomerTest.addCustomer_shouldReturn400ForExistingId(AddCustomerTest.java:38)
addCustomer_shouldReturn400ForExistingId{long}[3] Time elapsed: 0.061 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <400> but was <201>.
at de.rwth.swc.sqa.AddCustomerTest.addCustomer_shouldReturn400ForExistingId(AddCustomerTest.java:38)
addCustomer_shouldReturn400ForExistingId{long}[4] Time elapsed: 0.046 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <400> but was <201>.
at de.rwth.swc.sqa.AddCustomerTest.addCustomer_shouldReturn400ForExistingId(AddCustomerTest.java:38)
-
addCustomer_shouldReturn400ForExistingId
: We simply ignore an ID and issue a new ID when creating customers, we should ask for clarification: ID should not be ignored, but instead the request is invalid, which should be fixed, see #38 (closed).
-------------------------------------------------------------------------------
Test set: de.rwth.swc.sqa.AddDiscountTest
-------------------------------------------------------------------------------
Tests run: 11, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.878 s <<< FAILURE! - in de.rwth.swc.sqa.AddDiscountTest
whenDiscountCardsConflict1YEarlier Time elapsed: 0.072 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <409> but was <201>.
at de.rwth.swc.sqa.AddDiscountTest.whenDiscountCardsConflict1YEarlier(AddDiscountTest.java:287)
whenIdIsIncluded Time elapsed: 0.064 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <400> but was <201>.
at de.rwth.swc.sqa.AddDiscountTest.whenIdIsIncluded(AddDiscountTest.java:63)
whenDiscountCardsConflict1YLater Time elapsed: 0.063 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <409> but was <201>.
at de.rwth.swc.sqa.AddDiscountTest.whenDiscountCardsConflict1YLater(AddDiscountTest.java:318)
-
whenDiscountCardsConflict1YEarlier
: Check their conflict: Two discount cards, valid one year each, starting2000-01-01
and1999-01-01
should be valid. Their test seem wrong in this case -
whenIdIsIncluded
: Have a look at their test case: IDs should not be present when requesting discount cards. Fixed in !35 (merged) -
whenDiscountCardsConflict1YLater
: Check their conflict: Two discount cards, valid one year each, starting1999-01-01
and2000-01-01
should be valid. Their test seem wrong in this case
-------------------------------------------------------------------------------
Test set: de.rwth.swc.sqa.BuyTicketTest
-------------------------------------------------------------------------------
Tests run: 27, Failures: 10, Errors: 0, Skipped: 0, Time elapsed: 0.901 s <<< FAILURE! - in de.rwth.swc.sqa.BuyTicketTest
noValueForValidFromTest Time elapsed: 0.032 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <400> but was <201>.
at de.rwth.swc.sqa.BuyTicketTest.noValueForValidFromTest(BuyTicketTest.java:77)
invalidSeniorTicketWrongZoneTest Time elapsed: 0.03 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <400> but was <201>.
at de.rwth.swc.sqa.BuyTicketTest.invalidSeniorTicketWrongZoneTest(BuyTicketTest.java:331)
invalidChildTicketTest Time elapsed: 0.031 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <400> but was <201>.
at de.rwth.swc.sqa.BuyTicketTest.invalidChildTicketTest(BuyTicketTest.java:517)
invalidZoneATest Time elapsed: 0.03 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <400> but was <201>.
at de.rwth.swc.sqa.BuyTicketTest.invalidZoneATest(BuyTicketTest.java:155)
invalidZoneBTest Time elapsed: 0.03 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <400> but was <201>.
at de.rwth.swc.sqa.BuyTicketTest.invalidZoneBTest(BuyTicketTest.java:259)
invalidStudentTicketWrongZoneTest Time elapsed: 0.03 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <400> but was <201>.
at de.rwth.swc.sqa.BuyTicketTest.invalidStudentTicketWrongZoneTest(BuyTicketTest.java:443)
invalidStudentTicketWrongValidFor1dTest Time elapsed: 0.029 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <400> but was <201>.
at de.rwth.swc.sqa.BuyTicketTest.invalidStudentTicketWrongValidFor1dTest(BuyTicketTest.java:481)
invalidStudentTicketWrongValidFor1hTest Time elapsed: 0.026 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <400> but was <201>.
at de.rwth.swc.sqa.BuyTicketTest.invalidStudentTicketWrongValidFor1hTest(BuyTicketTest.java:462)
invalidSeniorTicketWrongValidForTest Time elapsed: 0.028 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <400> but was <201>.
at de.rwth.swc.sqa.BuyTicketTest.invalidSeniorTicketWrongValidForTest(BuyTicketTest.java:349)
invalidStudentTicketToOldTest Time elapsed: 0.026 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <400> but was <201>.
at de.rwth.swc.sqa.BuyTicketTest.invalidStudentTicketToOldTest(BuyTicketTest.java:424)
-
noValueForValidFromTest
: We take the current date time, should be clarified/fact checked: Not a concern anymore, as this field is required now #53 (closed) -
invalidSeniorTicketWrongZoneTest
: Check their test: Anybody can buy any ticket #41 (closed), test therefore not valid -
invalidChildTicketTest
: Check their test: There are no more child tickets. -
invalidZoneATest
: Check their test: Day ticket contains a zone, which is currently checked against the specification #43 (closed) -
invalidZoneBTest
: Check their test: Day ticket contains a zone, which is currently checked against the specification #43 (closed) -
invalidStudentTicketWrongZoneTest
: Check their test: there are no student tickets for one hour tickets. Therefore, any request should be rejected with400
#54 (closed). -
invalidStudentTicketWrongValidFor1dTest
: Check their test: there are no student tickets for one day tickets. Therefore, any request should be rejected with400
#54 (closed). -
invalidStudentTicketWrongValidFor1hTest
: Check their test: there are no student tickets for one hour tickets. Therefore, any request should be rejected with400
#54 (closed). -
invalidSeniorTicketWrongValidForTest
: Anybody can buy any ticket #41 (closed), test therefore not valid -
invalidStudentTicketToOldTest
: Should be fine, everybody is allowed to buy tickets for everybody, see #42 (closed)
-------------------------------------------------------------------------------
Test set: de.rwth.swc.sqa.ValidateTicketTest
-------------------------------------------------------------------------------
Tests run: 32, Failures: 10, Errors: 0, Skipped: 0, Time elapsed: 1.584 s <<< FAILURE! - in de.rwth.swc.sqa.ValidateTicketTest
ticketDiscountTrueRequestNoId Time elapsed: 0.088 s <<< FAILURE!
org.opentest4j.AssertionFailedError: BuyTicket did not return an id.
at de.rwth.swc.sqa.ValidateTicketTest.ticketDiscountTrueRequestNoId(ValidateTicketTest.java:621)
ticketStudentTrue{int}[1] Time elapsed: 0.041 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <403> but was <200>.
at de.rwth.swc.sqa.ValidateTicketTest.ticketStudentTrue(ValidateTicketTest.java:442)
ticketDiscountTrueDiscountCardDateTooEarly Time elapsed: 0.057 s <<< FAILURE!
org.opentest4j.AssertionFailedError: BuyTicket did not return an id.
at de.rwth.swc.sqa.ValidateTicketTest.ticketDiscountTrueDiscountCardDateTooEarly(ValidateTicketTest.java:718)
ticketDateInvalid{int}[1] Time elapsed: 0.042 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <400> but was <403>.
at de.rwth.swc.sqa.ValidateTicketTest.ticketDateInvalid(ValidateTicketTest.java:258)
ticketStudentFalse{int}[2] Time elapsed: 0.048 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <403> but was <200>.
at de.rwth.swc.sqa.ValidateTicketTest.ticketStudentFalse(ValidateTicketTest.java:407)
ticketDisabledFalse{int}[2] Time elapsed: 0.046 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <403> but was <200>.
at de.rwth.swc.sqa.ValidateTicketTest.ticketDisabledFalse(ValidateTicketTest.java:337)
ticketDiscountTrueDiscountCardDateInvalidExpired Time elapsed: 0.064 s <<< FAILURE!
org.opentest4j.AssertionFailedError: BuyTicket did not return an id.
at de.rwth.swc.sqa.ValidateTicketTest.ticketDiscountTrueDiscountCardDateInvalidExpired(ValidateTicketTest.java:669)
ticketDiscountFalseRequestProvidesId{int}[2] Time elapsed: 0.061 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <403> but was <500>.
at de.rwth.swc.sqa.ValidateTicketTest.ticketDiscountFalseRequestProvidesId(ValidateTicketTest.java:524)
ticketDiscountTrueRequestProvidesID{int}[1] Time elapsed: 0.062 s <<< FAILURE!
org.opentest4j.AssertionFailedError: BuyTicket did not return an id.
at de.rwth.swc.sqa.ValidateTicketTest.ticketDiscountTrueRequestProvidesID(ValidateTicketTest.java:561)
ticketDiscountTrueRequestProvidesID{int}[2] Time elapsed: 0.061 s <<< FAILURE!
org.opentest4j.AssertionFailedError: BuyTicket did not return an id.
at de.rwth.swc.sqa.ValidateTicketTest.ticketDiscountTrueRequestProvidesID(ValidateTicketTest.java:561)
-
ticketDiscountTrueRequestNoId
: Have a look at their test. -
ticketStudentTrue
: Should look at their test. They expected an invalid ticket but we say it is valid. -
ticketDiscountTrueDiscountCardDateTooEarly
: Their ticket buying did not work. Why? -
ticketDateInvalid
: Is a wrong date (format?) a wrong request or a wrong ticket?400
seems appropriate. Maybe a bug? See #45 (closed) -
ticketStudentFalse
: Ticket should be invalid. Check their tests -
ticketDisabledFalse
: Ticket should be invalid. Check their tests -
ticketDiscountTrueDiscountCardDateInvalidExpired
: Their ticket buying did not work. Why? -
ticketDiscountFalseRequestProvidesId
: We retrun a500
, this should never happen. Check their request. Not sure if the 500 is related to the ticket buying (#39 (closed)) or occurs in the validation -
ticketDiscountTrueRequestProvidesID
: Their ticket buying did not work. Why?
Edited by Jasper vom Felde