Testing comparisons

API testing vs. browser testing

Choose an API or browser test for a missing order. Compare the server response with the rendered list and put the assertion where the defect becomes visible.

Should this workflow be covered at the HTTP boundary, through the user interface, or both?

Choose an API test for response structure, permissions and state transitions available at the HTTP boundary. Choose a browser test for interactions and rendered results that users rely on. If the failure could occur in either layer, use one known fixture so a response and a screen capture tell a coherent story.

Trace a missing row from response to screen

Seed three orders, two of them open. Request the open-orders endpoint and compare its IDs with the fixture. Next apply the matching filter in the browser, wait for the rendered result and read the two visible IDs. If the response has both and the page displays one, the browser evidence narrows the investigation to what happened after the response.

API testing vs. browser testing
QuestionAPI evidenceBrowser evidence
Did the filter reach the service?Request parameters and filter responseUser action and recorded request
Can this role see both orders?Returned IDs for the roleVisible rows under that account
Did pagination hide one record?Page data, counts and continuation valuesRendered navigation and the next page
Did a styling change break the control?The endpoint can still respond correctly.An actual user can locate, operate and read the filter.

Preserve the independent expectation

Use known order IDs or a fixture manifest as the expected set. Comparing the UI only with the last HTTP response can let the same server error pass both checks. Include the signed-in role, pagination settings and application build in the report so another engineer can reproduce which collection the user should see.

Primary documentation

Your next release starts here

Keep building.
Put testing to work.

Give Cue April your next testing challenge. Let your AI quality lead coordinate the checks, so your team can focus on what comes next.

Create account

Create your account, connect a repository and review your proposed setup before approving a run.