codeceptjs / codeceptjs/CodeceptJS

object created in BeforeAll hook via Api DataFactory is deleted after first Scenario done using Data Driven Test setup

Offen
#2,123 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
4.2k
Forks
757
Ø Merge
2 T. 9 Std.
Gemergte PRs (30 T.)
16

Beschreibung

#### What are you trying to achieve?
use a created object via API DataFactory (`I.have('object')`) in the `BeforeAll` hook for all scenarios in a Data Driven Test setup.

#### What do you get instead?
Ater the first `Data(input).Scenario()` has been finished, the created `object` will be deleted via DataFactory.
_I did expect that the object is available in all scenarios and will be deleted at the end of the whole test run. (similar to if i delete the object by myself in the `AfterAll` hook - which is my current workaround)_

### Details

* CodeceptJS version: 2.3.5
* NodeJS Version: 12.10.0
* Operating System: MacOS
* REST || webdriverio (if related)

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.