cognita skillscognita cap

cognita cap

Screenshots for every purpose, taken the same way every time.

Ask for screenshots in plain words: for the website, for a user guide, or as evidence for a test case. cognita cap signs in, walks the steps, takes the shots and writes the document. A flow it walked once is saved, so the next capture, or the same screens for another purpose, takes minutes.

  • Website
  • User manual
  • SIT · UAT · UIT
  • Info-Sec evidence
evidence · step 2
An evidence screenshot with a stamp above the page: capture time, environment, signed-in role, test case, step and URL, and two numbered callouts on the release dialog
A UAT evidence shot: the stamp says when, where, as whom and for which step; the callouts mark what the step is about.
Three purposes

One way of capturing, three kinds of output.

The screenshots on this page come from one flow, "release a package the firewall is holding", walked against a demonstration installation of cognita dev with fictional data.

Test evidence

SIT, UAT, unit and information security testing

Every step keeps the raw screenshot exactly as the browser drew it and a stamped copy, both hashed. The document follows a standard test-evidence layout and leaves the result to the tester.

  • A header with project, phase, test case, environment, build and tester
  • Per step: action, expected result, a blank actual result and Pass, Fail, Blocked or Not run for the tester to tick
  • The stamped screenshot with its SHA-256, the raw copy's hash, the time and the URL
  • A sign-off table; Word and PDF
  • Highlights and callouts on the stamped copy only; masks black out customer data on both
docs/uat-release-evidence.pdf · page 1
The first page of a test evidence document: the header table, step 1 with action, expected result, blank actual result and result boxes, and the stamped screenshot
User manual

Numbered callouts, drawn where they belong

Each callout is placed on the element the flow names, numbered, and listed under the picture in the guide with what it is. The guide comes out in Word and PDF, one section per step.

  • The step's action as the instruction, its expected result as the outcome
  • On-screen swaps, such as a lab address shown as the product's own
  • A warning when a callout target is off the screen, instead of a silent miss
manual · step 2
A manual screenshot of the release dialog with callout 1 on the reason and callout 2 on the expiry
Website

Clean images, and a gate that refuses real names

Website shots are WebP with nothing drawn on them. Callouts become hotspot positions in a manifest the page reads, the way this site's product tours place theirs.

  • Term swaps run on screen before the shot
  • The leak gate reads the page's visible text and refuses the shot if a denied name appears, saying which and where
  • The deny list lives on your machine, never in the repository
  • cap export writes the images and the manifest straight into a site folder
website · org-chart.webp
A clean website screenshot of the cognita grc org chart with fictional departments and people
cap inspect

Map the page first, so the steps work the first time.

Before writing steps for a screen it has not seen, cap lists every button, field, link, tab and heading on it, each with a selector checked to match exactly one element, and draws the numbers on a screenshot.

inspect/artifacts-firewall.png
The firewall page with every interactive element outlined in blue and numbered
Terminal — cap inspect
cap inspect /artifacts/firewall --as head
cognita dev · /artifacts/firewall · 33 elements
 17  button   Firewall           role=button[name="Firewall"]
 23  heading  Firewall           role=heading[name="Firewall"]
 24  tab      Quarantine (11)    role=tab[name="Quarantine (11)"]
 27  textbox  Component or…      label=Component or repository…
 28  combobox Rule               label=Rule
 33  button   Actions for spring… role=button[name="Actions for …"]
map: inspect/artifacts-firewall.png
Selectors come from what a screen reader announces (labels, roles and names), so they survive a restyle.
Saved flows

Walk it once, keep it, reuse it.

A flow is a short list of steps and shots, kept in the repository with the application's profile: how to sign in, what to swap on screen, what must never appear. Run as another purpose, the same flow gives the website shots, the manual or the evidence.

flows/dev-demo/firewall-release.json
{ "title": "Release a package the firewall is holding",
  "role": "head",
  "steps": [
    {"goto": "/artifacts/firewall"},
    {"scroll_to": "text=lodash@4.17.4", "block": "center"},
    {"shot": {"name": "held-components", "caption": "…",
              "action": "…", "expected": "…", "callouts": […]}},
    {"click": "role=button[name=\"Actions for lodash@4.17.4\"]"},
    {"click": "role=menuitem[name=/Release/]"},
    {"fill": "label=Reason", "value": "…"},
    {"shot": {"name": "release-dialog", "caption": "…"}}
  ] }
Terminal — cap
cap new uat-release --purpose evidence --phase UAT --kind test \
    --profile dev-demo --case-id TC-UAT-ART-001 --tester "Lena Okafor"
cap login head
head: signed in
cap run dev-demo/firewall-release
   1. held-components   1280x894  shots/held-components.png
   2. release-dialog    1280x894  shots/release-dialog.png
   3. dashboard         1280x894  shots/dashboard.png
cap doc
   docs/uat-release-evidence.docx · docs/uat-release-evidence.pdf
Sign-in follows the profile's recipe, authenticator codes included; credentials stay in the job's credentials file and are never printed.
Safety

Pointed at a real environment, it only looks.

RuleWhat cap does
Environment kindEvery job is demo, test or production. Test and production jobs open only their own host and any you add.
ProductionNeeds a named authoriser and a reason. Only navigation runs: go to, wait, scroll, hover, resize, shot, and clicks marked as navigation. Anything else is refused before the first step; sign-in is the only exception.
Capture onlyNo Pass or Fail anywhere. The evidence document leaves the actual result and the result for the tester.
Evidence untouchedNo on-screen swaps in evidence; the raw copy is kept as drawn and both copies are hashed.
Leak gateWebsite shots are refused when the page shows a denied name, with the name and the text around it.
Expired sessionsA step that lands on the sign-in page stops the run, instead of filing a sign-in screen as evidence.
Capture logEvery job records who ran what, when, against which URL, and the authorisation, in a log beside the shots.
SecretsCredentials pass to the browser as environment variables, never on a command line, never on screen, never committed.

The browser runs in a locked-down container on your machine: read-only, all capabilities dropped, only the job folder and the runner mounted. Applications on localhost are forwarded into it, so they see the same address a user's browser sends.

cognita cap

Bring one test case to the demo.

We walk it once, hand you the evidence document, then run the same flow as a manual page and a website shot.

Screenshots on this page come from a demonstration installation with fictional data.