On BeamSec's phishing simulation and security training platform, I get involved while a feature is still a spec. I pin down the requirements, design the test cases and automate them in Playwright and TypeScript. I set up the environments I need myself, and when something breaks, I find the root cause.
@apiFeature:Booking API
CRUD lifecycle of a booking via RESTful Booker, including token-based auth
and what the API does when the token is missing.
# …# The token is the only thing standing between the public internet and someone# else's reservation, so its absence is asserted rather than assumed.Scenario:A write without a token is refusedGiven a booking exists with a total price of 150
When I try to update the booking without a token
Then the request should be refused as forbidden
And the booking total price should still be 150
import { expect } from'@playwright/test';
import { createBdd } from'playwright-bdd';
import { test, type World } from'../../fixtures/fixtures';
// …When('I try to update the booking without a token', async ({ booker, world }) => {
const id = fromWorld(world.bookingId, 'bookingId', 'Given a booking exists');
world.lastResponse = await booker.updateBookingUnauthenticated(id, { totalprice: 1 });
});
Then('the request should be refused as forbidden', async ({ world }) => {
const response = fromWorld(
world.lastResponse,
'lastResponse',
'When I try to update the booking without a token',
);
expect(response.status(), awaitresponseDetail(response)).toBe(403);
});
Then('the booking total price should still be {int}', async ({ booker, world }, price: number) => {
const id = fromWorld(world.bookingId, 'bookingId', 'Given a booking exists');
awaitexpectTotalPrice(booker, id, price);
});
// …async function expectTotalPrice(booker: BookerClient, id: number, price: number): Promise<void> {
const response = await booker.getBooking(id);
expect(response.status()).toBe(200);
const body = (await response.json()) as Booking;
expect(body.totalprice).toBe(price);
}
/** Puts the response body in the failure message, so a red run needs no re-run to diagnose. */async function responseDetail(response: {
status(): number;
text(): Promise<string>;
}): Promise<string> {
return`unexpected status ${response.status()}, body: ${(await response.text()).slice(0, 300)}`;
}
/** Typed wrapper over Playwright's `request`. Nothing here asserts, which is what makes the retry safe. */exportclass BookerClient {
constructor(privatereadonly request: APIRequestContext) {}
/**
* The only retried request in the suite. It is a precondition rather than a subject
* under test, and it is where a sandbox cold start turns a healthy run red.
*/asyncrequestToken(): Promise<string> {
const attempts = env.api.tokenRetries;
const failures: string[] = [];
for (let attempt = 1; attempt <= attempts; attempt++) {
try {
const response = await this.request.post('/auth', {
data: env.api.credentials,
timeout: env.api.timeout,
});
if (response.ok()) {
const body = (await response.json()) as { token?: string; reason?: string };
if (body.token) return body.token;
failures.push(`attempt ${attempt}: 200 but no token (reason: ${body.reason ?? 'none'})`);
} else {
failures.push(`attempt ${attempt}: HTTP ${response.status()}`);
}
} catch (error) {
failures.push(`attempt ${attempt}: ${(error as Error).message}`);
}
if (attempt < attempts) {
// Linear backoff: a cold-starting dyno needs seconds, not milliseconds.awaitnewPromise((resolve) => setTimeout(resolve, attempt * 1_000));
}
}
thrownewError(
`Could not obtain an auth token from ${env.api.baseURL} after ${attempts} attempts:\n` +
failures.map((line) => ` ${line}`).join('\n'),
);
}
// …/**
* Its own method rather than an optional token argument: with an optional argument an
* undefined token would silently turn an authorized test into this one.
*/updateBookingUnauthenticated(id: number, patch: Partial<Booking>): Promise<APIResponse> {
return this.request.patch(`/booking/${id}`, { data: patch, timeout: env.api.timeout });
}
// …
}
The Playwright suite that checks barandoganbas.net every morning. It catches console errors and broken links, runs axe against WCAG 2.2 AA in both themes, compares the English and Turkish pages, and reproduces the six bugs planted in the Bug Hunt Lab.
How it is built
Page objects and fixtures. An automatic fixture fails any test that hits a console error or a 4xx/5xx response.
Locators by role and label, web-first assertions and no fixed waits.
Strict TypeScript and type-aware ESLint run before the tests in GitHub Actions.
Every run publishes its HTML report to GitHub Pages.
Multi-tenant cybersecurity awareness and phishing simulation platform with email security and AI agent modules.
Reported 410+ defects in LDAP/Azure AD sync, access control, and LLM agentic workflows; 370+ verified as fixed.
Replaced repetitive manual regression in release validation with Playwright/TypeScript UI and API suites for access control, authentication, and tenant isolation, run in parallel behind a Jenkins CI gate.
Five examples of this work, from load testing to LLM agent evaluation, are under Selected work ↑
2024 · Military service, Turkish Armed Forces
AUG 2023 – FEB 2024 Remote
Hypnotes
Test Automation Engineer
Practice management software for therapists.
Built an API automation framework from scratch in Java and Rest Assured to test token-based auth boundaries.
Integrated Selenium regression suites into Jenkins CI/CD, which shortened regression cycles from days to hours.
APR – AUG 2023 California, USA Remote, Contract
Hyrai
Software Test Engineer
Implemented a BDD automation framework (Java, Selenium, Cucumber, Gherkin) for complex business flows, and reviewed requirements early in the development lifecycle.
Active DirectoryAzure AD (Entra ID)AD FS (SSO)LDAPGPO
Programming languages
TypeScriptJavaScriptJava
CI/CD and test management
JenkinsGitHub ActionsGitJiraXray
Infrastructure and data
DockerProxmoxRabbitMQLinuxPostgreSQLMongoDBMySQL
qa-lab.spec.tsqueued
Bug Hunt Lab
There are six bugs in this signup form. Try the edge cases and see which ones you can reproduce. Your findings appear in the defect list as you go, and the test design behind each one is inside: equivalence partitioning, boundary value analysis, state transition, decision tables and error guessing.
An intentionally faulty form. All entries stay in this browser; no account is created.