You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this might be the last question and I'll be all set.
I need to make the auth with several gets (one is shown below with //count of records). If I place the auth in it's on .toss, it does not keep the auth (not using cookies) when I go to my //count of records. So, I'm assuming I need to auth with each new .get. Is there a way to auth in the get? For example, auth in my //count of records.
Yes, if you use auth, you will need to use it in every test. An alternative is to use globalSetup with a raw Authorization header so you won't have to do this.
Thanks for help! That authed for me.
I think this might be the last question and I'll be all set.
I need to make the auth with several gets (one is shown below with //count of records). If I place the auth in it's on .toss, it does not keep the auth (not using cookies) when I go to my //count of records. So, I'm assuming I need to auth with each new .get. Is there a way to auth in the get? For example, auth in my //count of records.
frisby.create('Test HTTP Basic Auth')
.get('http://someserver.net:8080')
.auth('the_id', 'the_password')
.toss()
//count of records
frisby.create('get a count')
.get('http://someserver.net:8080/service' + '/count')
.expectStatus(200)
.inspectBody()
.toss();
The text was updated successfully, but these errors were encountered: