Reuse the previous test's end frame in Nightwatch and Selenium

Aperta
#585 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
57/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
testing

Direzione di ricerca

Start by reading the WDIO change in issue #583, then inspect SessionCapturer#queueActionSnapshot and commandPostActions.ts in the Nightwatch and Selenium adapters. Check whether each adapter’s first capture repeats the prior test’s end frame, accounting for captures running after commands. If it does, apply the reuse behavior and verify the first capture is skipped only when the frame is reusable.

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

Descrizione

#583 lets the WDIO service skip a test's first capture when only lookups and reads ran since the previous test's end-of-test capture: it reuses that frame. On cloud iOS that probe is a duplicate page-source read of about 0.6 to 0.8 s per test.

Nightwatch (SessionCapturer#queueActionSnapshot) and Selenium (commandPostActions.ts queueActionSnapshot) still always capture a test's first mapped command. Their capture runs after the command rather than before it, so the reuse rule can't be copied as is. Find out whether the first capture of a test still repeats the previous end frame in those adapters, and if it does, apply the same reuse there.

Lingua principale
TypeScript
Stelle
10
Fork
4
Merge medio
1g 11h
PR unite (30g)
76

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 webdriverio/devtools

Tutte le issue di webdriverio/devtools

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.