{"id":7760,"date":"2026-11-25T16:30:22","date_gmt":"2026-11-25T09:30:22","guid":{"rendered":"https:\/\/alldataint.com\/articles\/?p=7760"},"modified":"2026-11-25T16:31:18","modified_gmt":"2026-11-25T09:31:18","slug":"automated-api-testing-menggunakan-postman","status":"publish","type":"post","link":"https:\/\/alldataint.com\/articles\/automated-api-testing-menggunakan-postman\/","title":{"rendered":"Automated API Testing Menggunakan Postman\u00a0"},"content":{"rendered":"\n<p><em>Pengujian API tanpa manual testing: Collection Runner, assertion, Pre-request dan Post-response Script<\/em>&nbsp;<\/p>\n\n\n\n<p>Kategori: Technical Tutorial | Target pembaca: QA Engineer, Software Tester&nbsp;<\/p>\n\n\n\n<p>Menguji API secara manual berarti mengirim request satu per satu, membaca response, lalu menilai sendiri apakah hasilnya benar. Cara ini cukup untuk eksplorasi, tetapi cepat menjadi beban saat endpoint bertambah dan setiap rilis perlu diuji ulang (regression testing). Hasilnya juga bergantung pada ketelitian orang yang menguji.&nbsp;<\/p>\n\n\n\n<p>Postman memungkinkan kita menulis pengecekan sebagai kode JavaScript yang berjalan otomatis setelah setiap request. Dikombinasikan dengan <strong>Collection Runner<\/strong>, ratusan request dapat dijalankan sekaligus dengan hasil lulus atau gagal yang jelas.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"906\" height=\"531\" src=\"https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2026\/11\/image-5.png\" alt=\"\" class=\"wp-image-7761\" srcset=\"https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2026\/11\/image-5.png 906w, https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2026\/11\/image-5-300x176.png 300w, https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2026\/11\/image-5-768x450.png 768w\" sizes=\"(max-width: 906px) 100vw, 906px\" \/><\/figure>\n\n\n\n<p><em>Gambar 1. Ilustrasi pertumbuhan waktu uji manual dibanding otomatis seiring bertambahnya request.<\/em>&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Konsep Dasar Script di Postman<\/strong>&nbsp;<\/h2>\n\n\n\n<p>Setiap request memiliki dua tempat untuk script, pada tab <strong>Scripts<\/strong> (pada Postman versi lama bernama <strong>Pre-request Script<\/strong> dan <strong>Tests<\/strong>):&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Pre-request Script<\/strong> berjalan sebelum request dikirim. Dipakai untuk menyiapkan data, membuat nilai acak, menghitung tanda tangan, atau mengambil token.\u00a0<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Post-response Script<\/strong> (tab Tests) berjalan setelah response diterima. Dipakai untuk assertion dan menyimpan nilai dari response.\u00a0<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"906\" height=\"408\" src=\"https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2026\/11\/image-7.png\" alt=\"\" class=\"wp-image-7763\" srcset=\"https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2026\/11\/image-7.png 906w, https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2026\/11\/image-7-300x135.png 300w, https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2026\/11\/image-7-768x346.png 768w\" sizes=\"(max-width: 906px) 100vw, 906px\" \/><\/figure>\n\n\n\n<p><em>Gambar 2. Urutan eksekusi: Pre-request, kirim request, terima response, lalu Post-response.<\/em>&nbsp;<\/p>\n\n\n\n<p>Semua script memakai objek pm, yaitu API Postman. Beberapa yang paling sering dipakai:&nbsp;<\/p>\n\n\n\n<p><strong>Tabel 1. Fungsi `pm` yang umum<\/strong>&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Objek \/ fungsi<\/strong>&nbsp;<\/td><td><strong>Kegunaan<\/strong>&nbsp;<\/td><\/tr><tr><td>pm.test(nama, fn)&nbsp;<\/td><td>Mendefinisikan satu test case&nbsp;<\/td><\/tr><tr><td>pm.expect(nilai)&nbsp;<\/td><td>Assertion bergaya Chai (.to.eql, .to.be.above, dst.)&nbsp;<\/td><\/tr><tr><td>pm.response.json()&nbsp;<\/td><td>Mengambil body response sebagai objek&nbsp;<\/td><\/tr><tr><td>pm.response.code \/ responseTime&nbsp;<\/td><td>Status code dan waktu respons&nbsp;<\/td><\/tr><tr><td>pm.environment.set\/get&nbsp;<\/td><td>Menyimpan dan membaca variabel environment&nbsp;<\/td><\/tr><tr><td>pm.collectionVariables.set\/get&nbsp;<\/td><td>Variabel level collection&nbsp;<\/td><\/tr><tr><td>pm.variables.get&nbsp;<\/td><td>Membaca variabel dari cakupan mana pun&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Menulis Assertion di Post-response Script<\/strong>&nbsp;<\/h2>\n\n\n\n<p>Contoh berikut menguji endpoint GET \/users\/1. Tiap pm.test muncul sebagai satu baris hasil pada tab <strong>Test Results<\/strong>.&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pm.test(\"Status code adalah 200\", function () {\u00a0\n\u00a0\u00a0\u00a0 pm.response.to.have.status(200);\u00a0\n});\u00a0\npm.test(\"Response time kurang dari 500 ms\", function () {\u00a0\n\u00a0\u00a0\u00a0 pm.expect(pm.response.responseTime).to.be.below(500);\u00a0\n});\u00a0\npm.test(\"Header Content-Type adalah JSON\", function () {\u00a0\n\u00a0\u00a0\u00a0 pm.response.to.have.header(\"Content-Type\");\u00a0\n\u00a0\u00a0\u00a0 pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application\/json\");\u00a0\n});\u00a0\npm.test(\"Body memiliki field yang benar\", function () {\u00a0\n\u00a0\u00a0\u00a0 const body = pm.response.json();\u00a0\n\u00a0\u00a0\u00a0 pm.expect(body).to.have.property(\"id\", 1);\u00a0\n\u00a0\u00a0\u00a0 pm.expect(body.email).to.be.a(\"string\").and.include(\"@\");\u00a0\n\u00a0\u00a0\u00a0 pm.expect(body.address).to.be.an(\"object\");\u00a0\n});<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Menguji array dan skema<\/strong>&nbsp;<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>pm.test(\"Mengembalikan daftar user\", function () { \n    const users = pm.response.json(); \n    pm.expect(users).to.be.an(\"array\").that.is.not.empty; \n    users.forEach(u => { \n        pm.expect(u).to.have.all.keys(\"id\", \"name\", \"username\", \"email\", \n                                      \"address\", \"phone\", \"website\", \"company\"); \n    }); \n}); \n\nconst schema = { \n    type: \"object\", \n    required: &#91;\"id\", \"name\", \"email\"], \n    properties: { \n        id: { type: \"integer\" }, \n        name: { type: \"string\" }, \n        email: { type: \"string\" } \n    } \n}; \npm.test(\"Skema sesuai kontrak\", function () { \n    pm.response.to.have.jsonSchema(schema); \n}); <\/code><\/pre>\n\n\n\n<p><strong>Tips:&nbsp; <\/strong>Satu pm.test sebaiknya menguji satu hal dengan nama yang menjelaskan maksudnya. Saat gagal, nama test itulah yang pertama dibaca.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Menguji skenario negatif<\/strong>&nbsp;<\/h3>\n\n\n\n<p>API yang baik juga perlu diuji untuk input yang salah. Contohnya, mengakses resource yang tidak ada:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ GET \/users\/99999\u00a0\npm.test(\"Mengembalikan 404 untuk ID tidak ada\", function () {\u00a0\n\u00a0\u00a0\u00a0 pm.response.to.have.status(404);\u00a0\n});\u00a0\npm.test(\"Tidak membocorkan stack trace\", function () {\u00a0\n\u00a0\u00a0\u00a0 pm.expect(pm.response.text()).to.not.include(\"at Object.\");\u00a0\n});<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Pre-request Script: Menyiapkan Data Uji<\/strong>&nbsp;<\/h2>\n\n\n\n<p>Data uji yang selalu sama bisa bentrok, misalnya email duplikat saat POST dijalankan dua kali. Pre-request Script dapat membuat data unik setiap kali dijalankan. Postman menyediakan variabel dinamis seperti {{$randomEmail}}, {{$guid}}, dan {{$timestamp}}, atau Anda dapat membuatnya lewat script:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Pre-request Script untuk POST \/users\u00a0\nconst suffix = Date.now();\u00a0\npm.variables.set(\"email\", `qa.${suffix}@example.com`);\u00a0\npm.variables.set(\"name\", \"QA User \" + suffix);\u00a0\n\/\/ Body request:\u00a0\n\/\/ { \"name\": \"{{name}}\", \"email\": \"{{email}}\" }<\/code><\/pre>\n\n\n\n<p>Pre-request Script juga cocok untuk mengambil token sebelum request yang membutuhkan autentikasi, atau melewati request jika kondisi belum terpenuhi.&nbsp;<\/p>\n\n\n\n<p><strong>Chaining Request: Menyimpan Nilai dari Response<\/strong>&nbsp;<\/p>\n\n\n\n<p>Skenario nyata biasanya berantai: login, ambil token, lalu pakai token itu untuk request berikutnya. Simpan nilai pada Post-response Script request pertama:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Tests pada POST \/login\u00a0\nconst res = pm.response.json();\u00a0\npm.test(\"Login berhasil dan token ada\", function () {\u00a0\n\u00a0\u00a0\u00a0 pm.response.to.have.status(200);\u00a0\n\u00a0\u00a0\u00a0 pm.expect(res.token).to.be.a(\"string\").and.not.empty;\u00a0\n});\u00a0\npm.environment.set(\"token\", res.token);\u00a0\npm.environment.set(\"user_id\", res.user.id);<\/code><\/pre>\n\n\n\n<p>Request berikutnya memakai Authorization: Bearer {{token}} dan path \/users\/{{user_id}}.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"906\" height=\"408\" src=\"https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2026\/11\/image-6.png\" alt=\"\" class=\"wp-image-7762\" srcset=\"https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2026\/11\/image-6.png 906w, https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2026\/11\/image-6-300x135.png 300w, https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2026\/11\/image-6-768x346.png 768w\" sizes=\"(max-width: 906px) 100vw, 906px\" \/><\/figure>\n\n\n\n<p><em>Gambar 3. Nilai dari response disimpan sebagai variabel dan dipakai pada request selanjutnya.<\/em>&nbsp;<\/p>\n\n\n\n<p>Untuk mengatur urutan eksekusi dari dalam script, gunakan pm.execution.setNextRequest(&#8220;Nama Request&#8221;) atau pm.execution.setNextRequest(null) untuk berhenti. Pada Postman versi lama, fungsi ini bernama postman.setNextRequest.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Menjalankan Otomatis dengan Collection Runner<\/strong>&nbsp;<\/h2>\n\n\n\n<p>Setelah test tertulis, jalankan seluruh collection sekaligus:&nbsp;<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Klik kanan Collection pada sidebar, pilih <strong>Run collection<\/strong> (atau tombol <strong>Run<\/strong>).\u00a0<\/li>\n<\/ol>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>Pilih request yang disertakan dan atur urutannya dengan drag and drop.\u00a0<\/li>\n<\/ol>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>Pilih <strong>Environment<\/strong> yang dipakai, misalnya Testing.\u00a0<\/li>\n<\/ol>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li>Atur <strong>Iterations<\/strong> (jumlah pengulangan) dan <strong>Delay<\/strong> antar request bila perlu.\u00a0<\/li>\n<\/ol>\n\n\n\n<ol start=\"5\" class=\"wp-block-list\">\n<li>Opsional: unggah <strong>Data file<\/strong> (CSV atau JSON) untuk data-driven testing.\u00a0<\/li>\n<\/ol>\n\n\n\n<ol start=\"6\" class=\"wp-block-list\">\n<li>Klik <strong>Run<\/strong> dan lihat hasilnya: request, test lulus, test gagal, dan waktu respons.\u00a0<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"906\" height=\"460\" src=\"https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2026\/11\/image-8.png\" alt=\"\" class=\"wp-image-7764\" srcset=\"https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2026\/11\/image-8.png 906w, https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2026\/11\/image-8-300x152.png 300w, https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2026\/11\/image-8-768x390.png 768w\" sizes=\"(max-width: 906px) 100vw, 906px\" \/><\/figure>\n\n\n\n<p><em>Gambar 4. Collection Runner menjalankan request pada collection secara berurutan memakai environment dan data file.<\/em>&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"906\" height=\"480\" src=\"https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2026\/11\/image-9.png\" alt=\"\" class=\"wp-image-7765\" srcset=\"https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2026\/11\/image-9.png 906w, https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2026\/11\/image-9-300x159.png 300w, https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2026\/11\/image-9-768x407.png 768w\" sizes=\"(max-width: 906px) 100vw, 906px\" \/><\/figure>\n\n\n\n<p><em>Gambar 5. Contoh ringkasan hasil: satu request melewati batas response time dan perlu diselidiki.<\/em>&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Data-driven testing dengan CSV<\/strong>&nbsp;<\/h3>\n\n\n\n<p>Satu skenario dapat dijalankan dengan banyak data. Buat file users.csv:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name,email,expected_status\u00a0\nBudi,budi@example.com,201\u00a0\nSari,sari@example.com,201\u00a0\nTanpa Email,,422\u00a0\nEmail Salah,bukan-email,422<\/code><\/pre>\n\n\n\n<p>Header kolom menjadi variabel yang dibaca dengan {{name}} dan {{email}} pada body, atau dengan pm.iterationData.get(&#8220;expected_status&#8221;) pada script:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pm.test(\"Status sesuai data uji\", function () {\u00a0\n\u00a0\u00a0\u00a0 const expected = parseInt(pm.iterationData.get(\"expected_status\"));\u00a0\n\u00a0\u00a0\u00a0 pm.response.to.have.status(expected);\u00a0\n});<\/code><\/pre>\n\n\n\n<p>Setiap baris CSV menjadi satu iterasi, sehingga empat baris menghasilkan empat kali run dengan hasil terpisah.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Praktik Terbaik<\/strong>&nbsp;<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Uji tiga lapis pada setiap endpoint: status code, struktur\/skema response, dan nilai bisnis yang penting.\u00a0<\/li>\n\n\n\n<li>Sertakan skenario negatif: input kosong, format salah, token kedaluwarsa, resource tidak ada.\u00a0<\/li>\n\n\n\n<li>Buat request independen sebisa mungkin. Bila perlu berurutan, beri nama dengan nomor (01-Login, 02-Create) dan catat ketergantungannya.\u00a0<\/li>\n\n\n\n<li>Bersihkan data uji di akhir (request DELETE) agar run berikutnya tidak terpengaruh.\u00a0<\/li>\n\n\n\n<li>Jangan menaruh nilai rahasia di dalam script. Simpan di variabel environment (jenis secret).\u00a0<\/li>\n\n\n\n<li>Pisahkan environment untuk testing dan production. Jangan menjalankan test yang menulis data ke production.\u00a0<\/li>\n<\/ul>\n\n\n\n<p><strong>Tabel 2. Masalah umum dan solusinya<\/strong>&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Masalah<\/strong>&nbsp;<\/td><td><strong>Penyebab umum<\/strong>&nbsp;<\/td><td><strong>Solusi<\/strong>&nbsp;<\/td><\/tr><tr><td>Test gagal acak&nbsp;<\/td><td>Data bergantung antar request&nbsp;<\/td><td>Gunakan data unik per run, perbaiki urutan&nbsp;<\/td><\/tr><tr><td>pm.response.json() error&nbsp;<\/td><td>Response bukan JSON (misalnya HTML error)&nbsp;<\/td><td>Cek status code lebih dulu&nbsp;<\/td><\/tr><tr><td>Variabel kosong&nbsp;<\/td><td>Environment belum dipilih&nbsp;<\/td><td>Pilih environment aktif di pojok kanan atas&nbsp;<\/td><\/tr><tr><td>Test terlalu rapuh&nbsp;<\/td><td>Membandingkan nilai yang berubah (timestamp)&nbsp;<\/td><td>Uji format atau tipe, bukan nilai pasti&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Pre-request Script menyiapkan data, Post-response Script memeriksa hasil, dan Collection Runner menjalankan semuanya berulang tanpa campur tangan manual. Dengan fondasi ini, regression testing API bisa dijalankan dalam hitungan menit. Langkah selanjutnya adalah menjalankan collection yang sama dari command line dan pipeline CI\/CD, yang dibahas pada artikel Postman dan CI\/CD.&nbsp;<\/p>\n\n\n\n<p>Sumber: <a href=\"https:\/\/learning.postman.com\/docs\/tests-and-scripts\/test-apis\/test-apis\" target=\"_blank\" rel=\"noreferrer noopener\">Postman<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pengujian API tanpa manual testing: Collection Runner, assertion, Pre-request dan Post-response Script&nbsp; Kategori: Technical Tutorial | Target pembaca: QA Engineer, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":7766,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[321,319],"tags":[],"class_list":["post-7760","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-api-developer","category-postman"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Automated API Testing Menggunakan Postman\u00a0 -<\/title>\n<meta name=\"description\" content=\"Pre-request Script menyiapkan data, Post-response Script memeriksa hasil, dan Collection Runner menjalankan semuanya berulang tanpa campur tangan manual. Dengan\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/alldataint.com\/articles\/automated-api-testing-menggunakan-postman\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Automated API Testing Menggunakan Postman\u00a0 -\" \/>\n<meta property=\"og:description\" content=\"Pre-request Script menyiapkan data, Post-response Script memeriksa hasil, dan Collection Runner menjalankan semuanya berulang tanpa campur tangan manual. Dengan\" \/>\n<meta property=\"og:url\" content=\"https:\/\/alldataint.com\/articles\/automated-api-testing-menggunakan-postman\/\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/alldataint\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-25T09:30:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-25T09:31:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2026\/11\/Automated-API-Testing-Menggunakan-Postman-.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1408\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"All Data International\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@alldataint\" \/>\n<meta name=\"twitter:site\" content=\"@alldataint\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"All Data International\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/automated-api-testing-menggunakan-postman\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/automated-api-testing-menggunakan-postman\\\/\"},\"author\":{\"name\":\"All Data International\",\"@id\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/#\\\/schema\\\/person\\\/ba7ba14be59e749ad963b03c256bdf90\"},\"headline\":\"Automated API Testing Menggunakan Postman\u00a0\",\"datePublished\":\"2026-11-25T09:30:22+00:00\",\"dateModified\":\"2026-11-25T09:31:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/automated-api-testing-menggunakan-postman\\\/\"},\"wordCount\":897,\"publisher\":{\"@id\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/automated-api-testing-menggunakan-postman\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Automated-API-Testing-Menggunakan-Postman-.webp\",\"articleSection\":[\"API Developer\",\"Postman\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/automated-api-testing-menggunakan-postman\\\/\",\"url\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/automated-api-testing-menggunakan-postman\\\/\",\"name\":\"Automated API Testing Menggunakan Postman\u00a0 -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/automated-api-testing-menggunakan-postman\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/automated-api-testing-menggunakan-postman\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Automated-API-Testing-Menggunakan-Postman-.webp\",\"datePublished\":\"2026-11-25T09:30:22+00:00\",\"dateModified\":\"2026-11-25T09:31:18+00:00\",\"description\":\"Pre-request Script menyiapkan data, Post-response Script memeriksa hasil, dan Collection Runner menjalankan semuanya berulang tanpa campur tangan manual. Dengan\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/automated-api-testing-menggunakan-postman\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/alldataint.com\\\/articles\\\/automated-api-testing-menggunakan-postman\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/automated-api-testing-menggunakan-postman\\\/#primaryimage\",\"url\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Automated-API-Testing-Menggunakan-Postman-.webp\",\"contentUrl\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Automated-API-Testing-Menggunakan-Postman-.webp\",\"width\":1408,\"height\":768,\"caption\":\"Automated API Testing Menggunakan Postman\u00a0\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/automated-api-testing-menggunakan-postman\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Automated API Testing Menggunakan Postman\u00a0\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/#website\",\"url\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/\",\"name\":\"\",\"description\":\"AI anda Data Analytics Indonesia\",\"publisher\":{\"@id\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/#organization\",\"name\":\"PT All Data International\",\"alternateName\":\"PT All Data International\",\"url\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/all-data-international-logo-website.png\",\"contentUrl\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/all-data-international-logo-website.png\",\"width\":500,\"height\":127,\"caption\":\"PT All Data International\"},\"image\":{\"@id\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/alldataint\\\/\",\"https:\\\/\\\/x.com\\\/alldataint\",\"https:\\\/\\\/www.instagram.com\\\/alldataint\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/all-data-international\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/#\\\/schema\\\/person\\\/ba7ba14be59e749ad963b03c256bdf90\",\"name\":\"All Data International\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/wp-content\\\/litespeed\\\/avatar\\\/61f7f44c6162d5dfecfa0284391b77e4.jpg?ver=1795183165\",\"url\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/wp-content\\\/litespeed\\\/avatar\\\/61f7f44c6162d5dfecfa0284391b77e4.jpg?ver=1795183165\",\"contentUrl\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/wp-content\\\/litespeed\\\/avatar\\\/61f7f44c6162d5dfecfa0284391b77e4.jpg?ver=1795183165\",\"caption\":\"All Data International\"},\"url\":\"https:\\\/\\\/alldataint.com\\\/articles\\\/author\\\/all-data-international\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Automated API Testing Menggunakan Postman\u00a0 -","description":"Pre-request Script menyiapkan data, Post-response Script memeriksa hasil, dan Collection Runner menjalankan semuanya berulang tanpa campur tangan manual. Dengan","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/alldataint.com\/articles\/automated-api-testing-menggunakan-postman\/","og_locale":"en_US","og_type":"article","og_title":"Automated API Testing Menggunakan Postman\u00a0 -","og_description":"Pre-request Script menyiapkan data, Post-response Script memeriksa hasil, dan Collection Runner menjalankan semuanya berulang tanpa campur tangan manual. Dengan","og_url":"https:\/\/alldataint.com\/articles\/automated-api-testing-menggunakan-postman\/","article_publisher":"https:\/\/www.facebook.com\/alldataint\/","article_published_time":"2026-11-25T09:30:22+00:00","article_modified_time":"2026-11-25T09:31:18+00:00","og_image":[{"width":1408,"height":768,"url":"https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2026\/11\/Automated-API-Testing-Menggunakan-Postman-.webp","type":"image\/webp"}],"author":"All Data International","twitter_card":"summary_large_image","twitter_creator":"@alldataint","twitter_site":"@alldataint","twitter_misc":{"Written by":"All Data International","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/alldataint.com\/articles\/automated-api-testing-menggunakan-postman\/#article","isPartOf":{"@id":"https:\/\/alldataint.com\/articles\/automated-api-testing-menggunakan-postman\/"},"author":{"name":"All Data International","@id":"https:\/\/alldataint.com\/articles\/#\/schema\/person\/ba7ba14be59e749ad963b03c256bdf90"},"headline":"Automated API Testing Menggunakan Postman\u00a0","datePublished":"2026-11-25T09:30:22+00:00","dateModified":"2026-11-25T09:31:18+00:00","mainEntityOfPage":{"@id":"https:\/\/alldataint.com\/articles\/automated-api-testing-menggunakan-postman\/"},"wordCount":897,"publisher":{"@id":"https:\/\/alldataint.com\/articles\/#organization"},"image":{"@id":"https:\/\/alldataint.com\/articles\/automated-api-testing-menggunakan-postman\/#primaryimage"},"thumbnailUrl":"https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2026\/11\/Automated-API-Testing-Menggunakan-Postman-.webp","articleSection":["API Developer","Postman"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/alldataint.com\/articles\/automated-api-testing-menggunakan-postman\/","url":"https:\/\/alldataint.com\/articles\/automated-api-testing-menggunakan-postman\/","name":"Automated API Testing Menggunakan Postman\u00a0 -","isPartOf":{"@id":"https:\/\/alldataint.com\/articles\/#website"},"primaryImageOfPage":{"@id":"https:\/\/alldataint.com\/articles\/automated-api-testing-menggunakan-postman\/#primaryimage"},"image":{"@id":"https:\/\/alldataint.com\/articles\/automated-api-testing-menggunakan-postman\/#primaryimage"},"thumbnailUrl":"https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2026\/11\/Automated-API-Testing-Menggunakan-Postman-.webp","datePublished":"2026-11-25T09:30:22+00:00","dateModified":"2026-11-25T09:31:18+00:00","description":"Pre-request Script menyiapkan data, Post-response Script memeriksa hasil, dan Collection Runner menjalankan semuanya berulang tanpa campur tangan manual. Dengan","breadcrumb":{"@id":"https:\/\/alldataint.com\/articles\/automated-api-testing-menggunakan-postman\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/alldataint.com\/articles\/automated-api-testing-menggunakan-postman\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/alldataint.com\/articles\/automated-api-testing-menggunakan-postman\/#primaryimage","url":"https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2026\/11\/Automated-API-Testing-Menggunakan-Postman-.webp","contentUrl":"https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2026\/11\/Automated-API-Testing-Menggunakan-Postman-.webp","width":1408,"height":768,"caption":"Automated API Testing Menggunakan Postman\u00a0"},{"@type":"BreadcrumbList","@id":"https:\/\/alldataint.com\/articles\/automated-api-testing-menggunakan-postman\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/alldataint.com\/articles\/"},{"@type":"ListItem","position":2,"name":"Automated API Testing Menggunakan Postman\u00a0"}]},{"@type":"WebSite","@id":"https:\/\/alldataint.com\/articles\/#website","url":"https:\/\/alldataint.com\/articles\/","name":"","description":"AI anda Data Analytics Indonesia","publisher":{"@id":"https:\/\/alldataint.com\/articles\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/alldataint.com\/articles\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/alldataint.com\/articles\/#organization","name":"PT All Data International","alternateName":"PT All Data International","url":"https:\/\/alldataint.com\/articles\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/alldataint.com\/articles\/#\/schema\/logo\/image\/","url":"https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2022\/12\/all-data-international-logo-website.png","contentUrl":"https:\/\/alldataint.com\/articles\/wp-content\/uploads\/2022\/12\/all-data-international-logo-website.png","width":500,"height":127,"caption":"PT All Data International"},"image":{"@id":"https:\/\/alldataint.com\/articles\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/alldataint\/","https:\/\/x.com\/alldataint","https:\/\/www.instagram.com\/alldataint\/","https:\/\/www.linkedin.com\/company\/all-data-international\/"]},{"@type":"Person","@id":"https:\/\/alldataint.com\/articles\/#\/schema\/person\/ba7ba14be59e749ad963b03c256bdf90","name":"All Data International","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/alldataint.com\/articles\/wp-content\/litespeed\/avatar\/61f7f44c6162d5dfecfa0284391b77e4.jpg?ver=1795183165","url":"https:\/\/alldataint.com\/articles\/wp-content\/litespeed\/avatar\/61f7f44c6162d5dfecfa0284391b77e4.jpg?ver=1795183165","contentUrl":"https:\/\/alldataint.com\/articles\/wp-content\/litespeed\/avatar\/61f7f44c6162d5dfecfa0284391b77e4.jpg?ver=1795183165","caption":"All Data International"},"url":"https:\/\/alldataint.com\/articles\/author\/all-data-international\/"}]}},"_links":{"self":[{"href":"https:\/\/alldataint.com\/articles\/wp-json\/wp\/v2\/posts\/7760","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alldataint.com\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alldataint.com\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alldataint.com\/articles\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/alldataint.com\/articles\/wp-json\/wp\/v2\/comments?post=7760"}],"version-history":[{"count":1,"href":"https:\/\/alldataint.com\/articles\/wp-json\/wp\/v2\/posts\/7760\/revisions"}],"predecessor-version":[{"id":7767,"href":"https:\/\/alldataint.com\/articles\/wp-json\/wp\/v2\/posts\/7760\/revisions\/7767"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alldataint.com\/articles\/wp-json\/wp\/v2\/media\/7766"}],"wp:attachment":[{"href":"https:\/\/alldataint.com\/articles\/wp-json\/wp\/v2\/media?parent=7760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alldataint.com\/articles\/wp-json\/wp\/v2\/categories?post=7760"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alldataint.com\/articles\/wp-json\/wp\/v2\/tags?post=7760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}