How to add BeforeSuite / AfterSuite in CodeceptJS (webdriver) feature file? #3658
Unanswered
PavithraNavaneeth
asked this question in
Q&A
Replies: 2 comments 2 replies
-
@PavithraNavaneeth Can you please share the code? Alternatively, you can try this import { event } from 'codeceptjs';
|
Beta Was this translation helpful? Give feedback.
2 replies
-
You reference to 'normal' Before hooks, but as I can see you are using Gherkin(first time I see someone uses it actually) so your reference is Gherkin |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I understand that codeceptjs does support beforesuite/aftersuite https://codecept.io/basics/#beforesuite for specific feature file. However when I try to add it my feature file - it doesnt work as expected.
for e.g: below is the sample of my feature file
Feature: Request account submission
Scenario Outline: Account to be created successfully
Given the user is logged in to explore my accounts
When the user selects CreateAccount
Then the page should show
Examples:
| xyz |
|123 |
how to add aftersuite here ? when I type in AfterSuite below the above examples, it shows unexpected element
Beta Was this translation helpful? Give feedback.
All reactions