Scenario outlines don't complete with latest 2.1.0

82 views
Skip to first unread message

Dan K

unread,
Jan 25, 2020, 1:45:00 PM1/25/20
to Serenity BDD Users Group
I have a scenario outline with 2 examples.
With latest version o when the first scenario example fails, the whole test terminates, and this shows on the console:

[INFO]  SERENITY TESTS : FAILURE
[INFO] -----------------------------------------
[INFO] | Tests executed         | 2
[INFO] | Tests passed            | 0
[INFO] | Tests failed               | 1
[INFO] | Tests with errors       | 0
[INFO] | Tests compromised  | 0
[INFO] | Tests pending           | 0
[INFO] | Tests ignored/skipped  | 0

Last version when this run successfully was 2.0.90

Dan K

unread,
Jan 30, 2020, 8:32:48 AM1/30/20
to Serenity BDD Users Group
Here is a repro to reproduce:

https://github.com/gizdolok/serenity-appium-screenplay-example

As soon as I upgrade serenity to version 2.0.91 on line 29 on pom.xml this error shows and second and third example never execute:

1 Scenarios (1 passed)
3 Steps (3 passed)
0m32.255s

[ERROR] Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 36.913 s <<< FAILURE! - in com.offline.city.map.serenity.cucumber.SearchingTests
[ERROR] Feature: Search Locations  Time elapsed: 2.028 s  <<< ERROR!
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 7 path $
Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 7 path $

[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Errors: 
[ERROR]   com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 7 path $
[INFO] 
[ERROR] Tests run: 4, Failures: 0, Errors: 1, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- serenity-maven-plugin:2.0.91:aggregate (serenity-reports) @ serenity-appium-screenplay-example ---
[INFO] Test results for 3 tests generated in 3.3 secs in directory: file:/Users/daniel.kolodzig/Projects/serenity-appium-screenplay-example/target/site/serenity/
[INFO] -----------------------------------------
[INFO]  SERENITY TESTS : SUCCESS
[INFO] -----------------------------------------
[INFO] | Tests executed         | 3
[INFO] | Tests passed           | 1
[INFO] | Tests failed           | 0
[INFO] | Tests with errors      | 0
[INFO] | Tests compromised      | 0
[INFO] | Tests pending          | 0
[INFO] | Tests ignored/skipped  | 0
[INFO] ------------------------ | --------------
[INFO] | Total Duration         | 29s 940ms
[INFO] | Fastest test took      | 29s 940ms
[INFO] | Slowest test took      | 29s 940ms
[INFO] -----------------------------------------
[INFO] 
Reply all
Reply to author
Forward
0 new messages