Last active
          May 24, 2022 09:43 
        
      - 
      
 - 
        
Save dnno/a992d9fbc28ac410cb37c49603971b41 to your computer and use it in GitHub Desktop.  
    Postman response test
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | let jsonData = JSON.parse(responseBody) | |
| pm.test("Cars have been received", () => { | |
| pm.response.to.have.status(200) | |
| pm.expect(jsonData).to.not.be.undefined | |
| pm.expect(jsonData).to.be.an('array') | |
| pm.expect(jsonData).to.not.be.empty | |
| }); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment