Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CHILD_START_TIME_EARLIER_THAN_PARENT #131

Closed
babantax opened this issue Jan 8, 2021 · 2 comments
Closed

CHILD_START_TIME_EARLIER_THAN_PARENT #131

babantax opened this issue Jan 8, 2021 · 2 comments

Comments

@babantax
Copy link
Contributor

babantax commented Jan 8, 2021

Hi all!

I have spent some time debugging and finding out to see what is happening. In my case, Im executing sequentially.

This is one feature (see attached) that is causing the error. (It is a search on this page https://www.wiktionary.org/)

Feature: Lookup a definition
In order to talk better
As an English student
I want to look up word definitions

@issue:TED-20 @example @fe
Scenario Outline: Looking up the definition of ''
Given the user is on the Wiktionary home page
When the user looks up the definition of the word ''
Then they should see the definition ''

Examples:
  |word       |definition                                                                                                                          |
  |apple      |A common, round fruit produced by the tree Malus domestica, cultivated in temperate climates.                                       |
  |pear       |An edible fruit produced by the pear tree, similar to an apple but elongated towards the stem.                                      |
  |test       |A session in which a product or piece of equipment is examined under everyday or extreme conditions to evaluate its durability, etc.|
  |software   |(computing) Encoded computer instructions, usually modifiable (unless stored in some form of unalterable memory such as ROM).       |

The issue only happens when the feature has a DataTable and the process is done by BddDataDriven instead of Regular.
The first example(apple) is executed properly. One test with 3 children (3 steps)
image

With the second the problem begins. TestOut comes with the steps of apple and pear and the proceedSteps method try to log all of them to the actual Test(pear):
image

With the following examples is the same "test" try to process the steps of apple and pear.

The log output error is because is trying to log old steps in a new test:
image

Apparently the report in reporting portal is fine because that older steps are not logged but console log is totally full of them.

In my case, the problem seems fixed modifying BddDataDriven(record method) by passing only the steps of the current test (see below) but I don´t know if this can cause problems on other kinds of features/tests....
image

@zzoubian
Copy link

I also noticed a similar issue

Invictum pushed a commit that referenced this issue Mar 21, 2021
Fix CHILD_START_TIME_EARLIER_THAN_PARENT error 

See #131
@Invictum
Copy link
Owner

Fixed. Will be available in 1.5.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants