SoapUI Beginner Tutorial 10 - How to run a Test Case - from GUI, Groovy and Command Line

  Рет қаралды 43,201

Automation Step by Step

Automation Step by Step

Күн бұрын

Пікірлер: 48
@gtamantube
@gtamantube 4 жыл бұрын
This is a huge help. Very thorough series. Thank you!
@RaghavPal
@RaghavPal 4 жыл бұрын
You're very welcome Chad
@TuanLe-ve7lm
@TuanLe-ve7lm 5 жыл бұрын
thank for your videos, you literally save my life
@RaghavPal
@RaghavPal 5 жыл бұрын
You're welcome Tuấn
@lolworld2178
@lolworld2178 3 жыл бұрын
please suggest what "it" in iterating testcases?
@RaghavPal
@RaghavPal 3 жыл бұрын
I will plan to add some sessions
@arpitajain2773
@arpitajain2773 4 жыл бұрын
Your videos are amazing! Thank you for explaining so clearly
@RaghavPal
@RaghavPal 4 жыл бұрын
You're so welcome Arpita
@damianszczerba3458
@damianszczerba3458 3 жыл бұрын
I have a question. Do you think it is possible to show my ability to testing with this tool by adding code with test scenarios to some example webservie to github and then show it to someone?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Damian, you can do
@Bell4Fun
@Bell4Fun 6 жыл бұрын
at 7:14 what is the difference between Running and Finished in the output console
@RaghavPal
@RaghavPal 6 жыл бұрын
Running means it is in progress and Finished, its completed
@balajimohan3394
@balajimohan3394 4 жыл бұрын
Hi Raghav..Your videos are amazing! I am new to api testing sInce i need knowledge on Rest APi testing using Soap UI for my next project i was watching your tutorial and so far completed watching till part 10..it was very useful and i will watch the remaining. But i have doubt here that why Groovy is important to run a test when we can do the same from GUI..? Is there any additional thing that Groovy does than GUI?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Balaji, While doing manual testing, you can easily run from GUI, During Automation, you may need to run tests with in automated manner and with some conditions. During that time this knowledge will be handy
@testingtrail
@testingtrail 6 жыл бұрын
Hi Raghav, just wanted to point out something, happened to me, it may happen to anyboldy else: 1. there may be an error not loading plugins, for that you have to go to C:\Users\>user>\.soapuios there you will find a folder 'plugins', you have to rename it to something else so when you run the cmd it will not crash 2. if using something like com.eviware.soapui.SoapUI.logMonitor.getLogArea("script log").clear() to clear the log in soap each time you run it, that will not work in cmd either. Thanks again for tutorials! :)
@testingtrail
@testingtrail 6 жыл бұрын
Here's solution for second issue: if(!com.eviware.soapui.SoapUI.isCommandLine() ){ com.eviware.soapui.SoapUI.logMonitor.getLogArea("script log").clear() }
@RaghavPal
@RaghavPal 6 жыл бұрын
Jorge, thanks a lot for posting this. Hope it will help others.
@mohsenbou
@mohsenbou Жыл бұрын
thank you for your explains
@RaghavPal
@RaghavPal Жыл бұрын
Glad it was helpful!
@PS441-z9u
@PS441-z9u 3 жыл бұрын
Hi Raghav - Thanks for the great videos. I have question, while running from command line the summary report showing the details of entire testing. Is there a way to get Individual transaction time for each test cases instead total time in summary report? thanks.
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Sasi, not sure, will need to check online
@mayankjain9941
@mayankjain9941 4 жыл бұрын
Very nice session Thanks you!!
@RaghavPal
@RaghavPal 4 жыл бұрын
Glad you enjoyed it Mayank
@mohangopathi8347
@mohangopathi8347 6 жыл бұрын
Thanks for videos,they are helpfull
@RaghavPal
@RaghavPal 6 жыл бұрын
Glad to know this Mohan
@jonkc3635
@jonkc3635 5 жыл бұрын
I have a question. When running Test Case 2 using groovy, the "Hello " output text from the test case2's groovy script wasn't displayed anywhere. Why is that?
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Jon, it must be visible in the log of the specific step
@rahulsinghbist87
@rahulsinghbist87 6 жыл бұрын
Is manual testing compulsory for learning selenium?
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Rahul, its not compulsory, you can learn concepts with automation testing as well
@akashkapade5658
@akashkapade5658 5 жыл бұрын
Hi Raghav, how can we run multiple test cases at a time using Groovy Script?
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Akash, I have not tried it, Pls check community.smartbear.com/t5/SoapUI-Open-Source/How-to-execute-soapui-test-cases-parallel-and-in-one-go/td-p/38467
@akashkapade5658
@akashkapade5658 5 жыл бұрын
Thank you. Also thanks for such a nice knowledge sharing on different topics.
@lizjiang1919
@lizjiang1919 6 жыл бұрын
Hi Raghav, I copied and pasted the command from the testRunner, but the format was different than yours, and I did not get result message, only the error messages. Could you help me with this?
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Liz, pls check the logs, do you get any info there
@Bell4Fun
@Bell4Fun 6 жыл бұрын
Check for Braces they are square [ ]
@lanntm
@lanntm 4 жыл бұрын
thanks so much
@RaghavPal
@RaghavPal 4 жыл бұрын
You're welcome Lan
@anithakumari3834
@anithakumari3834 10 ай бұрын
How to export logout of a groovy step into a file
@RaghavPal
@RaghavPal 10 ай бұрын
Anitha If you're using SoapUI and want to export the output of a Groovy step into a file, you can achieve this by writing the results to a text file. Below are a couple of approaches you can use: 1. Writing Results to a File Using Groovy: - In your Groovy script, you can create a new file and write the desired information to it. Here's an example of how you can modify your existing script to export the results to a file: ```groovy def numElements = 10 // Replace with your actual results def matches = "Some matching codes" // Replace with your actual matches def fails = "Some failure details" // Replace with your actual failures // Exporting results to a file def today = new Date() def sdf = new java.text.SimpleDateFormat("dd-MM-yyyy-hh-mm") def todayStr = sdf.format(today) def filePath = "/User/documents/${todayStr}_report.txt" def file = new File(filePath) file.write("Number of nodes: $numElements ") file.append("Matching codes: $matches ") file.append("Fails: $fails ") ``` - Make sure to replace the placeholders (`numElements`, `matches`, and `fails`) with your actual data. The script will create a file named `report.txt` in the specified directory. 2. Using a Log File for Results: - You can also redirect the `println` output to a log file. This approach is useful for continuous logging during test execution. Here's an example: ```groovy def logFile = new File("output.log") // Assuming you have some variables like lastBuildEnvVars def entry = "Result: ${lastBuildEnvVars['PRODUCT_NAME']} Version: ${lastBuildEnvVars['PRODUCT_VERSION']} " + "Time: ${lastbuild.timestampString} " logFile.append(entry) ``` - Modify the `entry` string to include the relevant information you want to log. The `logFile.append(entry)` line will add the entry to the log file. Remember to adjust the paths and customize the content according to your specific use case. all the best..
@kshitijrastogi5674
@kshitijrastogi5674 6 жыл бұрын
Hi, Why do we use the code "new com.eviware.soapui.support.types.StringToObjectMap()" if null gives us the same response ? Also why does setting value as true gives "Finished" while setting value as false gives us "Running" in the output section?? Please Help..
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Kshiti, you will need to check the api docs of the classes for this.
@ТЗ-71ГалицкийИлья
@ТЗ-71ГалицкийИлья 5 жыл бұрын
how to make SOAP UI check the result for you automatically?
@RaghavPal
@RaghavPal 5 жыл бұрын
You have to add assertions
@vipintekade6400
@vipintekade6400 5 жыл бұрын
I got this error in below program please rectify this I can't move forward without this.Raghav can you available for video chat . def tcase = testRunner.tCase.testSuite.testCases("TestCase2") def prop = new com.eviware.soapui.support.types.StringToObjectMap() runner = tCase.run(prop ,true); Output : groovy.lang.MissingPropertyException: No such property: tCase for class: com.eviware.soapui.impl.wsdl.panels.support.MockTestRunner Possible solutions: class, testCase error at line: 1
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Vipin, where have you defined tCase, There should be a step above for this
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Getting Started With Testing in Flask
28:31
Pretty Printed
Рет қаралды 27 М.
STOP Learning These Programming Languages (for Beginners)
5:25
Andy Sterkowitz
Рет қаралды 739 М.
Think Fast, Talk Smart: Communication Techniques
58:20
Stanford Graduate School of Business
Рет қаралды 44 МЛН
SoapUI Beginner Tutorial 17 - How to create Script Assertions
17:40
Automation Step by Step
Рет қаралды 31 М.
SoapUI Open Source API request response chaining with JSON
25:44
Automation Step by Step
Рет қаралды 20 М.
Fluent Assertions in Unit Testing in C#
10:09
IAmTimCorey
Рет қаралды 14 М.
SOAPUI: Load Testing Simple Strategy
8:50
Ahmed Amer
Рет қаралды 14 М.
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН