Skip to content
Back to skills

Testing Nonfunctional

ASecurity

Designs non-functional tests traced to requirements. Generates k6 performance scripts with thresholds from the requirement (p95, error rate), WCAG 2.2 AA accessibility checks and OWASP ASVS 5.0 security tests selected by feature. Use when performance, accessibility or security needs testing. Triggers include load testing, k6, WCAG, a11y, security testing; Turkish "performans testi", "yük testi", "erişilebilirlik testi", "güvenlik testi".

  • 3 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 22, 2026
testingpythongobashtestingapisecurityperformance

Works with

  • api

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned November 18, 2026

npx -y skills add alinurettin/testskills --skill testing-nonfunctional --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Testing Nonfunctional?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Testing Nonfunctional
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alinurettin-testing-nonfunctional/badge)](https://www.skillsdirectory.com/skills/alinurettin-testing-nonfunctional)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: testing-nonfunctional
description: Designs non-functional tests traced to requirements. Generates k6 performance scripts with thresholds from the requirement (p95, error rate), WCAG 2.2 AA accessibility checks and OWASP ASVS 5.0 security tests selected by feature. Use when performance, accessibility or security needs testing. Triggers include load testing, k6, WCAG, a11y, security testing; Turkish "performans testi", "yük testi", "erişilebilirlik testi", "güvenlik testi".
license: MIT
metadata:
  suite: qa-suite
  version: "0.11.3"
---

# Testing non-functional requirements

Non-functional requirements fail silently. Nobody files a bug for "a bit slow", "not usable with a keyboard", or "another user's order is visible by changing the ID", until a customer, an auditor or an attacker does. This skill makes them **testable, traced and repeatable**:
- numbers from the requirement become thresholds;
- standards (WCAG 2.2, ASVS 5.0) become selected checklists;
- every check becomes a QA Suite test case linked to its REQ.

## Language
Match the user's language. `scripts/nfr_checklist.py --lang tr|en` writes Turkish or English drafts. The WCAG criterion names stay in their official English form.

## Reading plan
Read only the area you are working on:
- `references/performance.md`
- `references/accessibility.md`
- `references/security.md`

## Safety and scope (all areas)
- Load tests and active security checks only against **environments the user owns and is authorised to test**, never production or third parties without written approval. Confirm this before running anything.
- Only test accounts and test tokens, passed through environment variables.
- Installing tools downloads files (k6, `@axe-core/playwright`, OWASP ZAP). **Ask the user first.**

## Workflow

```
- [ ] 1. Find the NFRs (requirements.json quality_characteristic, derived NFRs, NFR questions)
- [ ] 2. Missing numbers/levels → questions (never invent thresholds silently)
- [ ] 3. Map areas to requirements (one REQ for everything hides gaps); generate drafts per area (k6 spec / WCAG / ASVS)
- [ ] 4. Review and tailor; merge into qa/test-cases.src.md; regenerate JSON
- [ ] 5. Run (if agreed) and record results in qa/results.json; findings → defect reports
```

### 1–2. Find the NFRs and their numbers
Look for the following:
- `quality_characteristic` values in `qa/requirements.json`: performance-efficiency, interaction-capability, security, reliability.
- Derived NFRs and questions from the analysis, such as the UNMEASURED linter findings.

For each NFR, confirm the measurable target:
- **Performance:** percentile, load level and environment.
- **Accessibility:** WCAG 2.2 AA, or a stated exception.
- **Security:** the ASVS level (L1, L2 or L3).

If a target is missing, raise a question with a proposed default. Do not test against an invented target without marking it as an assumption.

### 3. Generate drafts
**Performance (k6).** Write a spec such as `assets/spec-examples/k6-perf.json` to `qa/design/DS-###-perf.json`:
- the requests of the journey (or a weighted `mix` of journeys),
- the load target: journeys or requests per second (open model), or concurrent users with think time or pacing (closed model),
- the profile,
- the thresholds from the requirement, including the error rate.

Then:
```bash
python scripts/generate_k6.py qa/design/DS-010-perf.json --out perf/DS-010.k6.js
```
The script prints the workload model. Exit 2 means the requirement lacks an input (target, error budget, think time): ask, do not guess. Pass each `QUESTION` line on to the user.
Create one QA test case for each performance requirement (category `performance`). Its step runs the k6 script, and its expected result names the thresholds.

**Map areas to requirements before generating WCAG and ASVS drafts; one REQ for everything hides gaps.** A single `--req` hangs dozens of tests off one REQ, so coverage looks complete and the RTM cannot show which accessibility or security requirement is thin. Put an `areas` section into `qa/req-map.json`:
```json
{"default": "REQ-012", "areas": {"wcag": "REQ-012", "forms": "REQ-014", "1.4.3": "REQ-015", "asvs": "REQ-013", "V6": "REQ-016", "asvs:authz": "REQ-017"}}
```
Keys are the kind (`wcag`, `asvs`), a WCAG criterion (`1.4.3`), an ASVS chapter (`V6`), a feature key selected with `--features` (`forms`, `auth`; prefix `wcag:` or `asvs:` to scope it to one kind), or `axe` for the automated scan. Precedence: criterion/chapter > feature > kind > `default` > `--req`. The axe test without an `axe` key traces to the requirements of the criteria it covers. A test without a requirement stops the script (exit 2) with the unmapped criteria or chapters; `--req` still works as the fallback.

**Accessibility (WCAG 2.2 A/AA):**
```bash
python scripts/nfr_checklist.py wcag --list-features
python scripts/nfr_checklist.py wcag --features forms,errors,status,auth --page "Sepet" --req-map qa/req-map.json --tests qa/test-cases.json --lang tr --out qa/design/a11y-sepet.src.md
```
This produces one automated axe test (the machine-checkable criteria) plus one manual test per criterion needing judgement. Run it per key page or journey.

**Security (ASVS 5.0):**
```bash
python scripts/nfr_checklist.py asvs --features auth,authz,api,payment --level L2 --req-map qa/req-map.json --tests qa/test-cases.json --lang tr --out qa/design/security.src.md
```
This produces one test per test idea of the chapters matching the features, with polarity negative and category `security`. Add `--baseline` once per release to include the general chapters that apply to every application (V12 TLS, V13 configuration, V15 architecture and dependencies, V16 logging).

### 4. Review and merge
The drafts are generic by design. For each test:
- make the step concrete for the page or API: which field, which ID to tamper with, which role;
- drop the items that do not apply, and justify them in the summary;
- adjust the priority to risk. Access control, authentication and payment are usually high.

Then append the tests to `qa/test-cases.src.md`, run `qa_compact.py`, and re-run the RTM. Generate one draft at a time with `--tests`, so the TC numbers continue and do not collide.

### 5. Run and record
- **Performance:** `k6 run ...` (exit code 99 means a threshold failed), then `python scripts/k6_results.py <spec id>-summary.json --out qa/results.json --tests qa/test-cases.json`. A smoke run is recorded as not-run, an incomplete run as blocked.
- **Accessibility:** the axe test runs in the Playwright suite; the manual criteria are assessed by a person with the toolkit in `references/accessibility.md`.
- **Security:** API-level checks can be automated with Playwright's `request` fixture; the rest are manual.

Record each result in `qa/results.json`. Findings become defect reports through the `reporting-test-results` skill. For WCAG findings add the criterion; for security findings add the ASVS IDs, and mark them confidential.

## Files
- `scripts/generate_k6.py`: k6 script and workload model from a performance spec (open or closed model, journey mix, data file, steady-state thresholds, auth from the environment).
- `scripts/k6_results.py`: k6 summary → verdict in `qa/results.json` under the test case.
- `scripts/nfr_checklist.py`: WCAG 2.2 A/AA and ASVS 5.0 test-case drafts in compact format (TR/EN), selected by feature, with REQ links per criterion, chapter or feature (`--req-map`).
- `assets/wcag22-aa.json`: the 55 A/AA success criteria with features, automated or manual method, and checks (TR/EN).
- `assets/asvs5-chapters.json`: ASVS 5.0 chapters V1–V17 with feature triggers and test ideas (TR/EN).
- `assets/spec-examples/k6-perf.json`, `assets/spec-examples/k6-mix.json`: example performance specs (one journey; weighted mix with test data).
- `references/performance.md`, `references/accessibility.md`, `references/security.md`.

Files in this skill

  • SKILL.md7 KB
  • assets/asvs5-chapters.json15.8 KB
  • assets/spec-examples/k6-perf.json703 B
  • assets/wcag22-aa.json21.6 KB
  • references/accessibility.md3.4 KB
  • references/performance.md3.6 KB
  • references/security.md3.8 KB
  • scripts/generate_k6.py7.2 KB
  • scripts/nfr_checklist.py16 KB
  • scripts/qa_compact.py18.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.