TOPIC 35/4218 MINNOT STARTED

Translating and migrating tests between tools and formats with AI

Move tests between tools with explicit target rules, compare mapped data and assertions, and verify behaviour on the same build.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: a translator who swaps words one by one and keeps the old grammar. Picture a translator who changes each word to the new language and keeps the old sentence shape. Every word is correct. The sentence still sounds odd, and a native reader winces.

Daily List is a to-do list app. Leo, the developer, has an old login check written for Selenium, a tool that drives a web browser. The team is moving to Playwright, a newer tool for the same job. Leo asks an (AI) assistant to convert the check.

The new test passes. Tom, the tester, reads it and finds a pause of five seconds before every click. The old test had those pauses because the old tool needed them. The new tool waits for itself. The words changed. The grammar did not.

So Leo gives the assistant the new tool's rules and asks again. He also asks for a list of what changed and what could not be mapped. Tom then runs both tests on the same build.

The picture has limits. A translator may say "this phrase has no match". An assistant often converts it anyway, so you must look for the gaps.

(SYNTHETIC / TRAINING ONLY: Daily List and every person named here are made up.)

PLAIN WORDS · 2 in this section
selenium
A free tool that drives a web browser for checks.
playwright
a free Microsoft tool that drives a browser for tests

PICTURE IT

The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.

THE REAL JOB Moving tests to a new tool or format with the target rules in hand, and checking mapped fields, assertions and behaviour through comparison and side-by-side runs; counts and samples alone do not prove complete preservation.

  1. Give one test and the rules
  2. Ask for a change table
  3. Run both builds
  4. Count and sample
A test that passes is not a test that was translated well

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
The translatorThe assistant converting a test
Swapping words one by oneCopying line by line
The old grammar that survivesOld pauses and locators that survive
Asking a native reader to listenRunning both versions and sampling the result

WHERE THIS PICTURE STOPS

  • A translator may say there is no match. An assistant often converts anyway.
  • A translator knows the reader. An assistant does not know your suite.
  • A reader hears an odd sentence at once. A pass does not show an odd test.

HOOK

A test that passes is not a test that was translated well.

REMEMBER IT THIS WAY

A contrast: two neighbours told apart by one test.

Does it pass, or does it read well? Running both versions answers the first; reading for old pauses and locators answers the second.

What each part of the trick stands for
In the trickWhat it stands for
PassRunning both versions and sampling the result
Reads wellOld pauses and locators that survive
Line by lineCopying line by line

TELL A FRIEND

A translator who swaps words one by one and keeps the old grammar. You listen for the odd sentences.

OFTEN MIXED UP WITH Moving to Playwright from Puppeteer, Protractor, Selenium or Cypress. That lesson teaches how a team moves to Playwright. This one adds the assistant as the translator and the proof steps for what it hands back.

Sources & standards — 4 sources
  1. Market practice

    How to switch from Selenium to Playwright (BrowserStack guide) ↗ — BrowserStack · Move in stages, run both tools side by side, verify each batch, and map patterns such as waits instead of converting line by line; a big-bang rewrite carries more risk (search excerpt, page not opened)

    Vendor guide. Several other vendor guides say the same, so it is practice, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  2. Market practice

    A comparative study of language models for Gherkin generation (Brazilian Computer Society, SBES) ↗ — Brazilian Computer Society · The paper compares seven language models on turning test descriptions into Gherkin scenarios and says there is little evidence on how accurate and stable they are (search excerpt, page not opened)

    Research on one conversion. It does not measure lost fields, so the lesson treats field loss as a reason to check, not a finding. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  3. Market practice

    Does artificial intelligence (AI) test generation actually improve velocity? Solving the regression bloat (Ministry of Testing) ↗ — Ministry of Testing · Generated tests must be reviewed for accuracy and relevance, or the volume leads to slow runs, slower feedback and invented scenarios (search excerpt, page not opened)

    Practitioner article. Only the introduction was seen, so its de-duplication advice is not cited. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  4. Market practice

    Best practices (Playwright documentation) ↗ — Microsoft (Playwright) · Test user-visible behaviour, keep tests isolated, prefer role and text locators over fragile selectors, and use web-first assertions (search excerpt, page not opened)

    Recommends user-facing locators such as role-based ones over Cascading Style Sheets (CSS) or XPath, web-first assertions that retry, and avoiding fixed waits. Vendor documentation. Practitioner or vendor guidance, not a standard unless stated. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail. A second search on 2026-10-20 returned this page for its title and matched the described content; the page was still not opened (search excerpt, page not opened).

PRACTISE AND KEEP

Sources for this topic — 4 sources
  1. Market practice

    How to switch from Selenium to Playwright (BrowserStack guide) ↗ — BrowserStack · Move in stages, run both tools side by side, verify each batch, and map patterns such as waits instead of converting line by line; a big-bang rewrite carries more risk (search excerpt, page not opened)

    Vendor guide. Several other vendor guides say the same, so it is practice, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  2. Market practice

    A comparative study of language models for Gherkin generation (Brazilian Computer Society, SBES) ↗ — Brazilian Computer Society · The paper compares seven language models on turning test descriptions into Gherkin scenarios and says there is little evidence on how accurate and stable they are (search excerpt, page not opened)

    Research on one conversion. It does not measure lost fields, so the lesson treats field loss as a reason to check, not a finding. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  3. Market practice

    Does artificial intelligence (AI) test generation actually improve velocity? Solving the regression bloat (Ministry of Testing) ↗ — Ministry of Testing · Generated tests must be reviewed for accuracy and relevance, or the volume leads to slow runs, slower feedback and invented scenarios (search excerpt, page not opened)

    Practitioner article. Only the introduction was seen, so its de-duplication advice is not cited. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  4. Market practice

    Best practices (Playwright documentation) ↗ — Microsoft (Playwright) · Test user-visible behaviour, keep tests isolated, prefer role and text locators over fragile selectors, and use web-first assertions (search excerpt, page not opened)

    Recommends user-facing locators such as role-based ones over Cascading Style Sheets (CSS) or XPath, web-first assertions that retry, and avoiding fixed waits. Vendor documentation. Practitioner or vendor guidance, not a standard unless stated. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail. A second search on 2026-10-20 returned this page for its title and matched the described content; the page was still not opened (search excerpt, page not opened).

Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.