TestProject Forum
Powered by leading experts in the test automation community

Setting TP_DEV_TOKEN in python

Could you please tell me where should I set token value and how ?I am using spyder IDE.

Hello @suranga1201.

If you’re referring to the developer token you can get from here:
https://app.testproject.io/#/integrations/sdk

You’ll need to set it either as an environment variable in your PC called TP_DEV_TOKEN:

Or you can pass it into the driver constructor, see example test in Spyder:

You can find more details and examples in TestProject’s Python SDK Github page: