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

Get Request ID #1554

Open
mjohl opened this issue May 28, 2024 · 2 comments
Open

Get Request ID #1554

mjohl opened this issue May 28, 2024 · 2 comments
Labels
question Further information is requested

Comments

@mjohl
Copy link

mjohl commented May 28, 2024

Question:

Are you using the free version/paid version/trial: PAID Version

According to the documentation, you can do the following:

var result = await tc.runRequest("reqId");

My question is the following:

How do I get the "reqId" of the other request? The UI has no way of getting it to my knowledge and having to export the collection the whole time to get ID's are super annoying.

@mjohl mjohl added the question Further information is requested label May 28, 2024
@rangav
Copy link
Collaborator

rangav commented May 28, 2024

@mjohl thanks for feedback, Will display id in the UI.

you can get id using below code
console.log(tc.request.id)

@mjohl
Copy link
Author

mjohl commented May 28, 2024

@rangav Looking forward to the improvement. The better improvement would be to call the other request by "Name".
So instead of: var result = await tc.runRequest("reqId");
We could use: var result = await tc.runRequest("Get All Members");

It would make the readability a lot better, but I understand the complexity behind this as you now have to find the request in the collection.

The trophy solution would be a second optional parameter where I can call a request from another collection:
var result = await tc.runRequest("Run Request A", "From Coll A");

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

No branches or pull requests

2 participants