Search
 
SCRIPT & CODE EXAMPLE
 

C

Writing tests for API requests

pm.test("Request is successful with a status code of 200", function () {
  pm.response.to.have.status(200);
});

pm.test("Check that it returns an array", function () {
  var jsonData = pm.response.json();
  pm.expect(jsonData).to.be.an("array");
});
Comment

PREVIOUS NEXT
Code Example
C :: turn on and turn off different device at the same time in rainmaker 
C :: python to java translator online 
C :: gtk widget change window title 
C :: pre-commit configuration 
C :: list fiter octobercms 
C :: how to compress a file in c 
C :: peripheral bus clock pic32 
C :: variadic macros in c 
C :: How to set bit in float number in C 
C :: command line coursera 
C :: lognormal distribution - matlab 
C :: return multiple values using the call by reference 
C :: buildCheckFunction(locations) 
C :: fread condition 
C :: function of science writing of a number 
C :: navigate to line intellij 
C :: c programming trinary if 
C :: Typecast Operator in C language 
C :: free array in c 
C :: how can i show ant text by onclick 
Dart :: flutter flotingactionbutton position 
Dart :: flutter check if string is number 
Dart :: flutter listtile leading and title space 
Dart :: how to check whether index is exist or not in dart 
Dart :: dart switch 
Dart :: change font size flutter 
Dart :: flutter file size 
Dart :: dart string to color 
Dart :: dartpad missing browser localstorage 
Dart :: remove object key dart 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =