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

Ouverte
#585 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
57/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
typescript
Domaine
testing

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

#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.

Langage dominant
TypeScript
Étoiles
10
Forks
4
Merge moyen
1 j 11 h
PR mergées (30 j)
76

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de webdriverio/devtools

Toutes les issues de webdriverio/devtools

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.