TestProject Forum

How to read and write the OTP from email by using Test Project?

I am unable to find a solution so, this please help me out

Hi @m.ahirwar .

You can use the email provider API endpoint utilizing our RESTful API Client.

You can query your email provider endpoint from within the test acquire the OTP or verification link and use it inside the test.

For your email provider API please visit there site. for our RESTful API Client documentation please visit the following links:

We have this guide on how to use the RESTful API addon:

Here is some more info and a couple of videos:

https://intercom.help/testprojectio/en/articles/3595249-how-can-i-do-api-testing-with-testproject

Here is what’s in the addon itself:

And here’s our own TestProject API in case that interests you:

https://api.testproject.io/docs/v2/

Kind regards,
Ricardo.