Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added cookie interaction integration tests for pm.sendRequest #359

Merged
merged 2 commits into from
Aug 25, 2017

Conversation

kunagpal
Copy link
Contributor

No description provided.

@kunagpal kunagpal force-pushed the feature/pm-send-request-cookie-tests branch from ae636d0 to d9223d4 Compare August 22, 2017 12:54
pm.expect(_response).to.have.property('code', 200);
pm.expect(_response).to.have.property('status', 'OK');
pm.expect(_response.json).to.equal({ cookies: {} });
pm.expect(pm.cookies.has('foo')).to.be(false);
Copy link
Member

@kamalaknn kamalaknn Aug 24, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kunagpal shouldn't we make sure these assertions pass, on testRun.test.getCall(0) or testRun.assertion.getCall(3). In order to make sure our tests fail for failures in sandbox scripts?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, I'll add them.

Copy link
Contributor Author

@kunagpal kunagpal Aug 24, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added.

kunagpal added a commit that referenced this pull request Aug 24, 2017
* Added explicit response body checks
* Made test names consistent and useful
* Rectified overall flakiness
@kunagpal kunagpal force-pushed the feature/pm-send-request-cookie-tests branch from a0172e1 to b7034c0 Compare August 24, 2017 08:48
kunagpal added a commit that referenced this pull request Aug 24, 2017
* Added explicit response body checks
* Made test names consistent and useful
* Rectified overall flakiness
* Added explicit response body checks
* Made test names consistent and useful
* Rectified overall flakiness
@kunagpal kunagpal force-pushed the feature/pm-send-request-cookie-tests branch from b7034c0 to 9466edc Compare August 24, 2017 08:56
Copy link
Member

@shamasis shamasis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kunagpal kunagpal merged commit c530989 into develop Aug 25, 2017
@kunagpal kunagpal deleted the feature/pm-send-request-cookie-tests branch August 25, 2017 07:28
kunagpal added a commit that referenced this pull request Aug 28, 2017
* release/6.3.1:
  fix(package): update postman-sandbox to version 2.3.3
  fix(package): update postman-collection to version 2.1.3
  6.3.1-beta.2
  Bumped collection SDK to v2.3.1-beta.1
  6.3.1-beta.1
  Make sure `request.url.toString` is present before using it
  Addressed PR #359 comments * Added explicit response body checks * Made test names consistent and useful * Rectified overall flakiness
  Make sure empty Urls do not break runs
  Added cookie tests for pm.sendRequest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants