NewsCrawler.org

Generating screenshot manuals from E2E tests of user scenarios

【e2e】ユーザーシナリオでE2Eテストを回し、スクショ付き手順書を自動作成してみた
ユーザーシナリオをもとにe2eで操作と撮影を行い、確認が通れば操作文と画像を使った手順書をBlumeで表示する。失敗時は前の手順書を保持する流れ
e2e(TesterArmy)の概要。Playwrightとのテストの書き方の違い、AIエージェントによる操作とアサーション、対応プラットフォーム、テストの実行例
牛乳を買うが未完了のタスクとして一覧に表示された画面
Image: zenn.dev

The author tested whether E2E tests[1] of user scenarios could be reused for user manuals, using a sample Todo app. The scenario steps are written in natural language, and the e2e tool runs them in a browser the way a user would; when the expected result appears, the test takes a screenshot.

A guide is built from the instruction text and the images, and it is updated only when the tests, images and link checks pass. If a run fails, the previous guide is kept, and the test and the page share an ID such as TC-001. Site building is handled by Blume[2], a tool that turns Markdown into a documentation site with a table of contents and search, and the pages are written in MDX[3].

In the demo, the task "buy milk" is marked complete: before the click there is 1 incomplete task, and after it there are 0, and the test checks this before taking the screenshot. The author notes that only guide generation on the sample app was checked, and the time saved in real work was not measured.

Repository Blume github.com

Open-source docs framework that turns Markdown into a documentation site with a table of contents and search.

Stars: 1,800Forks: 120License: MITUpdated:

Read the original zenn.dev

Sources

  • Zenn JA

    【e2e】ユーザーシナリオでE2Eテストを回し、スクショ付き手順書を自動作成してみた

    10 likes1 bookmark0 comments

Published: First seen: Читать по-русски

Open as a page