<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Pramudityo Sakti P on Medium]]></title>
        <description><![CDATA[Stories by Pramudityo Sakti P on Medium]]></description>
        <link>https://medium.com/@pramudityosp?source=rss-a59950879b7f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*YDQSzNVsC1z3jrAA</url>
            <title>Stories by Pramudityo Sakti P on Medium</title>
            <link>https://medium.com/@pramudityosp?source=rss-a59950879b7f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 22:19:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pramudityosp/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Basic Android Automation Test menggunakan Katalon Studio]]></title>
            <link>https://medium.com/@pramudityosp/basic-android-automation-test-menggunakan-katalon-studio-f9b6fcc98310?source=rss-a59950879b7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9b6fcc98310</guid>
            <dc:creator><![CDATA[Pramudityo Sakti P]]></dc:creator>
            <pubDate>Mon, 05 Dec 2022 08:25:29 GMT</pubDate>
            <atom:updated>2022-12-05T08:25:29.195Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Myo7qDxmEftZJM9RU3bQA.png" /></figure><p>Hai pada kesempatan kali ini, kita akan mencoba untuk membuat <em>basic</em> android <em>automation</em> <em>test</em> dengan menggunakan fitur dari katalon studio. Sebelumnya kita perlu untuk <em>setup</em> komputer dan android <em>device</em> kita agar android <em>automation</em> <em>test</em> dapat berjalan tanpa ada masalah.</p><p><strong>Setup</strong></p><p>Sebelum membuat android automation, kita perlu untuk mempersiapkan konfigurasi android <em>mobile</em> untuk katalon studio. Pertama download dan install node js terlebih dahulu melalui <a href="https://nodejs.org/en/download/">https://nodejs.org/en/download/</a> ,supaya kita bisa menjalankan perintah npm dan jalankan perintah cek versi npm di terminal untuk mengetahui apakah node js sudah berhasil terinstal di komputer kita atau tidak melalui:</p><blockquote>npm -v</blockquote><p>Kemudian install appium dengan menjalankan perintah npm di terminal seperti berikut:</p><blockquote>npm install -g appium</blockquote><p>dan jalankan perintah cek versi appium untuk mengetahui apakah appium sudah berhasil terinstal di komputer kita atau tidak melalui:</p><blockquote>appium -v</blockquote><p>Selanjutnya kita dapat memilih <em>device</em> <em>test</em> kita dari android emulator atau <em>real</em> android <em>device</em>. Android emulator dapat kita buat melalui android studio dan buka virtual device manager. Lalu kita klik create device dan pilih device yang kita inginkan. Langkah berikutnya klik next dan download system image yang kita inginkan. Setelah selesai <em>setup</em> android emulator, kita klik tombol dan <em>play</em> dan emulator akan berjalan di komputer kita.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h_tjvxmj2_oMMOh1nxG9hw.png" /><figcaption>Open Android Studio</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xIHVngIbbVNO_-yqSdDyIA.png" /><figcaption>Vritual Device Manage (Android Emulator)</figcaption></figure><p>Download android studio:</p><blockquote><a href="https://developer.android.com/studio">https://developer.android.com/studio</a></blockquote><p>referensi android emulator:</p><blockquote><a href="https://developer.android.com/studio/run/emulator?hl=id#runningemulator">https://developer.android.com/studio/run/emulator?hl=id#runningemulator</a></blockquote><p>Jika memilih <em>real</em> android <em>device, </em>kita perlu<em> </em>menghubungkan android device ke komputer kita dan aktifkan usb debugging melalui developer options, android device dapat terbaca oleh komputer.</p><p>Langkah selanjutnya adalah install android sdk dengan membuka katalon dan buat new project dari sample android mobile test project, lalu klik tombol <em>handphone</em> dengan tanda merah/hijau dan pilih android devices, nanti katalon akan meminta untuk install android sdk secara otomatis.</p><p>referensi untuk <em>setup</em> untuk mac os:</p><blockquote><a href="https://docs.katalon.com/docs/katalon-studio-enterprise/create-tests-and-projects/configure-test-cases/mobile-testing/android/mobile-android-setup#on-macos-machine">https://docs.katalon.com/docs/katalon-studio-enterprise/create-tests-and-projects/configure-test-cases/mobile-testing/android/mobile-android-setup#on-macos-machine</a></blockquote><p>Langkah terakhir adalah siapkan APK/aplikasi android untuk menjalankan android <em>automation</em> <em>test</em>. Contoh APK yang kita gunakan yaitu APIDemos.apk dari katalon.</p><p>Download APIDemos.apk:</p><blockquote><a href="https://docs.katalon.com/docs/katalon-studio-enterprise/get-started/mobile-testing/mobile-create-and-run-android-test-case">https://docs.katalon.com/docs/katalon-studio-enterprise/get-started/mobile-testing/mobile-create-and-run-android-test-case</a></blockquote><p><strong>Record</strong></p><p>Setelah berhasil <em>setup</em> yang diperlukan untuk menjalankan android <em>automation test</em>, kita bisa langsung membuat script automation test dengan menggunakan fitur mobile <em>recorder</em> terlebih dahulu. Hal tersebut bertujuan untuk mempermudah kita untuk memahami cara membuat test step dari android automation test.</p><p>Buat new project dengan tipe <em>mobile </em>dan klik tombol ok.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zl0IToDviXEPQw8VuiKGoQ.png" /><figcaption>New Project</figcaption></figure><p>Selanjutnya kita buat <em>test case</em> baru dengan klik kanan pada folder <em>test case</em> dan klik tombol ok setelah memasukkan nama <em>test case</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*94aRnftElZBrCH1DvexAMg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*8feJCGITHOsD8RnplXcqAA.png" /><figcaption>Create New Test Case</figcaption></figure><p>Berikutnya kita klik tombol <em>handphone</em> dengan tanda merah dan pilih android <em>devices, </em>sehingga akan muncul pop up <em>mobile</em> <em>recorder</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*5QAN1HEpbpQtDYgedU01Ng.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*wsEtksGBBNWsnpHPB-KVwQ.png" /><figcaption>Run Mobile Recorder</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RTV1LIDJxhsl2K3z8ax8QA.png" /><figcaption>Mobile Recorder Popup</figcaption></figure><p>Lalu pilih device dan APK yang ingin digunakan dan klik tombol <em>start</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*At_LFvVAzEO96sKnBfKRGg.png" /><figcaption>Android Device List</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bFAuuAz_OgFLmLjmWoo0pg.png" /><figcaption>Mobile Recorder Popup After inset Android App (APK)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fbu4t3OcF24ZV6PY-KiSBA.png" /><figcaption>Starting Mobile Record</figcaption></figure><p>Kemudian aplikasi yang digunakan akan tampil di pop up <em>mobile</em> <em>recorder. </em>Pada pop up <em>mobile</em> <em>recorder </em>terdapat <em>configurations, available actions, recorded actions, captured objects, all objects, </em>dan<em> device view</em>. <em>Configurations </em>berfungsi untuk memilih <em>device</em> antara android <em>real device</em> atau android emulator dan APK/aplikasi android yang digunakan. A<em>vailable actions </em>berfungsi untuk menjalankan perintah dalam membuat <em>test step</em> pada <em>test case</em> kita. R<em>ecorded actions </em>berfungsi untuk menampilkan <em>test step</em> yang telah kita buat. C<em>aptured objects </em>berfungsi untuk menampilkan objek yang kita simpan. A<em>ll objects </em>berfungsi untuk menampilkan semua objek yang ada pada aplikasi yang ditampilkan. D<em>evice view </em>berfungsi untuk menampilkan aplikasi yang sedang digunakan. Terdapat juga tombol <em>capture object</em> untuk menampilkan halaman yang sedang ditampilkan dan tombol <em>stop</em> untuk menghentikan proses pada <em>mobile recorder</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*40kznVjYecRvx9CiXqFfOQ.png" /><figcaption>Start Step Record</figcaption></figure><p>Setelah membuat <em>test step record</em> yang dibutuhkan, kita dapat menyimpannya dengan klik tombol save script lalu buat <em>object repository folder</em> yang baru dan pilih <em>test case file</em> yang telah kita buat sebelumnya. Disini kita telah selesai melakukan proses <em>mobile recorder</em> dan akan terlihat <em>test step</em>, objek dan input yang kita buat pada halaman test case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4myJSvlff2MJpqG7UaccyA.png" /><figcaption>Finish Step Record</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*RqmiyGgj-gwSaPREZ1v1yQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*BYcrjgvdtoYxTP-HSVexKw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*FY2stRXyzLld7SxbbiwSNQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*PGOvLI45Bh0prd8z0IMClw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*uTurOoOMA7T_riI3Mg1xnQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*k_ZO7hChv8Zrl53gt-G6vw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*rJyjrgLlU0pqJneoTMyC3w.png" /><figcaption>Saving Mobile Record</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IJ4r5A3zoo5olgvlAgjgsA.png" /><figcaption>Android Test Step in Test Case</figcaption></figure><p><strong>Spy Mobile</strong></p><p>Objek pada aplikasi android dapat dilakukan dengan metode lain selain <em>record</em> yaitu <em>spy mobile</em> untuk mengambil objek aplikasi android secara manual untuk dimasukkan kedalam <em>object repository</em>. Pertama, klik tombol <em>handphone</em> dengan tanda hijau dan pilih android <em>devices, </em>sehingga akan muncul pop up <em>mobile</em> <em>object spy.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*0_GT6HZEtfpTjrmywOodPw.png" /><figcaption>Spy Mobile Button</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/326/1*99viDvRjl4j0O0Hi71tVmA.png" /><figcaption>Start Syp Mobile</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*odLygrj1Cukg0OMjkaNFGw.png" /><figcaption>Mobile Object Spy Popup</figcaption></figure><p>Lalu pilih device dan APK yang ingin digunakan dan klik tombol <em>start.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*kSjt_kXtCZn73iqcR09mnA.png" /><figcaption>Configuration in Mobile Record Spy</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cD-UkitZM1ojnbKG0Ew7Ew.png" /><figcaption>Start Mobile Spy in Mobile Object Spy</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hrCaB9DfMJj4H1WlBJiIXA.png" /><figcaption>Running Mobile Spy</figcaption></figure><p>Didalam pop up <em>mobile oject spy </em>terdapat tombol <em>capture object</em> untuk menangkap setiap objek dari halaman aplikasi yang dibuka, <em>stop</em> button untuk menghentikan <em>spy process, </em>tombol<em> add to object repository </em>untuk menyimpan objek yang kita pilih<em>, device view panel </em>untuk menampilkan halaman aplikasi yang sedang dibuka, <em>all object panel</em> untuk menampilkan objek objek yang ditangkap, <em>capture object panel </em>untuk melihat objek-objek apa saja yang terambil, <em>object properties panel </em>untuk melihat detil objek seperti <em>object name, locator strategy, locator </em>dan <em>value</em> dari <em>object properties</em>.</p><p>Saat memilih salah satu objek dengan centang pada <em>all object panel</em>, kita dapat memlih jenis objek yang kita ingin simpan dengan klik <em>attributes</em> pada <em>locator strategy</em> lalu pilih jenisnya dan klik tombol <em>generate</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Uq9XWTp_pcVrlB_Jzr70w.png" /><figcaption>Start Spy Object</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*mO219_q75vpR4zXVK39czA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*xxA7ZDkQJrwieauklHAIgw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*UdUZnnTUFXsXRA6Wr1biNA.png" /><figcaption>Object Properties</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LlCeNevxTSD3m-Zr9MMP6g.png" /><figcaption>Finish Mobile Spy</figcaption></figure><p>Jika kita ingin menyimpan klik tombol<em> add to object repository,</em> kemudian pilih direktori folder dan klik tombol OK. Klik tombol “x” merah pada pop up <em>mobile object spy</em>, jika kita telah selesai melakukan <em>spy object</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*7DEHbImnXtGQaulQunkctg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*3yCIC195ClEZTaKhPkNfxA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*Cqp9w_UqfrBg7dUrNL99mA.png" /><figcaption>Saving Object</figcaption></figure><p>Untuk mengecek objek yang telah kita simpan, buka folder <em>object repository</em> pada panel kiri dan pilih <em>object file</em> yang ada dalam direktori folder yang telah disimpan sebelumnya. Setelah <em>object file</em> terbuka, akan terlihat informasi objek seperti <em>locator strategy, locator dan object properties.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*wIuSxrB1Q63Xy4RhCMHlgg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oNJpn-z0BtXCawWN-7ulIQ.png" /><figcaption>Object in Object Repository</figcaption></figure><p><strong>Test Case</strong></p><p>Sama halnya dengan <em>web automation test</em> di katalon, kita dapat membuat <em>test case</em> dengan menggunakan <em>test step</em> yang telah disimpan melalui <em>record</em> atau mengisi <em>test step</em> secara manual. Didalam halaman <em>test case</em>, kita dapat merubah urutan (<em>move up/move down</em>), menghapus (<em>delete</em>) atau menambahkan (<em>add/recent keywords</em>) <em>test step</em> dengan menggunakan objek yang telah disimpan. Pada <em>test case</em> terdapat opsi manual untuk mengisi <em>test step</em> secara manual atau <em>script</em> untuk mengisi <em>test step</em> dengan melakukan koding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uFYzt2amTXpSzNHn-GL9IA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1EQN1LW4suQ4uZ-CirQGlQ.png" /><figcaption>Android Test Case</figcaption></figure><p>Untuk mencoba menjalankan <em>test case</em> yang dibuat, kita klik tombol panah dan pilih Android, lalu pilih android <em>device</em> yang digunakan. Saat <em>test case</em> sedang berjalan kita dapat melihat prosesnya dari android<em> device</em> atau <em>log viewer </em>dan akan terlihat hasilnya jika telah selesai menjalankan <em>test case </em>android<em> automation test</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*6k2WjM_LrEAeL0-EY1_ocg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*a6WtRv45v99KXQmehIZAhQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MkogiO_v12X_9vU-E8795g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*ytIgPq-UV1LQP0Bjk7xBeA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EyK2bLgW8TwMjokp6qGU0g.png" /><figcaption>Running Android Test Case</figcaption></figure><p>Berikut contoh hasil dari menjalankan <em>test case </em>android<em> automation test</em>, jika berhasil akan ditandai dengan tanda ceklis hijau dan <em>passed</em>, jika gagal akan ditandai dengan tanda silang dan <em>failed</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EyK2bLgW8TwMjokp6qGU0g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GIvC3dh2aewDI-RjV_DO4Q.png" /><figcaption>Android Test Case Result</figcaption></figure><p><strong>Test Suite</strong></p><p>Langkah berikutnya stelah sukses membuat <em>test case</em>, kita buat t<em>est suite</em> untuk menjalankan banyak <em>test case</em> dalam 1 kali <em>run</em>, serta membuat <em>report</em> dari <em>test case</em> tersebut. Pertama buat dahulu <em>new test suite</em> pada <em>folder test suite</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*IWHy-pDnFrntrzfQRMj7jw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*vu0HNPV1PQwKmSBEhAW8cw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YXOGuKh-y-OmUKwq9tFT_Q.png" /><figcaption>Create Android Test Suite</figcaption></figure><p>Kemudian klik tombol <em>add</em> dan pilih <em>test case</em> yang diinginkan, sehingga <em>test case</em> akan tampil pada halaman <em>test suite</em>. Pada <em>test suite</em> terdapat fitur untuk menambah, merubah urutan, dan menghapus <em>test case</em>. Kemudian terdapat juga opsi main untuk mengatur <em>test case</em> secara manual atau opsi <em>script</em> untuk mengatur dengan metode coding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*Q4wju_-RTseeZ5Xsoj0xSA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VrdKELHxatnV5DcN5vnYjQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ep8TVqhtsmkTSUoZRWrAMw.png" /><figcaption>Android Test Suite</figcaption></figure><p>Selanjutnya kita jalankan <em>test suite</em> dengan klik tombol panah dan pilih Android, lalu pilih android <em>device</em> yang digunakan. Saat <em>test suite</em> sedang berjalan kita dapat melihat prosesnya dari android<em> device</em> atau <em>log viewer </em>untuk melihat setiap log pada <em>test case</em> yang ada.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cOCRWycH-TytrP5ReRXeGQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OzcpsCtMAc6psSqeXFPZag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/584/1*YlxKs1TCbO8Y6r8OEX8stw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VjBs-Av_Nh9eewX_-WTyYA.png" /><figcaption>Running Android Test Suite</figcaption></figure><p>Setelah proses <em>test suite</em> menjalankan setiap <em>test case</em>, akan terlihat hasilnya dengan status <em>Passed</em> jika berhasil atau <em>Failed</em> jika gagal, dan sistem juga membuat <em>report</em> secara otomatis dengan format HTML atau CSV.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WtLrtr20oxeUAv4xvdR6WQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wFCN-zLGFd4bwR5vqIixmQ.png" /><figcaption>Android Test Suite Result</figcaption></figure><p><strong>Report</strong></p><p>Setiap menjalankan <em>test suite, </em>sistem<em> </em>akan otomatis membuat <em>report</em>. <em>Report</em> tersebut dapat kita buka pada <em>folder reports</em> dengan cara klik kanan file tersebut lalu klik open <em>containing folder</em> dan masuk ke dalam folder yang ada. Secara <em>default report</em> yang dapat dibuka dalam bentuk HTML dan CSV. Isi dari <em>report</em> tersebut adalah <em>test step, test case </em>dan <em>test result</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*fRCKJSoB-nD1GULEV5XOvg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*Sf3c3JXNvalbvNreuJAqog.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*tyWbXzJzOpL0m2sxhyEvNQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WgRjbswl_R9xIf643FfvNg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YsN5kGHfbaNSlCVVSD3WiA.png" /><figcaption>HTML and CSV Report</figcaption></figure><p>Jika kita ingin menggunakan <em>report</em> dengan format PDF atau CSV <em>summary</em>, kita perlu melakukan <em>export report</em> dengan cara klik kanan file tersebut lalu klik <em>export as</em> lalu pilih <em>format file</em> dan buka di <em>folder</em> yang dituju. Kemudian t<em>est report</em> akan langsung terbuka dengan format <em>file</em> yang dipilih.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D68lTSzOAE-en0-UnXswDg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6e2wjJlyWbTvylUIhv0BSg.png" /><figcaption>Export Report</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NHL1TLDfO5baMUxnl1kC8A.png" /><figcaption>CSV Summary Report</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bXfDUYPmNmoCm8hUffKBjg.png" /><figcaption>PDF Report</figcaption></figure><p>Hasil <em>test report</em> juga dapat menampilkan <em>failed</em> jika hasil <em>test suite</em> tersebut gagal yang dapat ditampilkan dalam format HTML,CSV,CSV <em>Summary</em>, dan PDF.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-bPWYtGDKLN6ErMmJA5xZQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3ZBw4FFQTY0FG9C_Z1Zrgg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jSreR5MMUauLu_aHbe3F4w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mc_831AwPKvT_gXqrGipPw.png" /><figcaption>Failed Report</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9b6fcc98310" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Basic Website Automation Test dengan Katalon Studio]]></title>
            <link>https://medium.com/@pramudityosp/basic-website-automation-test-dengan-katalon-studio-f823ecc4e279?source=rss-a59950879b7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f823ecc4e279</guid>
            <dc:creator><![CDATA[Pramudityo Sakti P]]></dc:creator>
            <pubDate>Mon, 27 Jun 2022 11:17:59 GMT</pubDate>
            <atom:updated>2022-06-27T11:17:59.573Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mc7Roq5veB1WTCj05Q4Xtg.png" /></figure><p>Hai kembali lagi disini, melanjutkan dari artikel <a href="https://medium.com/@pramudityosp/automation-test-api-dengan-katalon-studio-925eff2e49c6">sebelumnya</a>, kali ini kita akan mencoba membuat <em>automation test</em> <em>website</em> dengan menggunakan katalon studio pada <em>website</em> <a href="https://katalon.com/katalon-studio/">https://katalon.com/katalon-studio/</a>. Pada automation test <em>website</em> kita dapat membuat test case dengan cara <em>record </em>atau manual.</p><p><em>Record</em> merupakan cara termudah karena setelah kita aktifkan, kita hanya perlu melakuan step <em>browsing</em> seperti biasa dan <em>test case</em> akan terbentuk secara otomatis. Sedangkan dengan cara manual kita perlu melakukan <em>spy web</em> atau <em>capture object </em>untuk mendapatkan setiap <em>selector</em> pada <em>website</em> tersebut. Sebelum memulai langkah pertama adalah membuka aplikasi katalon studio dan dilanjutkan membuat <em>project</em> dengan tipe web.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v4XFXTe1jF6UzEBxNaR9Tw.png" /><figcaption>Katalon Studio Homepage</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wn7hUQb95_FvbulSNnby_g.png" /><figcaption>New Web Project</figcaption></figure><p><strong>Record</strong></p><p>Langkah pertama adalah membuat <em>test case</em> pada folder <em>test case.</em> Setelah berhasil membuat <em>test case</em>, klik logo web dengan tanda merah. Pada pop up web recorder dapat terlihat kolom URL untuk alamat <em>website</em> yang dituju, tombol <em>expand</em> untuk melihat <em>test step</em>, tombol <em>save script</em> untuk menyimpan hasil <em>record</em>, tombol panah bawah untuk memilih <em>browser</em> yang akan digunakan untuk <em>record</em>, tombol <em>record</em> untuk memulai <em>record</em> <em>automation</em> <em>test web</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4LjFv8BBWy26mOt8jZlw-Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*D9c0y8JKfsjcCbNMdCVmhg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*u3x1Melirtv38SbcLVsewQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rXLiY4Ezqc9tQz2R-MKwww.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/372/1*BU2RTnYk2Uy9aG1QYisf0g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HA1njOhhEnjWsVmEeQ3Svg.png" /><figcaption>Before record section</figcaption></figure><p>Saat kita melakukan recording sebaiknya kita klik <em>expand</em> untuk melihat setiap <em>test step</em> yang kita buat. Di fase ini kita bisa melakukan <em>pause</em> <em>record</em>. dengan klik tombol <em>pause</em> agar tidak mengganggu <em>test step</em> kita saat melakukan <em>browsing </em>dan untuk melanjutkan dapat klik tombol<em> replay. </em>Setelah berhasil melakukan <em>record</em>, kita dapat melihat <em>object</em> yang sudah kita tangkap melalui klik tombol <em>show captured objects</em>. Kita juga dapat melakukan tambah atau hapus <em>test step</em> dengan klik tombol <em>add</em> atau <em>remove</em>, serta dapat mengatur urutan <em>test step</em> dengan klik tombol <em>move up</em> atau <em>move down.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aK62mX1l8ogLEVJZmAA8Ig.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hO2QHcxe31XcUk8q1iYYCg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FnT_ytPnwHQ5s64ZKjapnQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1L8SBrXBT-5ASCDTE5ylkg.png" /><figcaption>Recording section</figcaption></figure><p>Sebelum menyimpan <em>test step</em>, kita juga dapat melakan <em>run test</em> langsung melalui klik tombol <em>play</em>. Saat <em>running test</em> browser akan bergerak secara otomatis mengikuti setiap <em>test step</em>. Kita juga dapat melihat log <em>test run</em> di panel bagian bawah dengan status <em>running</em>, dan saat sudah selesai akan terlihat status <em>passed</em> atau <em>failed</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*64m-h-B1wxXK46UeYHBCCA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n6XtaumTbyOBpUKOSlD2YA.png" /><figcaption>Running test</figcaption></figure><p>Setelah kita yakin terhadap <em>test step</em> yang terbuat dari hasil <em>record</em>, kita simpan <em>test step</em> dengan klik tombol <em>save script</em>. <em>Test step</em> akan otomatis tersimpan dan akan muncul di <em>test case page</em>, serta <em>object record</em> akan tersimpan di <em>folder object repository</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cwt8aLUKF7sh12qKMgy-4Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ouQcif55rNCJO3JPuwUXbw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/1*egTcpJSCUmIoDsB41n2cVA.png" /><figcaption>Test Case from Output Record</figcaption></figure><p><strong>Spy Web / Capture Object</strong></p><p>Selain memakai <em>record</em> untuk mendapatkan objek pada <em>website</em>, kita juga dapat melakukannya dengan metode lain yaitu <em>spy web/capture object</em> untuk mengambil objek <em>website</em> secara manual untuk dimasukkan kedalam <em>object repository</em>. Langkah pertama klik logo <em>web</em> dengan tanda hijau, dalam <em>pop up</em> <em>object spy</em> terdapat kolom URL untuk alamat website yang dituju, <em>new page button</em> untuk membuat <em>folder</em> dalam <em>object repository</em>, <em>new frame button</em> untuk membuat bagan <em>frame</em>, <em>new object button</em> untuk membuat objek secara manual, <em>delete button</em> untuk menghapus <em>object/frame/page</em>, <em>save button</em> untuk menyimpan objek di dalam <em>object repository</em>. Pada <em>pop up</em> ini terdapat juga <em>capture object bar</em> untuk melihat objek-objek apa saja yang terambil, <em>object properties</em> untuk melihat detil objek seperti <em>object name, object xpath, object locator</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XXwCvmuykVqSZ5sLB8hDWg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*gc1zHlgZ75-Xhrl_BwXTKQ.png" /><figcaption>Start for spy web/capture object</figcaption></figure><p>Didalam <em>pop up</em> terdapat tombol panah bawah untuk memilih <em>browser</em> apa yang akan dipakai. Untuk memulai klik tombol <em>start</em> dan kita arahkan kursor mouse ke objek yang kita pilih lalu kita tekan tombol “alt +`&quot; atau “option+`“, sehingga akan muncul objek yang ditangkap didalam <em>pop up object spy.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/324/1*-c5mwUCV0Qus5HSmkZaYkw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bxs-JrW9hp_Dl2SqbAtLYQ.png" /><figcaption>Spy web/capture object is in progress</figcaption></figure><p>Setelah mendapatkan objek dari <em>website</em>, kita juga dapat melakukan menyimpan gambar dengan klik tombol <em>add screenshot</em> dan dapat melihat gambarnya di <em>folder</em> katalon(Screenshots/Targets/Page_Katalon Studio The Best Low Code Test Automation Tool/a_Free Download.png).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RbEWzUNc9x00UC9H4kqmZQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RVGtJPT9KLEw3KbkP6s1Fw.png" /><figcaption>Spy web/capture object for adding screenshot</figcaption></figure><p>Jika sudah mendapatkan objek, step berikutnya kita simpan dengan klik tombol <em>save</em> dan pilih tempat direktori yang ingin disimpan. Kemudian kita dapat melihat objek telah kita simpan di <em>folder object repository</em> (panel kiri). Untuk melihat secara detil, kita bisa klik 2 kali pada objek tersebut dan akan muncul informasi <em>objek xpath</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-5C8GTAlRFSGNRfSMmOt9Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*Hiri9ptbJTgC1iEVcCtIFw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GVRMcTJLTqj-DqQYP9F6tw.png" /><figcaption>Succes spy web/capture object</figcaption></figure><p><strong>Test Case</strong></p><p>Pada bagian ini kita dapat membuat test case dengan menggunakan test step yang telah disimpan melalui <em>record</em> atau mengisi test step secara manual. Didalam halaman <em>test case</em>, kita dapat merubah urutan (<em>move up/move down</em>), menghapus (<em>delete</em>) atau menambahkan (<em>add/recent keywords</em>) <em>test step</em> dengan menggunakan objek yang telah disimpan. Pada <em>test case</em> terdapat opsi manual untuk mengisi <em>test step</em> secara manual atau <em>script</em> untuk mengisi <em>test step</em> dengan melakukan koding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4k73aOulzUhcZz8xR8wymQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9SFt853KRbZGQsHZMYRtSQ.png" /><figcaption>Create test case</figcaption></figure><p>Jika kita ingin mencoba menjalankan <em>test case</em>, kita klik tombol <em>play</em> atau panah sebelah tombol <em>play</em> lalu pilih <em>browser</em> yang diinginkan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JN7dnxS4m-LdfBQIwFJUbQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*iiuG44aL0kGkaJpB_naOkw.png" /><figcaption>Choose website for test case run</figcaption></figure><p>Saat <em>test case</em> sedang berjalan kita biarkan lalu tunggu sampai selesai, kita juga dapat melihat dari <em>log viewer</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hFRHW89RaMboGE97TOsm0A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LScLlguUsanFa8jLNc0VZA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hauFiFkdXSSnE65F3muoIQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I5VHEjJU0vjzc9J2s5_wIw.png" /><figcaption>Test case run is in progress</figcaption></figure><p>Setelah selesai akan terlihat hasil dari <em>test case</em>, jika berhasil akan ditandai dengan tanda ceklis hijau dan <em>passed</em>, jika gagal akan ditandai dengan tanda silang dan <em>failed</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x3dCc_GdNvrVTKm32qW1hQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H75DDnydluuKzCXxD1rflw.png" /><figcaption>Test case result</figcaption></figure><p><strong>Test Suite</strong></p><p>Setelah berhasil membuat <em>test case</em>, kita dapat memasukkan <em>test case</em> kita ke dalam <em>test suite</em>. <em>Test suite</em> berfungi untuk menjalankan banyak <em>test case</em> dalam 1 kali <em>run</em>, dan juga akan membuat <em>report</em> dari <em>test case</em> tersebut.</p><p>Pertama buat dahulu <em>new test suite</em> pada <em>folder test suite</em>. Kemudian klik tombol <em>add</em> dan pilih <em>test case</em> yang diinginkan, sehingga <em>test case</em> akan tampil pada halaman <em>test suite</em>.</p><p>Pada <em>test suite</em> terdapat fitur untuk menghapus, merubah urutan, dan menambah <em>test case</em>. Lalu terdapat juga mode main untuk mengatur <em>test case</em> secara manual atau mode <em>script</em> untuk mengatur dengan metode coding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*hfCqMIlXw5H-7lFOaYe4HQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*7wFeG9zNK3pYw47RisvVhQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sfoWnTdKjohLP5GNFmUsrA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0h_us6MaYiCbgitzxdJ0pQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mwhrc-yQEAdfzEzlGHBHDQ.png" /><figcaption>Create test suite</figcaption></figure><p>Berikutnya kita jalankan <em>test suite</em> kita dengan klik tombol play atau panah bawah untuk menjalankan <em>test suite</em> di <em>browser</em> yang kita inginkan dan <em>browser</em> akan berjalan secara otomatis membuat <em>website</em> yang dituju sesuai dengan <em>test case</em>. Pada katalon studio, <em>test suite</em> yang berjalan akan terlihat pada bar kanan dengan <em>status running</em> dan juga terdapat <em>log viewer</em> untuk melihat setiap log pada <em>test case</em> yang ada.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*qX0g5tMnw_QcdkCY7DemeQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o_0uR0SIUBBFYYX8F-23_A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2PzTwt_HYhT5bbRpT8XAdQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KNFyBWQyfxYgHY75fCFW9Q.png" /><figcaption>Test suite run is in progress</figcaption></figure><p>Setelah <em>test suite</em> menjalankan setiap <em>test case</em>, akan terlihat hasil dari tes tersebut dengan status <em>Passed</em> jika berhasil atau <em>Failed</em> jika gagal. Kemudian sistem akan membuat <em>report</em> secara otomatis dengan format HTML dan CSV.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jABw2sS-6ZqZyFc4QgtZXQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oOK_3Z6tyvjSLFxIKZdxNA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*siDvNdLcOoCCPqjuN5CxWA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NgPaJNT2YfrzydQTjU-1Sw.png" /><figcaption>Test suite result</figcaption></figure><p><strong>Report</strong></p><p>Sama halnya dengan <em>automation</em> dengan yang lain, setelah berhasil menjalankan <em>test suite</em> akan otomatis mendapatkan <em>report</em>. <em>Report</em> dapat kita buka di <em>folder report</em> dengan cara klik kanan file tersebut lalu klik open <em>containing folder</em> dan masuk ke dalam folder yang ada. Secara <em>default report</em> yang dapat dibuka dalam bentuk HTM dan CSV. Setelah <em>report</em> terbuka akan terlihat <em>test step</em> dan <em>test result</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*fC7HlONAP8iF30aLid-CRA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*y-0HqQu5kw6K31qNhxDctg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q4j6bMbPqrze-5bOSudVfQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oIGMWl_j6fji8RHAf-NLmg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*La5tmzAvRPif6EToyJs3Qg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZnnX7yDcSbK5kNkEGoP3oQ.png" /><figcaption>Default test report</figcaption></figure><p>Kita juga dapat <em>export report</em> menjadi format PDF atau CSV <em>summary</em> dengan cara klik kanan file tersebut lalu klik <em>export as</em> lalu pilih <em>format file</em> dan buka di <em>folder</em> yang dituju. <em>Test report</em> dengan hasil <em>passed</em> atau <em>failed</em> akan langsung terbuka dengan format <em>file</em> yang dipilih.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nBCA4vmN2NaHAy4p2HeJwg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jdYDBAYNm3Np_rDOOLTvUQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_0jvlSGuSd1WydYTMJsAow.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d0KXQICnJ7YutqtiLacljA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b0RfTlk7oXNImNyQvJ7Q8A.png" /><figcaption>Export test report</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f823ecc4e279" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automation test API dengan Katalon Studio]]></title>
            <link>https://medium.com/@pramudityosp/automation-test-api-dengan-katalon-studio-925eff2e49c6?source=rss-a59950879b7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/925eff2e49c6</guid>
            <dc:creator><![CDATA[Pramudityo Sakti P]]></dc:creator>
            <pubDate>Wed, 30 Mar 2022 03:16:24 GMT</pubDate>
            <atom:updated>2022-03-30T03:16:24.526Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Background</strong></p><p>Pada era industri <em>startup</em> saat ini, mayoritas perusahaan <em>startup</em> merupakan <em>technology base</em> sebagai dasar untuk solusi produk atau jasa yang ditawarkan. Hal tersebut membutuhkan <em>human resource</em> yang memiliki <em>skill</em> dalam bidang teknologi yang salah satunya adalah profesi QA atau yang sering disebut <em>tester</em>.</p><p>QA bertugas menguji suatu fitur atau sistem yang dikembangkan oleh developer atau <em>engineer software </em>sebelum dirilis ke dalam ekosistem <em>production</em>. Dalam <em>trend</em> sekarang biasanya QA dipecah menjadi dua yaitu QA manual dan QA automation. QA manual biasanya menguji fitur atau sistem secara manual yang tidak membutuhkan skill <em>coding</em>, sedangkan QA automation biasanya menguji fitur secara otomatis dengan menggunakan <em>automation test tools</em> yang membutuhkan skill <em>coding</em>.</p><p>Dikarenakan <em>trend</em> saat ini mayoritas industri khususnya <em>startup</em> banyak mencari QA automation, maka QA manual perlu untuk belajar automation agar bisa mengikuti kebutuhan industri yang akan datang. Karena hal tersebut untuk membantu QA manual bisa perlahan menjadi QA automation, katalon studio <em>tools</em> bisa menjadi salah satu solusi untuk menjebatani hal tersebut dikarenakan mempunyai opsi membuat <em>automation test</em> melalui manual <em>mode</em> atau script <em>mode</em>.</p><p><strong>Katalon Studio</strong></p><p>Katalon Studio merupakan produk dari perusahaan Katalon, yang mana Katalon sendiri punya produk lain seperti katalon testops, katalon testcloud, katalon recorder. Katalon Studio <em>tools </em>mempunyai fitur <em>automation test</em> untuk <em>website</em> <em>testing</em>, api <em>testing</em>, <em>mobile</em> <em>testing</em>, <em>desktop testing</em>. Pada pembahasan kali ini akan fokus pada api <em>testing </em>menggunakan katalon studio<em> </em>terlebih dahulu.</p><p>Step pertama adalah register dan download katalon studio <em>tools</em> melalui <em>website</em> <a href="https://katalon.com/katalon-studio">https://katalon.com/katalon-studio</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eOiwitkac3vM_Jlgl5cnBw.png" /><figcaption>Katalon Studio page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5n3yNYDKdFe8HUzZakat_g.png" /><figcaption>Katalon registration accout page</figcaption></figure><p>Kemudian lakukan instalasi katalon tools di komputer (pada kesempatan kali ini, menggunakan komputer mac).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*fr1mBB0XWGmdUwXdYYfU4w.png" /><figcaption>Computer requirement</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A5PN-qshVB4nwWRPu1Fu5g.png" /><figcaption>Install page</figcaption></figure><p>Setelah selesai instalasi kemudian buka katalon studio dan melakukan <em>activation, </em>sehingga akan muncul<em> home page </em>dari<em> </em>katalon studio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nBv3OLCfrYLgjz-8ZHtCBA.png" /><figcaption>Katalon studio activation page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cq32UrWU44PQ5u-ZU9fJtw.png" /><figcaption>Katalon studio home page</figcaption></figure><p>Kemudian langkah selanjutnya membuat automation test dengan klik new project atau jika ingin melihat terlebih dahulu bisa memilih Sample API Test Project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KX4_gDJE_q3hOnvZI_rQWQ.png" /><figcaption>New project</figcaption></figure><p>Setelah membuat project akan muncul explorer untuk membuat automation test.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qPgHiy-DkBVZFHFYGiyUhA.png" /><figcaption>explorer page</figcaption></figure><p><strong>Test API</strong></p><p>Sebelum membuat test case, kita memerlukan test api terlebih dahulu melalui object repository, dalam sample ini kita menggunakan API endpoint dari <a href="https://reqres.in/">https://reqres.in/</a> yaitu <a href="https://reqres.in/api/users/2">https://reqres.in/api/users/2</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EZf6ZN1c-njLltkLkVIJvA.png" /><figcaption>create web service request</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*tyjZV69J0nmfF-FbSMQjQw.png" /><figcaption>new web service request</figcaption></figure><p>kemudian akan terlihat <em>configuration page</em> untuk api test, untuk mencoba klik tombol play dan akan terlihat hasil <em>response</em> dari endpoint <a href="https://reqres.in/api/users/2">https://reqres.in/api/users/2</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cdxd_PyAsRXia77awMPtHA.png" /><figcaption>test get api</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D5f7UriEjZqA7FOqUkXkZg.png" /><figcaption>response from test get api</figcaption></figure><p><strong>Test Case</strong></p><p>Setelah sukses melakukan test api, berikutnya membuat test case yang mengambil endpoint api dari object repository. Langkah pertama membuat file test case, setelah berhasil akan muncul dashboard untuk test case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Js9G6PGLMSwqk76HNlal-w.png" /><figcaption>create test case</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*tSgDVF_swA1kniKZOctZ1w.png" /><figcaption>new test case page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eeagrM-oYMfWH-uJb-JicQ.png" /><figcaption>test case dashboard</figcaption></figure><p>langkah selanjutnya membuat step-step untuk test case dimulai dari memakai <em>send request</em> dengan memakai object get dari object repository dan outputnya adalah response</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*92TasywkoZBow3uvTgbORw.png" /><figcaption>add step for test case</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g7AEV_JThRNCwHYIoLpYcw.png" /><figcaption>choose send request</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J6-6yhWPUCbEuBVqXtjfPw.png" /><figcaption>choose get object repository</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZxXqNFkyekJ0LsFa8bCpug.png" /><figcaption>input response for output value</figcaption></figure><p>Berikutnya memakai step <em>verify step response status code</em> untuk verifikasi <em>response status</em> dari api, dan isi 200 untuk <em>expected status code</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m1PV19a6tiDl1hYIzII0uw.png" /><figcaption>use verify step response status code</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eSBOp9G7ZVgyiV6XQdERhg.png" /><figcaption>input 200 for expected status code value</figcaption></figure><p>Step ketiga memakai <em>verify element property value untuk </em>verifikasi data<em> </em>dari response api tersebut (response bisa dilihat juga dari <a href="https://reqres.in/">https://reqres.in/</a>). Format data response dapat diambil dari response (dapat dilihat dari tools 3rd party seperti <a href="https://jsonpathfinder.com/">https://jsonpathfinder.com/</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8qV5IXIzu53pkPqc0it3Rw.png" /><figcaption>response for get single user</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JZFLp6BaKzkALmUqr9DZ-A.png" /><figcaption>use verify element property value</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y91uYaH3fiHyxRS67aockw.png" /><figcaption>get format data from 3rd party tools</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NXXeCOinQF_uV62letRilg.png" /><figcaption>fill input data for response, locator, value</figcaption></figure><p>Dalam test case juga terdapat script mode jika kita lebih suka membuat step dalam bentuk <em>coding </em>dengan cara klik script tab bar sebelah kanan manual.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VJZRDhzyBY7lMkHc-6yPfw.png" /><figcaption>test case script mode</figcaption></figure><p>Setelah selesai membuat step-step untuk test case, langkah selanjutnya menjalankan test case tersebut dengan klik play button di toolbar dan memilih web service, lalu akan tampil running progress di sidebar kanan dan log viewer pada bar bawah. Jika sudah selali akan tampil passsed di running progress di sidebar kanan dan log berhasil untuk setiap step test case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q-MhTbuc0rX7OT0skBLNGg.png" /><figcaption>click play button for run test case</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SA3zG0-EsMAETmNYhHnIog.png" /><figcaption>test case is running</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NdgpZcLNVrO8KfbH-tulZQ.png" /><figcaption>test case result</figcaption></figure><p><strong>Test Suite</strong></p><p>Setelah berhasil membuat test case, berikutnya membuat test suite dikarenakan output test case hanya berupa log, sedangkan jika kita menjalankan test suit, outputnya dapat berupa log dan <em>report</em> yang dapat kita <em>download</em>. Isi test suite dapat mempunyai banyak test case untuk merangkum test case yang telah dibuat.</p><p>Buat test suite dengan klik kanan di folder test suite dan akan terlihat dashboard untuk test suite. Selanjutnya tambah test case ke test suite.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z630zS7sYtAgZjiZcViZYA.png" /><figcaption>create test suite</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EaXk1wmfMAFbwhJnz_4FrA.png" /><figcaption>new test suite</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jzmcCL7g2U7PO5wcjmembQ.png" /><figcaption>test suite dashboard</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5kWtISz6Ixxv2wo3EMFvHw.png" /><figcaption>add get user test case into test suite</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bHY1xNe35IQeFLq6rtka0g.png" /><figcaption>success add test case into test suite</figcaption></figure><p>Dalam test suite juga terdapat script mode jika kita ingin melihat dalam bentuk <em>script</em> <em>code </em>dengan cara klik script tab bar sebelah kanan main.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6KArxluGO0d59QHjZBim1g.png" /><figcaption>test suite script mode</figcaption></figure><p>Setelah berhasil menambahkan test case, selanjutnya jalankan test suite dengan klik play <em>button</em> di bar atas, sehingga akan muncul running proggress di sidebar kanan dan log di bar bawah. Setelah selesai akan muncul passed di sidebar kanan dan log di bar bawah. Dapat kita lihat terdapat log export katalon report untuk membuat report yang dapat kita download.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HfiumqWUzCXWbI2xph1DiA.png" /><figcaption>click play button for test suite</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GtjB0lyX1QD2ZTccElNY2g.png" /><figcaption>test suite is running</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*akQ8Cmc2DX9bmXDbN3OViA.png" /><figcaption>test suite result</figcaption></figure><p><strong>Report</strong></p><p>Setelah berhasil menjalankan test suite, kita dapat melihat <em>report</em> test kita dengan cara buka reports folder dan klik dua kali <em>report file</em>, dan akan tampil <em>report dashboard</em> kita. Kita juga bisa membuka <em>report</em> seperti format html dengan cara klik kanan pada folder reports dan pilih <em>open containing folder</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JTl8G_Q2mumveUg-1euGcQ.png" /><figcaption>open test report</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ocjWDIqajWTOeXEH1guKVQ.png" /><figcaption>open containing folder for test report</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qEIksr4IGm_djVXMh0xw-Q.png" /><figcaption>test report folder</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A2oarVICTPjqUrWbF8uyLA.png" /><figcaption>test report sample with html format</figcaption></figure><p>Selain itu kita juga dapat <em>export report</em> ke format pdf dengan cara klik <em>export report button </em>dan pilih pdf.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HMr7olB8JlSlor7qY2-rFw.png" /><figcaption>export report into pdf format</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wQMPJZ157OkShjKQDPQvNg.png" /><figcaption>test report sample with pdf format page no.1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JeCgYtFzSxHoK3RGr5JGyg.png" /><figcaption>test report sample with pdf format page no.2</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=925eff2e49c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>