#3 : Rest Assured Framework - GraphQL API with POJO Query & Variables

preview_player
Показать описание
In this video, I have explained how to create POJO objects for GraphQL query and variables and using the same in Rest Assured Framework.

Rest Assured Framework - GraphQL API with POJO Query & Variables

GIT Repo for GraphQL Rest Assured Automation:

~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:

Follow me on my Facebook Page:

Naveen AutomationLabs Paid Courses:
Java & Selenium:

Java & API +POSTMAN + RestAssured + HttpClient:
Рекомендации по теме
Комментарии
Автор

GIT Repo for GraphQL Rest Assured Automation:

naveenautomationlabs
Автор

You are the best @Naveen, clear explanation with clean code!

mdsheikh
Автор

Thank u So much for uploading this video @Naveen

AmitSingh-qpxn
Автор

Thanks @Naveen - This video helped me to fix one prod issue!

gokuljagadeesan
Автор

@Naveen AutomationLabs Is there a library available to form GraphQL queries by pulling the schema from its endpoint?

sathishmanjavo
Автор

Hi Naveen, could you please help to automate mutation query using pojo

rahulpandey
Автор

Cannot serialize object because no JSON serializer found in classpath.

I am getting following error.

NiteshYadav-pcgg
Автор

Hi Naveen
Is it possible to use hashmap here in graphql query like the way we are using with rest api automation to insert multiple data attributes?
If anyone knows kindly reply here.

jagannathswain
Автор

Can you share an example with a nested Variable json ?
Or probably a case where we can set variable from a file JSON file tweak only some of the values of JSON.{
"booleanFields": true,
"arrayFieldIds": [
"string",
"string"
],
"filter": {
"and": [
{
"someField": [
"query"
],
"in": [
"id = '123' "
]
}
]
},
"search": [],
"limit": 10,
"orderBy": [
{
"date": "dateField",
"direction": "DESC"
}
]
}

rohit_tyagi
Автор

Hi Naveen,
Concept of #limit variable in JSon is not clear to me. Need more details on how exactly we can get value in JSon object.
Can you provide resources details for this.

ashteshdiwakar
Автор

Hey Naveen, Can we store the query string in some file, preferably JSON, and use it in the test case ?
Query String:

"query ($limit: Int!, $name:String!) {\n"
+ " users(limit: $limit, where: {name: {_eq: $name}}) {\n"
+ " id\n"
+ " name\n"
+ " }\n"
+ "}"

vikramreddy