特拉华州 (Delaware)
Wilmington 19801 · Dover 19901 · Newark 19711
0%
确定性 Mulberry32 种子驱动,覆盖 24 个国家、全美 51 州/特区(含 5 大免税州)与监管安全电话号段。左侧配置边界压测条件,右侧秒出 Playwright / Stripe / SQL / cURL 代码。
{
"meta": {
"service": "AddressQA",
"seed": "qa-checkout-01",
"country": "US",
"countrySlug": "us",
"state": "DE",
"taxFree": false,
"phoneMode": "safe",
"boundary": "normal",
"count": 1
},
"fixtures": [
{
"id": "qa-checkout-01-1-US-DE",
"index": 1,
"seed": "qa-checkout-01",
"boundary": "normal",
"recipient": {
"fullName": "Gabriel Mitchell",
"nativeName": "Gabriel Mitchell",
"displayName": "Gabriel Mitchell",
"firstName": "Gabriel",
"lastName": "Mitchell",
"email": "[email protected]"
},
"address": {
"line1": "1697 N King St",
"line1Native": "1697 N King St",
"line2": null,
"city": "Wilmington",
"cityNative": "Wilmington",
"state": "DE",
"stateName": "Delaware",
"postalCode": "19801",
"zipPlus4": "19801-3012",
"country": "US",
"countryName": "United States",
"formatted": "1697 N King St, Wilmington, DE 19801, US"
},
"phone": {
"countryCode": "US",
"dialCode": "+1",
"areaCode": "302",
"regionCode": "DE",
"regionName": "Delaware",
"city": "Wilmington",
"mode": "safe",
"regulatorSafe": true,
"regulatorAuthority": "NANPA & USPS",
"e164": "+13025550199",
"international": "+1 302-555-0199",
"national": "(302) 555-0199",
"rfc3966": "tel:+1-302-555-0199",
"digitsOnly": "3025550199"
},
"qaFlags": {
"taxFreeUsState": true,
"leadingZeroPostal": false,
"streetLength": 14,
"hasUnicode": false,
"hasLine2": false,
"regulatorSafePhone": true,
"postalRequired": true
}
}
]
} // Generated by AddressQA (seed: qa-checkout-01, country: US, boundary: normal)
import { test, expect, type Page } from '@playwright/test';
const checkoutFixture = {
"fullName": "Gabriel Mitchell",
"email": "[email protected]",
"phoneE164": "+13025550199",
"line1": "1697 N King St",
"line2": "",
"city": "Wilmington",
"state": "DE",
"postalCode": "19801",
"country": "US"
};
async function fillCheckoutForm(page: Page, data: typeof checkoutFixture) {
await page.getByLabel(/full name/i).fill(data.fullName);
await page.getByLabel(/email/i).fill(data.email);
await page.getByLabel(/phone/i).fill(data.phoneE164);
await page.getByLabel(/address line 1|street/i).fill(data.line1);
if (data.line2) await page.getByLabel(/address line 2|apt|suite/i).fill(data.line2);
await page.getByLabel(/city/i).fill(data.city);
await page.getByLabel(/state|region|province/i).fill(data.state);
if (data.postalCode) await page.getByLabel(/zip|postal/i).fill(data.postalCode);
}
test('checkout validation (US / normal)', async ({ page }) => {
const target = checkoutFixture;
await page.goto('/checkout');
await fillCheckoutForm(page, target);
await page.getByRole('button', { name: /continue|pay/i }).click();
await expect(page.getByTestId('order-summary-postal')).toHaveText(target.postalCode || 'N/A');
}); {
"shipping": {
"name": "Gabriel Mitchell",
"phone": "+13025550199",
"address": {
"line1": "1697 N King St",
"line2": null,
"city": "Wilmington",
"state": "DE",
"postal_code": "19801",
"country": "US"
}
},
"billing_details": {
"name": "Gabriel Mitchell",
"email": "[email protected]",
"phone": "+13025550199",
"address": {
"line1": "1697 N King St",
"line2": null,
"city": "Wilmington",
"state": "DE",
"postal_code": "19801",
"country": "US"
}
},
"metadata": {
"qa_seed": "qa-checkout-01",
"qa_boundary": "normal",
"us_tax_free_state": "true",
"regulator_safe_phone": "true"
}
} -- AddressQA deterministic SQL seed (qa-checkout-01)
INSERT INTO qa_address_fixtures (fixture_id, seed, full_name, email, phone_e164, phone_national, street_line1, street_line2, city, region_code, postal_code, country_code, tax_free_us_state) VALUES ('qa-checkout-01-1-US-DE', 'qa-checkout-01', 'Gabriel Mitchell', '[email protected]', '+13025550199', '(302) 555-0199', '1697 N King St', NULL, 'Wilmington', 'DE', '19801', 'US', TRUE); # Deterministic AddressQA Edge API request
curl -sS "https://addressqa.com/api/v1/fixtures?country=US&state=DE&seed=qa-checkout-01" | jq .
# Export directly as Excel-safe CSV or Stripe Checkout JSON:
curl -sS "https://addressqa.com/api/v1/fixtures?country=US&state=DE&seed=qa-checkout-01&format=stripe"
curl -sS "https://addressqa.com/api/v1/fixtures?country=US&state=DE&seed=qa-checkout-01&format=csv" -o fixtures-qa-checkout-01.csv fixture_id,seed,full_name,email,phone_e164,phone_national,street_line1,street_line2,city,state,postal_code,country,tax_free_us_state,boundary
qa-checkout-01-1-US-DE,qa-checkout-01,Gabriel Mitchell,[email protected],+13025550199,(302) 555-0199,1697 N King St,,Wilmington,DE,19801,US,true,normal 输入任意邮编或号码,即时验证官方正则表达式、前导零丢失风险、全角 NFKC 归一化,以及 NANPA 555 / Ofcom 监管安全测试号段。
针对每个免税州的真实邮编、单一/重叠区号、前导零陷阱与地方税例外提供独立工程基准页。
Wilmington 19801 · Dover 19901 · Newark 19711
0%
Portland 97204 · Salem 97301 · Eugene 97401
0%
Manchester 03101 · Concord 03301 · Nashua 03060
含 03xxx 前导零邮编边界用例
Billings 59101 · Helena 59601 · Missoula 59801
0% general (resort areas may levy local resort tax)
Anchorage 99501 · Juneau 99801 · Fairbanks 99701
0% in Anchorage/Fairbanks (up to ~7.5% in select boroughs like Juneau)
NANPA & USPS · +1 <NPA> 555-0100 .. 555-0199
Ofcom & Royal Mail PAF · 07700 900000–900999
MIC Japan & Japan Post · 090-0000-xxxx
CNA / NANPA & Canada Post · +1 <NPA> 555-0100 .. 555-0199
Bundesnetzagentur (BNetzA) & Deutsche Post · +49 30 23125 xxx
Arcep & La Poste · +33 6 39 98 xx xx
ACMA & Australia Post · +61 491 570 xxx
NCC & Chunghwa Post · +886 900 000 xxx
IMDA & SingPost · +65 8000 0xxx
OFCA & Hongkong Post · +852 5500 0xxx
MSIT & Korea Post · +82 10-0000-xxxx
ACM & PostNL · +31 6 0000 xxxx
深入拆解无种子随机数据引发 CI 间歇性失败的根因,并演示如何用 AddressQA 固定种子接入 Playwright 参数化测试矩阵。
区分“绝对 0% 州”与“含地方税例外州”,一键导出标准 Stripe shipping 与 billing_details 测试对象。
为什么不能在测试库里随手填随机手机号?对照全球通信监管局官方保留号段表,让自动化测试既真实又零风险。
覆盖 24 个核心市场最易导致下单失败的五类邮编边界条件,附可直接落地的校验正则。