Forum Discussion

powej1's avatar
powej1
Occasional Visitor
3 years ago

Creating Python API Script from ReadyAPI Gitlab Project

I am using ReadyAPI with a Gitlab project to query devices in our infrastructure

I need to be able build a Python Script to query the APIs configured in ReadyAPI and retrieve the output

 

What would be the steps that I would need to do to accomplish this?

 

Thanks

1 Reply

  • KarelHusa's avatar
    KarelHusa
    Champion Level 2

    powej1 ,

    it's not clear to me what is the role and purpose of your Python script.

    Some questions:

    • Do you need to execute the queries during the test execution?
    • Can you do the queries with ReadyAPI functions instead of Python?
    • Can Groovy help here or is there anything special you need to do in Python?

     

    You might create Python scripts and execute them from Groovy, but that might be quite error-prone way.

     

    Best regards,

    Karel