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

Parser improvement #17

Open
v-antipov opened this issue Feb 3, 2023 · 3 comments
Open

Parser improvement #17

v-antipov opened this issue Feb 3, 2023 · 3 comments

Comments

@v-antipov
Copy link

Hi @subho007 @kirankumbhar. I find out your parser very useful and want to thank you! Unfortunately I didn't find how to get request names. Could the get_requests_map() method be updated to return this data? Thanks in advance!

@kirankumbhar
Copy link
Contributor

Hi @v-antipov,
Can you explain more on request "names" by adding examples?
I have looked into the schema defined by the postman and I don't see any name property for the request object. https://schema.postman.com/collection/json/v2.1.0/draft-07/collection.json

@v-antipov
Copy link
Author

Hi, @kirankumbhar, thanks for your reply. This attribute at the same level as request, this is not inside request. Pls see attached img. Why I'm asking about this. I try to build python framework for api testing which will re-use postman collection data and It's would be great if some method will return request name beside request url, headers and etc. Thanks in advance.
collection_structure

@kirankumbhar
Copy link
Contributor

As you can see from the image it's the property of item object. You can access the name property on item as a item.name
For more details on it look at how item class is declared here.
https://github.com/appknox/postmanparser/blob/main/postmanparser/item.py#L26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants