Forum Discussion

Shine's avatar
Shine
New Contributor
5 years ago
Solved

Handling Graphql project environment

Hi,

 

I am new to Soapui and Graphql. I started testing Graphql requests. But the project environments are not changing when I change the environments, though I saved different environments on the environment tab. I created project using 'URL'.

 

Thank you

 

6 Replies

  • richie's avatar
    richie
    Community Hero
    Hey Shine!

    I'm not an expert with the Environments functionality in ReadyAPI!, but i spent a couple of weeks trying it out earlier in the year and i had problems. The domains did switch to the appropriate domain in my requests when once i'd setup the requests in the environments tab, but i found problems if the URI path altered as well.as the domain(server/ip address) in my requests.

    Someone on this forum (that knows a lot more than i do, called nmrao) suggested switching environments via a project level properties file...1 for each environment rather than get bogged down with the Environments functionality and i've been using this approach ever since. I'd suggest using the same.

    If you still want to use the Environments functionality have you checked out https://support.smartbear.com/readyapi/docs/testing/environments/about.html

    Cheers,

    Rich

    • nmrao's avatar
      nmrao
      Champion Level 3
      Thank you @ricie. May be it would help to point the actual link where you got the solution would help instead of explaining again if possible, because that could have more details and context.
      • Shine's avatar
        Shine
        New Contributor

        Thanks for your reply richie. Can you explain how I can switch environments via project level properties file?

        That might get me a solution.

         

        Thanks

        Shine