Skip to content

Assertions are getting repeated from 1st request in collection during collection run using postman runner #11031

@sanket3080

Description

@sanket3080

Is there an existing issue for this?

  • I have searched the tracker for existing similar issues and I know that duplicates will be closed

Describe the Issue

When we run collections using collection runner assertions from 1st request in the collection are getting repeated.

Steps To Reproduce

  1. Create a collection
  2. Add a HTTP request to any public API I used https://catfact.ninja/fact this in my case.
  3. Add assertions to that request here in my test tab body `try{
    var data= JSON.parse(responseBody);
    console.log(data);
    tests["Status code is 200"] = responseCode.code === 200;

}
catch(e)
{
console.log("Unable to send this request :"+e);
}`

  1. Run this collection multiple times using collection run and use different number of iterations.

Screenshots or Videos

screen-capture.zip

Operating System

Windows

Postman Version

9.22.2

Postman Platform

Postman App

Additional Context?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions