Single flow multiple validations

Aperta
#2,296 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
playwright
Ambito
testing-qa

Direzione di ricerca

Non sono identificati file, test o punti di ingresso. Inizia esaminando come vengono attualmente gestiti da Cucumber backgrounds, hooks e tags, nonché l’esecuzione parallela, quindi chiarisci il ciclo di vita e l’ambito supportati per condividere un popup flow tra scenari o feature files. Il lavoro sarà considerato completato quando saranno disponibili un design concordato e una copertura per il comportamento basato sui tag proposto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I'm using playwright with cucumber -bdd framework.

🤔 What's the problem you're trying to solve?

Can we have something like single flow multiple validations

Example: I have a pop up where 3 buttons needs to be validation for its presence so for this I need to write 3 different test cases as I don't want to merge this validations in single

If I use background or scenario outline the step till opening is pop up will execute in all 3 test cases,
Also global hooks or any before hooks will execute the flow till pop up each time.

Expectation:: Open pop up only once and all 3 test cases should be executed, be it in same file or different feature file, Be it with same tag execution run or different tag execution run

We also need to make sure each test cases have same tag execution or different tag execution
Assume all above test cases are in different feature files and the testcases have tag @regression and @popup

Example:
When run regression tag test cases all 3 will execute but at different time what if we could develop reading a tag popup before execution starts and have a bunch of such test cases combined internally and executed. This will reduce execution time drastically.

✨ What's your proposed solution?

It would be great if we could develop a flow like reading a tag "popup" (in above scenario) from all the feature files before execution starts and have a bunch of such test cases combined internally in memory and executed, where the popup will open only once and all related testcases having that tag within a single feature file or different feature files will perform their own validations.

Something like background we have, but background executes each time for each test case and also it has limitations to single feature file.

This will reduce execution time drastically.when tests are run in parallel.

Or
any other way you could think to handle such scenarios.

Or
If already anything like this is available in cucumber please let me know how can It be handled

⛏ Have you considered any alternatives or workarounds?

Not getting any work around

📚 Any additional context?

No response

Lingua principale
Nessun dato sulla lingua
Stelle
3.4k
Fork
676
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cucumber/common

Tutte le issue di cucumber/common

Issue simili

Altre issue su Testing & QA

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.