serenity-bdd / serenity-cucumber

Cucumber integration for the Serenity BDD Reporting library
Other
78 stars 74 forks source link

Test reported as manual instead of automated #209

Open MaddyRA opened 5 years ago

MaddyRA commented 5 years ago

Hi,

I have a project using 2.0.56</serenity.version> and i am running few tests with tag @AdminPortal. The tests are being executed but report shows the tests are manual.

I noticed below log messages: 14831 [main] INFO net.thucydides.core.steps.ConsoleLoggingListener - TEST MANUAL 14833 [main] INFO net.thucydides.core.steps.ConsoleLoggingListener - TEST MANUAL 14835 [main] INFO net.thucydides.core.steps.ConsoleLoggingListener - TEST MANUAL

Also 1 of the test is showing pending, thought i have implemented all the steps in the test.

Can you please let me know what could be wrong?

wakaleo commented 5 years ago

I can’t see from the information you have provided - can you provide a sample project?

MaddyRA commented 5 years ago

Hi,

I debugged and found as below:

I have 2 feature files

Feature: NZ-AddNote-1 Add Note @AdminNote Scenario: Verify Search Page with Header and Footer Given the CSR portal is launched Then the user name is displayed And the user id is displayed And the footer is displayed

Feature: NZ-Enrol-1 VMMP to process Maintenance STG table record and invoke ESB Maintenance Orchestra - File update

@Manual @Passed Scenario: Update record of "AWAITING_ACTIVATION" and verify orchestration Given an user with new "email" When an user with new "firstName" And an user with new "lastName" ...

Now when i try to run test for tag @AdminNote

For the scenario, getTags() returns all 3 tags (@Manual, @Passed, @AdminNote) from both feature files instead of just @AdminNote, hence the test i wanted to run is also marked as manual and skipped. After removing the manual tag from the 2nd feature file, it is working.