Tests have been made using:
- GeoDB Cities GraphQL API
- Github GraphQL API
- rapidapi GraphQL API
In order to launch the tests locally an API key has to be set for:
- GeoDBCities API here, available with a free subscription at https://rapidapi.com/wirefreethought/api/geodb-cities-graphql/
- Github API here, available with a free subscription at https://github.com
- RapidAPI API here, available with a free subscription at https://rapidapi.com/ApiPlaygroundTestRapidapi/api/graphql-rapidapi-test/
Scenario | Description | Test case |
---|---|---|
Querying a simple object type | Create a GraphQL Query to fetch a simple GraphQL type and build the python class instance containing the data from the response Note: This is only for descriptive purposes, the GraphQL server involved does not expose such a query, for real-world cases see other tests |
here |
Querying a simple object type using arguments as literal values | Create a GraphQL Query to fetch a simple GraphQL type and build the python class instance containing the data from the response Note: This is only for descriptive purposes, the GraphQL server involved does not expose such a query, for real-world cases see other tests |
here |
Querying a simple object type using arguments and variables | Create a GraphQL Query to fetch a simple GraphQL type and build the python class instance containing the data from the response Note: This is only for descriptive purposes, the GraphQL server involved does not expose such a query, for real-world cases see other tests |
here |
Querying a simple object type changing the visibility of fields | Create a GraphQL Query to fetch a simple GraphQL type and build the python class instance containing the data from the response Note: This is only for descriptive purposes, the GraphQL server involved does not expose such a query, for real-world cases see other tests |
here |
Querying a connection | Create a GraphQL Query to fetch a GraphQL connection type and build the python class instance containing the data from the response | here |
Querying a connection using arguments as literal values | Create a GraphQL Query to fetch a GraphQL connection type using Args as literal values and build the python class instance containing the data from the response | here |
Querying a connection using arguments and variables | Create a GraphQL Query to fetch a GraphQL connection type using Args and Variables and build the python class instance containing the data from the response | here |
Querying a connection changing the visibility of fields | Create a GraphQL Query to fetch a simple GraphQL type and build the python class instance containing the data from the response Note: This is only for descriptive purposes, the GraphQL server involved does not expose such a query, for real-world cases see other tests |
here |
Querying a composed object | Create a GraphQL Query to fetch a GraphQL connection type using Args and Variables and build the python class instance containing the data from the response | here |
Further queries can be found here
Scenario | Description | Test case |
---|---|---|
Executing a mutation with arguments as literal values | create a GraphQL Mutation to modify a GraphQL type and builds the python class instance containing the payload received from the response | here |
Executing a mutation manually created using only pygqlmap with arguments as literal values | create a GraphQL Mutation to mutate a GraphQL type and builds the python class instance containing the payload received from the response | here |
Further tests can be found here