Still unable to Send Get Test Collection for Adoption

Sue had been trying to help me. Said to select Cloud Agent - it still doesn’t work.

Hi @laurie.clark! If you remove the curly braces from the start and end, you only need those for variables.

1 Like

Thanks, Sue. Now I get a 404.

Could you try going back through the Share flow?

  • Select the collection on the left
  • Click Share
  • Get public link - update and copy the link

Hey- I saw your reply to @laurie.clark so I removed my curly braces and it worked!! I’ve submitted my collection!! One down, one to go!

1 Like

I got past the 404, but just maybe need to go through everything again. Is there a good collection to start off with, for Newbies, until I get used to everything? I want to step through this after the conference, when I can focus, as I’m trying to pay attention to speakers as well. Want to earn my badges as well. Thanks!

Sure! We have the learn by API collection and I’m not sure if you were on the APIs 101 training but you might want to check that one out too, it’s in the same workspace as the API Adoption one: bit.ly/postman-training

Thanks so much! Have a great rest of your day!

1 Like

One of the final test is failing and error is:

Published workspace (included in Headers ‘workspace’ param) | AssertionError: expected ‘’ to have a length above 0 but got 0

//published workspace
pm.test(“Published workspace (included in Headers ‘workspace’ param)”, () => {
let params=pm.response.json().item[1].item[1].request.header[0];
//console.log( Print for test: ${params} );
pm.expect(params.value).to.have.length.greaterThan(0);
pm.expect(params.value).to.contain(‘postman.com’);
pm.expect(params.value).to.contain(’/workspace’);
});

Any feedback would be appreciated. Also, can someone send me the sample of the workspace link?

I understand that the test is for:
pm.response.json().item[1].item[1].request.header[0];

So, when I printed: console.log(pm.response.json().item[1]);

{
name: “Complete submission”
item: [2]
id: “19f907be-84f4-4b69-899a-fc9c5576c092”
description: "Complete your submission for the Galaxy API Adoption badge using the two requests in this final folder:

This means that item: [1] is not even coming in the response. but I am not sure why?

Got it resolved finally… I did not update the Link after making the changes for the updated workspace link.