Тёмный

#8 - Correlation in  

Naveen AutomationLabs
Подписаться 389 тыс.
Просмотров 8 тыс.
50% 1

In this video, I have explained - How to achieve auto correlation in Gatling with the Check API
Learn:
1. Asserting that the response contains some expected data
2. Extracting data from the response and use it in some other API call
~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
www.youtube.co...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/...
Naveen AutomationLabs Paid Courses:
Java & Selenium:
naveenautomatio...
Java & API +POSTMAN + RestAssured + HttpClient:
naveenautomatio...

Опубликовано:

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 19   
@amadain17
@amadain17 2 года назад
just say you wanted to use the extracted parameter in the body of the next request. What technique would you use?
@akonsantosh
@akonsantosh 3 года назад
Waiting for mobile testing tutorials ❤️❤️❤️🔥🔥🔥
@travelvlogs9050
@travelvlogs9050 2 года назад
Hello Naveen , I have tried with same scenario but I am getting "'httpRequest-1' failed to execute: No attribute named 'userId' is defined" this error message , first API call that is get all the users is getting executed but after that I am saving id in the userId key , can you please help
@sdk380
@sdk380 2 года назад
How to extract a key from json response in in gatling. For example url:123. Here I want to extract the key called url without the value 123
@balaarun9623
@balaarun9623 Год назад
Hi sir, Thank you so much it worked for me but how to correlate if we are using two different Http protocols say URL1 and URL2 and two scenarios scn1 and scn2 ...token will be generated from 1st API URL1in scn1 and need to be passed to the second API URL 2 in scn2
@anonymous-vr5qn
@anonymous-vr5qn 3 года назад
writing script for POST API and getting with 100% success but I need to validate my response body So where it will be stored. @Naveen AutomationLabs
@naveenautomationlabs
@naveenautomationlabs 3 года назад
you can use jsonpath to validate the json response.
@anonymous-vr5qn
@anonymous-vr5qn 3 года назад
​@@naveenautomationlabs can u please explain how to add JSON path in my code package simulations package simulations import io.gatling.core.scenario.Simulation import io.gatling.core.Predef._ import io.gatling.core.session.Session import io.gatling.http.Predef._ class DealerstatisticsSimulation extends Simulation { val httpConf = http.baseUrl(url = ":8081/") .header(name = "Accept",value = "application/json") .header(name = "Content-Type", value = "application/json") .header(name = "Authorization",value = "Bearer ey0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJTeXN0ZW0iOiJqZHhHcGE5d0UwOURWR2E1ektnYUEvVVZIZFlMcGZnTG51MXFmSm5mUlZBPSIsImlzcyI6Imh0dHA6Ly9lYWwtYWxiMS0xNzg0NzUyNTgyLmFwLXNvdXRoLTEuZWxiLmFtYXpvbmF3cy5jb206ODA4MS8iLCJhdWQiOiJodHRwOi8vZWFsLWFsYjEtMTc4NDc1MjU4Mi5hcC1zb3V0aC0xLmVsYi5hbWF6b25hd3MuY29tOjgwODAvIiwiZXhwIjoxNjE1OTY4MzQ1LCJuYmYiOjE2MTMzNzYzNDV9.cDvTuxDvi1l4AV_zP0QYTQr1Sgq7htjpULdPPTJpYe4") val scn = scenario(scenarioName = "Dashboard statistics") .exec(http(requestName = "Dashboard stat") .post(url = "/api/mobileDealerDashboard/statistics") .body(RawFileBody(filePath = "./src/test/resources/body/Input.json")).asJson .header(name = "Content-Type", value = "application/json") .check(status is 200)) setUp(scn.inject(atOnceUsers(users = 1))).protocols(httpConf) }
@anonymous-vr5qn
@anonymous-vr5qn 3 года назад
Please help
@sayalisinkar3559
@sayalisinkar3559 2 года назад
can we connect kafka and database using gatling important and urgent
@RamandeepSingh-xj3rf
@RamandeepSingh-xj3rf 3 года назад
Very clearly explained, thanks for this helpful explanation.
@SaiVlogsOfficial
@SaiVlogsOfficial 3 года назад
Hi sir, you have explained very clearly, Thanks for that... Could you please explain correlation for without JSon
@poojasinghani4569
@poojasinghani4569 2 года назад
Hi sir, any way to remove timestamp from outputDirectoryBaseName. Need to fetch index.html and upload it on jenkins. Can you please help on this?
@alok0501
@alok0501 3 года назад
Thanks Naveen, again thank much for this efforts. I am following and created sample project. Now trying to implement in my project but all API are secured and need Authorization as header which uses bearer type access token. I do have API to generate the acess token but am stuck to pass this access token in another scenario header .do we have something where I can call this access token generation method before calling actual test and how we can save globally this variable so that I can use in header.
@naveenautomationlabs
@naveenautomationlabs 3 года назад
one video is coming today to cover the same use case.
@alok0501
@alok0501 3 года назад
@@naveenautomationlabs thank you :)
@alok0501
@alok0501 3 года назад
@naveen could you please confirm , do we have any solution for this..I see no videos on this topic.
@BRGrungge
@BRGrungge 3 года назад
Thats a great job, thanks man!
Далее
#5 - POST API call in #Gatling with JSON Payload
19:09
Офицер, я всё объясню
01:00
Просмотров 3,7 млн
Gatling Java Version - Beginners Tutorial and Guide
15:04
Gatling Step by Step Masterclass | Part 5
1:21:19
Просмотров 1,1 тыс.
Офицер, я всё объясню
01:00
Просмотров 3,7 млн