timeriver / trg_api

0 stars 0 forks source link

Postman Assignments for QA and Manager 4: Use Postman for testing - Write Test Script 2 #4

Open writerity-mami-asakura opened 6 months ago

writerity-mami-asakura commented 6 months ago

Purpose of this assignment

Understand how to write test script in Postman Postmanでのテストスクリプトの書き方を理解する。

Assignment 1

Using The Cat API , Please write a test script for feature below:

The Cat API を用いて、 下記機能のためのテストスクリプトを書いてください。

Feature/機能: Get random cat images from the cat API. https://api.thecatapi.com/v1/images/search

ランダムな猫画像を1枚取得する。 https://api.thecatapi.com/v1/images/search

The things to check (What test script should check)/テストスクリプトに含めるべきこと

  1. Response status code is 200 / レスポンスのステータスコードが200であること。
  2. Check the Response and it include image URL. /レスポンスが画像URLを含んでいること 3. Use image URL, check whether if we can really get image. /画像が表示できること

Reference

Test Script for Postman https://learning.postman.com/docs/writing-scripts/test-scripts/