intermediate·10 min read·Updated

AI in API Automation Testing: The Project Assistant (Part 2)

The project assistant prepares a change on a card, and nothing happens unless you press it. Learn to read offers, create tests and workflows from a sentence, and teach it notes you can take back.

This is lesson 9.31, part 2, of Shift-Left API in Depth, the product track of the learning center. It follows part 1, which covered asking. It is in every edition and needs an AI provider. Each change it offers keeps that feature's own edition and permissions, just as its button does. On a trial, questions share the day's AI allowance with test generation.

Who presses the button in AI in API automation testing?

The key question for AI in API automation testing is who makes the change. Here, the assistant prepares it, and you press it or you do not. Before showing an offer, it builds the change and checks that it can be done. If it cannot, you get a sentence saying why. Otherwise, a card shows what changes, where, and before and after.

There is no reject button, because a card does nothing until you press it. If you want something different, say so, and a new card is made. A card is accepted once. If its test or workflow changed after the card was made, the offer is refused as stale, and you ask again.

How do you read a change offer?

In the video, the assistant is asked to rename the failed test from part 1. The card says which test it changes and shows the old name struck through beside the new one. A line under the button says that only the listed settings change. Once pressed, the outcome stays on the card.

A change to checks is shown line by line: a plus for a check added, a minus for one removed and a tilde for one replaced. Read every line, because a removed check means a test that catches less. In the video, the status check changes to 201, as the specification documents. A fix to a failing test, outside production, is applied and the test runs again. The outcome says whether it now passes, still fails the same way or fails differently. The change is recorded as yours, and you can ask for the old checks back.

What can it create from a sentence?

  • A test. Ask for an order with quantity zero that expects a 400. The test goes through the same quality checks as a generated one before it is offered, and its status check comes from your request, never from a response. Creating it runs nothing.
  • A workflow. Ask it to create an order, then fetch it. The card shows the steps in order, the test each step calls and the value passed between them. A step with no test is listed by name as left out, not filled with a guess. The workflow runs only when you run it, on the visual workflow canvas.

What does it never do from a conversation?

It never deletes, never handles credentials and never runs production from a conversation.

How do you teach it, and take a note back?

Under every answer are thumbs up and thumbs down. A bare thumbs down teaches nothing, so the assistant asks what it should have said. Type a note, such as "always tell me which environment a run went to", and click Remember. You can also teach it in a message that starts with "remember" or "always".

A note can change how it explains things. It can never make it skip a lookup, act without you, treat a failure as a pass or hold a password. If a note cannot be learned, you get the reason.

What I've learned about this project lists the ratings from the last thirty days and each note, with how often it was said. Notes are shared by everyone in the project and never cross into another. Use the bin to stop using one.

What settings and limits apply?

Administrators find AI Settings under Platform settings, then Integrations. There you can control whether the assistant reads unsaved test edits, with credentials removed, and see how the assistant is doing over 7, 30 or 90 days. In a project's AI Generation settings, Point out what is worth a look decides whether the pill from part 1 appears; it uses no AI.

Asking needs permission to see tests. Pressing a card needs the permission that action needs; without it, nothing changes. If the AI provider fails, your question stays so you can ask again. Answers and offers vary from run to run, so if a card does not come, ask again.

Before you press a card:

  1. Check it changes the test you mean, and read any warning on the card.
  2. Read every plus and minus.
  3. Check the environment.
  4. Read the line under the button.

Try it yourself

With your own AI key, rename a test through a card, create a test from a sentence, give an answer a thumbs down with a note, then take the note back. The video's project is built from the sandbox store specification.

Recap

  • Every change is a card that waits for you.
  • It can create tests and workflows from your words, and names the steps it leaves out.
  • It never deletes, handles credentials or runs production from a conversation.
  • Notes belong to one project, are visible and can be taken back.

Next, work with many requirement documents. See also the help page on project assistant actions.

Hands-on lab

Try it: Ask the assistant to rename a test, read the card and press it. Create a test from a sentence. Then give an answer a thumbs down, say what it should have said, and take that note back from What I've learned.

Enter your email to open the lab steps. One unlock opens every lab in the learning center.

No spam. Protected by reCAPTCHA — Google Privacy & Terms.

Frequently asked questions

Who is in control in AI based API testing with this assistant?+

You are. The assistant prepares a change on a card that shows what would change, and nothing happens unless you press it. A card is accepted once, and it uses the same permissions and edition rules as the product's own button.

What will this AI driven API testing assistant never do from a conversation?+

It never deletes, never handles credentials, and never runs production from a conversation.

Can you remove something the assistant has learned?+

Yes. Open What I've learned about this project and use the bin beside a note. The note is retired rather than erased, so teaching it again brings it back. Notes are shared within one project and do not cross into another.

Read more on the blog