Connectors

/

Ghost Inspector

/

Rerun and confirm a Ghost Inspector fix
Write

Confirm a Ghost Inspector fix with one deliberate rerun

For developers who want to know a deployed fix worked, with the failure explained if it did not, by asking their AI assistant.

Try PopdockAI free
Get a live demo
Rerun and confirm a Ghost Inspector fix
Rerun the Checkout payment test in Ghost Inspector to confirm the fix we deployed this morning.
One test matches Checkout payment, and it is ready to run once. - Test: Checkout payment, in the Checkout suite - Start URL: https://www.contoso.com/cart - Browser: Chrome - Note: the run performs real actions on the live site Shall I run it now?
Ghost Inspector
Sample figures. Your results come from your own account.
ghost-inspector-get-test
ghost-inspector-execute-test
ghost-inspector-get-test-result
ghost-inspector-get-test-step
ghost-inspector-get-console-log

On this page

The problem

The problem

The prompt

Who it's for

How it works

Tools used

Connector

Ghost Inspector

Ghost Inspector
Run it on your own Ghost Inspector data.

Connect Ghost Inspector, pick your AI tool and paste the prompt.

Try PopdockAI free

The problem

Rerunning until you get a lucky pass

After a fix is deployed, someone reruns the failing Ghost Inspector test, waits, and digs into the steps again if it fails. Reruns get repeated in hope of a lucky pass, and the original context is lost.

Without PopdockAI

  • Rerun the test and wait
  • Rerun again when it fails
  • Open the steps to work out why
  • Lose the context of the first failure

With PopdockAI

  • Exactly one test must match, and what will run is shown
  • A warning says the run acts on a live site
  • The test runs once, with no retries, after you confirm
  • A pass shows its run time, a failure its step and console errors

The prompt

Use this prompt

Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.

Prompt
**Objective:** Rerun the Ghost Inspector test named `{test-name}` and confirm whether a fix has taken effect, optionally overriding the starting url with `{start-url}` and the browser with `{browser}`.

**Step 1: Identify the test**

Call `ghost-inspector-get-test` with `name.contains` set to `{test-name}`. If more than one test matches, list the matches with their suite and id and stop; do not guess which one to run. Keep the `id`, and note its current `passing` state so you can say whether this rerun changes anything.

**Step 2: Show what is about to run and get agreement**

State the test name, its suite, the browser and region that will be used, and the starting url. Running a test performs real browser actions against a live site, which may create or change data there. Ask the user to confirm before continuing. Do not proceed without an explicit yes.

**Step 3: Run it, once**

Call `ghost-inspector-execute-test` with `test-id` from step 1, plus `start-url` and `browser` only if those parameters were supplied. Do not set `immediate`, because this prompt exists to report the outcome and `immediate` returns before there is one. Call this tool exactly once. If it fails to return a result, report that and stop; do not retry.

**Step 4: Report the outcome**

If `passing` is true, report that the test now passes, with the execution time, and compare that time against the test's previous state from step 1.

If `passing` is false, diagnose it before reporting. Call `ghost-inspector-get-test-result` with the `test-id` and `passing` false to find the run you just made, take its `id`, then call `ghost-inspector-get-test-step` with that `test-result-id` and `passing` false, and `ghost-inspector-get-console-log` with the same `test-result-id` and `error` true. Report the failing step, its command and target, and any related console errors.

**Rules and guidelines:**

* `ghost-inspector-execute-test` is the ONLY tool in this prompt that may change anything, and it may be called once, after the confirmation in step 2.
* Do NOT call `ghost-inspector-execute-suite`, `ghost-inspector-update-test`, `ghost-inspector-duplicate-test`, `ghost-inspector-execute-on-demand-test` or any create tool.
* Do not rerun a failing test hoping for a different answer. One run, then report.

**Validation:**

* If `{test-name}` matches nothing, say so and list some test names from `ghost-inspector-get-test`.
* If the user declines the confirmation, stop without running anything.

Who it's for

One answer, three teams that use it

Developers

Confirm your fix worked

One deliberate run tells you pass or fail, with the failing step if it did not work.

Rerun the Password reset test in Ghost Inspector now that my fix is deployed.

QA engineers

Verify on a specific environment

Run against a start URL or browser of your choice and get a clear result.

Rerun the Checkout guest test against https://staging.fabrikam.com in Chrome to check the fix.

Release managers

Close the loop before release

A single confirmed rerun gives a clear answer before the release goes ahead.

Run the Login smoke test once to confirm this morning's fix before we release.

How it works

What PopdockAI does when you ask

You name the test and optionally a URL or browser, and your AI assistant runs it once after you confirm. If it fails, the failure is diagnosed straight away.

01

Ask

You name the test, with an optional start URL or browser.

Your AI tool

02

Confirm

It shows what will run, warns it acts on a live site, and waits for your yes.

No items found.

03

Run

It runs the test once, with no retries.

ghost-inspector-execute-test
ghost-inspector-get-test-result

04

Report

A pass comes with its run time, a failure with the failing step and console errors.

Your AI tool

What PopdockAI provides

The tools behind the answer

Ready made tools for Ghost Inspector and one secure connection to your AI tool. No code, no exports.

get-data

ghost-inspector-get-test

Returns the browser tests defined in Ghost Inspector, with the suite they belong to, their schedule and run settings, and whether the last run passed. Filter by suite, name, browser, region, creation date or current pass state, or fetch a single test by its Ghost Inspector ID.
run-action

ghost-inspector-execute-test

Runs a single Ghost Inspector test and reports whether it passed. The browser, region and start URL can be overridden for the one run, which is how you try a test against staging without editing it. Runs take a while, so set the immediate parameter to return as soon as the run is queued rather than waiting for the result.
get-data

ghost-inspector-get-test-result

Returns individual Ghost Inspector test runs, including whether the run passed, how long it took, and the test and suite it belongs to. Filter by test, suite, browser, date range, pass state, or a minimum execution time for finding slow runs. This is the tool to start from when investigating a failure.
get-data

ghost-inspector-get-test-step

Returns the individual steps executed within a Ghost Inspector test run, in sequence, with the command, the target element and whether the step passed. Pass a test result ID to see that run's steps. Filter to failing steps only, or to a single command such as click or assign, to find exactly where a test broke.
get-data

ghost-inspector-get-console-log

Returns the browser console output captured during a Ghost Inspector test run, flagging which entries were errors. Pass a test result ID to see that run's output, and filter to errors only or to a date range. Useful for telling an application bug apart from a flaky selector.
Read only.Nothing in Ghost Inspector Changes

This report is built from Get data tools only. PopdockAI applies the row, field and parameter rules your admin sets, and every query is written to the audit trail.

How Popdock AI secures your data

The outcome

Know if the fix worked after one run

Try PopdockAI free
Get a live demo

Related use cases

More ways to put this data to work

All Ramp use cases

One prompt template with infinite possibilities.

‍

Your AI assistant adapts its approach, tone, and capabilities to match each unique context while you maintain a single, manageable workflow.

Join forward-thinking companies that are transforming their operations with intelligent, secure AI automation.

Try PopdockAI Free
See Documentation