SoapUI Beginner Tutorial 8 - GROOVY Scripting in SoapUI | Getting Started

SoapUI Beginner Tutorial 8 - GROOVY Scripting in SoapUI | Getting Started

Automation Step by Step

6 лет назад

91,776 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Feroza Begum
Feroza Begum - 22.06.2023 05:39

Hello RaghavPal, Do you have any online course where we can learn readyAPI with AWS console connection and checking cloudwatch?

Ответить
Kevin Powers
Kevin Powers - 23.03.2023 20:26

You taught me how to run any testCase, which is awesome and just what we needed to reduce regression tests in soapUI. Many thanks and Kudo's!

Ответить
FosterSB
FosterSB - 03.05.2022 23:56

Your videos are very helpful and well organized. I like the use of notepad! When you get to the crux of a helpful point perhaps slow down a tad so that I needn't pause the video (if you're still making these years later). Thanks!

Ответить
ashish naidu
ashish naidu - 19.03.2022 10:18

Hi Raghav, your teaching is amazing and very easy to follow and did a hands on too and it was very productive. But in this video I was unable to follow much of it, I lost it at the very beginning itself maybe due to as I have zero programming knowledge. So, can you guide and assist me how to overcome this gap. Thanks again!

Ответить
Sagar Sagar
Sagar Sagar - 19.01.2022 07:53

context Analogy...if i understand it correctly ... once we create a class and its methods, then we call it from different class. But, here we need to define variable to the class -def testStep = testRunner.testCase.getTestStepByName("Hello"); .this is something like deciding which which fun activity to go in the amusement park. Once we decide, we need a different passes/tickets to play the different rides. these pass/tickets are "Context" testStep.run(testRunner, context); . Once we get the pass we get access to that ride/area in amusement park. Once we do enter there we can play the ride which is actual function calling activity. context.Hello.sayHello()

Lol..just trying to figure it out.confirm if this right and easy way to understand context..because context object is used in different languages as well for example dart in flutter.

Ответить
F.R.I.E.N.D.S
F.R.I.E.N.D.S - 14.11.2021 16:01

Thank You Raghav , It is very useful and very understanding .

Ответить
LOL world
LOL world - 15.08.2021 15:18

what is the purpose to write run method? Why we have pass those 2 arguments and from where they will get value?

Ответить
Prashant Mainali Music
Prashant Mainali Music - 14.07.2021 16:29

Can we call this class from a different project if yes then how?

Ответить
Prashant Mainali
Prashant Mainali - 13.07.2021 08:04

Hey can anyone answer that is it important to name groovyStep same name as the class itself

Ответить
Ash Win
Ash Win - 28.06.2021 16:51

What is the difference between context and TestRunner as both the usage are same??

Ответить
Rijo John Patric
Rijo John Patric - 07.06.2021 08:46

Do we have the feature for auto suggestion, what we experience in eclipse
@Raghav Pal

Ответить
harsh singh
harsh singh - 12.05.2021 16:44

Not working for me

Ответить
Roopashree Db
Roopashree Db - 05.02.2021 08:00

Hi Raghav..
How to stop testcases running in infinite loop
It is not stopping..it is running continuously

Ответить
vasu vasu
vasu vasu - 02.12.2020 07:03

Hi Raghav is groovy scripting same in readyapi and soupui tools

Ответить
Puja Nagraj
Puja Nagraj - 08.10.2020 19:39

I'm getting java.lang.NullPointerException:Cannot invoke method sathi() on null object

Ответить
Balpreet Singh
Balpreet Singh - 09.07.2020 02:24

I got confused by listening "Hello" multiple times.

Ответить
Yatishankar Bandyopadhaya
Yatishankar Bandyopadhaya - 02.07.2020 20:44

I strongly believe complete newbies like me find it very difficult to understand why are we starting with groovy in the first place. so far i had understood loading the WSDls, end point URLs, sending the request, getting a valid response, creating a test suite>test case>test step. From a practical standpoint it would be helpful for me to know why do i need to learn groovy after this. In my project on webservice testing i didnt need it. So if you could start with a basic intro as to why do we need groovy here will be helpful

Ответить
UHS Bangalore
UHS Bangalore - 26.06.2020 14:00

We have implemented this groovy explained in the video, its a big success for the project. Thank you!

Ответить
Jyothirmai Siva Ram
Jyothirmai Siva Ram - 15.06.2020 05:17

Hi Raghav,

Very well explained. Can you please provide syntax too? Example: to call a class that is defined in another test case. tcase=project.teststeps("").testcases("");

Ответить
Phil B
Phil B - 03.06.2020 20:05

Thanks again for your great course.
Is it possible to run a Selenium script using a Groovy step in a SoapUI test case? Do you go into that later in your video series? At work we have a step that needs to be carried out from a screen interface because there is no WSDL for it.
Also, I have a specific question about something I want to do on a project for my job. Would you consider doing a one-to-one session with me? I don't think it would take very long.

Ответить
Prabhat Adhikary
Prabhat Adhikary - 19.05.2020 03:39

Hi Raghav, You are an awesome teacher. As a student, the only thing that makes us more clear is if you give a meaningful name to a particular test case or test suit or for any method you are using will help us to understand in the best way. I am getting too much confused on name like test suit 1, test case 2, and so on. sorry about that. Else Everything is perfect.

Ответить
Nagendran prakash rao
Nagendran prakash rao - 07.05.2020 22:41

Thank you Raghav, that was very useful. I've connected to the DB successfully through JDBC request and successfully retrieve the records using SQl queries.. How can I compare the response values against the DB returned values using Groovy script? Can you advise please?

Ответить
Sana Sayed
Sana Sayed - 02.05.2020 19:02

Good explanation sir of every topic...keep it up

Ответить
Mayank Jain
Mayank Jain - 22.04.2020 13:16

Nicely explained about groovy scripting thanks a lot!!!

Ответить
Mahmoud Omar
Mahmoud Omar - 20.04.2020 21:12

Hello, Ragav Thanks for the brilliant presentation But testStep.run(testRunner, context) not defined into hello class

Ответить
shivaji288
shivaji288 - 29.03.2020 16:02

Hi I am getting while executing callHello groovy script java.lang.NullPointerException: cannot invoke menthod info () on null object line number 5 .

Ответить
Abhishek Sharma
Abhishek Sharma - 05.01.2020 11:49

Hello Sir, Thankyou for such great informational videos . Always follow your videos. Also please can you once upload a token handling video for Jmeter. Actually i am trying to handle dynamic tokens in Jmeter and not getting the exact results with regular expressions. I will be very thankful in case you can help me out that Groovy scripting in J meter as well.

Ответить
Kamal
Kamal - 17.12.2019 18:32

I like the way you explain things
thanks

Ответить
Vipin Tekade
Vipin Tekade - 19.11.2019 12:21

@Automation Step by Step
project =testRunner.testCase.testSuite.project;
tcase = project.testSuites("TestSuite3").testCases("TestCaseName1");
hello = tcase.getTestStepByName("Hello");
hello.run(testRunner, context)
context.Hello.sayHello("Vipin")
For this Program i didn't got the proper output ;
groovy.lang.MissingMethodException: No signature of method: com.eviware.soapui.impl.wsdl.WsdlProject.testSuites() is applicable for argument types: (java.lang.String) values: [TestSuite3] Possible solutions: getTestSuites() error at line: 2

Ответить
VIPIN TEKADE
VIPIN TEKADE - 14.11.2019 12:49

Hi Ragav
project =testRunner.testCase.testSuite.project;
tcase = project.testSuites("TestSuite3").testCases("TestCaseName1");
hello = tcase.getTestStepByName("Hello");
hello.run(testRunner, context)
context.Hello.sayHello("Vipin")
Output : got this below error please help .
groovy.lang.MissingMethodException: No signature of method: com.eviware.soapui.impl.wsdl.WsdlProject.testSuites() is applicable for argument types: (java.lang.String) values: [TestSuite3] Possible solutions: getTestSuites() error at line: 2

Ответить
Pragati Shukla
Pragati Shukla - 29.10.2019 17:05

Thanks for the wonderful video. Please let me know how to run more than on e test steps or test cases using single statement

Ответить
Ramzi Jelassi
Ramzi Jelassi - 29.08.2019 17:11

Thanks for the video

Ответить
nagaswa rao k
nagaswa rao k - 24.07.2019 20:15

hi thank you for giving this valueable infirmation great sir there no one canot expail like this clearly about groovy

Ответить
saifali sanadi
saifali sanadi - 01.07.2019 08:40

can u plz create video on how perform IO operation in groovy

Ответить
Anitha
Anitha - 26.05.2019 17:58

how to write this in a single line?
project = testRunner.testCase.testSuite.project ;
tcase = project.testSuites["TestSuite3"].testCases["TestCase1"] ;
hello = tcase.getTestStepByName("Hello");

Ответить
Arjun M S
Arjun M S - 22.05.2019 19:43

Hello Raghav always love your videos great explanation...can you please tell me how do we make JDBC connection and do database verification in groovy...it would be really helpful... thank you

Ответить
krishna dasari
krishna dasari - 04.03.2019 10:54

how can we validate the REST request using JSON with the help of groovy script

Ответить
SolitudeSerenity
SolitudeSerenity - 09.01.2019 08:38

Hi Raghav,

I need help with the blow can you help?

Test Step Name: Read Data from Excel file
Script Groovy Script
Web Services Method N/A
Activity
1. Read the inputs from a input.xls (define in project level property datafile) and set the values o the test case level properties x and Y
2. Run the Addition Test from groovy script
3. Fetch the result value from the response and set the fetched result value as the value to the test case level property z
4. Write the result value into the console log

Ответить
Lakshmi Avvaru
Lakshmi Avvaru - 28.12.2018 10:51

Thank you so much for helping me in all the project requirements I am in

Ответить
Prathibha B
Prathibha B - 23.12.2018 08:07

I get NullPointerException when I run callHello groovy... Error is at line -context.Hello.sayHello() Please help..

Ответить
Qenti Test
Qenti Test - 14.12.2018 11:04

Hey Raghav! Can you run python files with groovy script and can you use groovy script variable for testcase header valuer?

Ответить
Sreesatya Tarra
Sreesatya Tarra - 09.12.2018 08:28

As part of groovy scripting I'm unable to call 2 values from excel to do addition soap request . Please help. Its throwing error stating "org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script4.groovy: 3: unable to resolve class".

Ответить
Narmada A V
Narmada A V - 26.11.2018 16:40

Hi Raghav ,
Is there a video where we can give multi data for an xml using groovy

Ответить
Angel Aranda
Angel Aranda - 21.11.2018 23:21

Hello Raghav, do you have video where you show how to put the result of a wsdl in variable, so that in another wsdl that result can be used?

Ответить