Skip to content
Giminger ConsultingDE

Test the prototype and its integration separately

Key takeaway

A clickable prototype answers usability questions. A separate integration test checks data shape, access and reliable handoff.

Lessons in this path
  1. Design an internal form around the current process
  2. Test the prototype and its integration separately
  3. Run acceptance checks with staff and IT

How it works

Build the trial workflow with fictional cases. Use an agreed testing environment for integration and document required fields, responses and failure states. Keep an identifiable request ID so repeated submissions can be recognized.

Worked example

When the target system stalls, a teammate clicks Submit again. The test should show whether a record already exists.

Why separate prototype and integration at all?

A prototype answers “do people want to work this way?”. An integration test answers “does the data arrive correctly and exactly once in the target system?”. Teams that tackle both at once often spend weeks on an interface for a form the department wants to redesign after the first test. Conversely, a prototype with test data looks finished although the real work, the handoff to the ERP, document management or ticket system, has not started.

Plan two separate milestones with their own acceptance. As a rough orientation, a prototype for a manageable form takes days, while integration takes weeks depending on the target system.

How do you test the interface step by step?

An interface (API) is the agreed technical door through which two programs exchange data. The test should check not only the normal case but especially what happens when things go wrong.

  1. Agree a test environment of the target system with IT or the vendor; never develop directly against production.
  2. Write down the data contract: mandatory fields, formats, lengths, allowed values, response codes.
  3. Give every handoff a unique request ID generated by the form before sending.
  4. Test the normal case, missing mandatory field, timeout, duplicate submission and target system maintenance.
  5. For each case, record what the user sees and what arrives in the target system.
  6. Have results confirmed by the person who owns the target system from a business perspective.

Which failure cases belong in every integration test?

The following checklist covers the most common causes of duplicate, lost or half-created records. It is deliberately system-neutral.

Failure cases and expected behaviour
CaseExpected behaviour in the toolExpected behaviour in the target system
Target system does not respondStatus “handoff pending”, no success messageNo record or exactly one
User clicks twiceSecond click shows existing recordExactly one record
Mandatory field rejected by targetSpecific message naming the fieldNo partial record
Target system under maintenanceRequest saved, handed off laterRecord after maintenance, once
Response arrives after timeoutStatus corrected afterwardsNo duplicate from retry

Going deeper: idempotency, queues and AI in the data flow

Idempotency means that a request sent several times has the same effect as one sent once. In practice, the request ID is stored as a unique key in the target system: if the same ID arrives again, the target returns the existing record instead of creating a new one. For HTTP APIs, an IETF draft describes a dedicated “Idempotency-Key” header field; many systems use their own equivalent mechanisms.

With unreliable target systems, a queue between form and target pays off: the form stores the confirmed request locally, and a background process hands it over with retries. Integration platforms such as n8n, Make, Zapier or Microsoft Power Automate provide building blocks for this, but they do not replace the data contract.

Important for AI-assisted tools: the AI call belongs before user confirmation, never in the handoff path. If the model is only called on submission, a retry may produce different text and the target receives a version nobody has seen.

Always hand off exactly the record the user confirmed and store it unchanged with a timestamp.

Example: leave requests and the HR system

A fictional logistics provider builds an internal web form for special leave and time off. The AI summarises the justification for the manager. The prototype with fictional cases is clickable after a few days and two teams try it; they want a calendar view and less free text.

Only then does integration with the HR system begin. Testing reveals that the HR system still creates the request after a timeout. Without a request ID, a second click would have created a duplicate that distorts the remaining-leave calculation. With the ID, the system recognises the retry and the form shows the existing request.

Common mistakes

  • Connecting the prototype directly to production “because it is just a test”.
  • Showing success as soon as the request is sent instead of waiting for the target system's confirmation.
  • Regenerating the AI text on submission instead of handing over the confirmed text.
  • Not writing a data contract and clarifying field formats only when errors occur.

Frequently asked questions

What if the target system has no API?

Then there are intermediate routes: file import, a database view or, as a stopgap, an email to a monitored mailbox. Automating the user interface (robotic process automation) is possible but fragile and should be planned deliberately as a transition.

Who owns the data contract?

Jointly the owner of the target system and the team building the tool. Changes to the contract should require both sides' agreement and be versioned.

Try it yourself

Test normal handoff, timeout and repeat submission on three fictional requests.

Check your result

The tool displays the right state without unintended duplicates.

Official documentation and sources

Practical guides and references