REST Testing in SOAP UI

Testing Using SOAP UI Simple Object Access Protocol User Interface (SOAP UI)
41 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$69.99
List Price:  $99.99
You save:  $30
€65.51
List Price:  €93.59
You save:  €28.07
£56.31
List Price:  £80.45
You save:  £24.13
CA$95.76
List Price:  CA$136.81
You save:  CA$41.04
A$107.69
List Price:  A$153.85
You save:  A$46.15
S$95.27
List Price:  S$136.10
You save:  S$40.83
HK$548.21
List Price:  HK$783.19
You save:  HK$234.98
CHF 63.99
List Price:  CHF 91.41
You save:  CHF 27.42
NOK kr766.70
List Price:  NOK kr1,095.33
You save:  NOK kr328.63
DKK kr488.53
List Price:  DKK kr697.93
You save:  DKK kr209.40
NZ$117.93
List Price:  NZ$168.49
You save:  NZ$50.55
د.إ257.06
List Price:  د.إ367.25
You save:  د.إ110.18
৳7,672.34
List Price:  ৳10,960.96
You save:  ৳3,288.61
₹5,831.54
List Price:  ₹8,331.14
You save:  ₹2,499.59
RM334.37
List Price:  RM477.70
You save:  RM143.32
₦88,222.39
List Price:  ₦126,037.39
You save:  ₦37,815
₨19,408.82
List Price:  ₨27,728.08
You save:  ₨8,319.25
฿2,591.14
List Price:  ฿3,701.79
You save:  ฿1,110.65
₺2,276.07
List Price:  ₺3,251.67
You save:  ₺975.60
B$359.20
List Price:  B$513.17
You save:  B$153.96
R1,339.40
List Price:  R1,913.51
You save:  R574.11
Лв128.12
List Price:  Лв183.04
You save:  Лв54.91
₩96,245.98
List Price:  ₩137,500.16
You save:  ₩41,254.17
₪263.24
List Price:  ₪376.08
You save:  ₪112.83
₱4,030.89
List Price:  ₱5,758.67
You save:  ₱1,727.77
¥10,844
List Price:  ¥15,492.10
You save:  ¥4,648.09
MX$1,188.01
List Price:  MX$1,697.24
You save:  MX$509.22
QR253.94
List Price:  QR362.79
You save:  QR108.84
P970.94
List Price:  P1,387.12
You save:  P416.17
KSh9,413.65
List Price:  KSh13,448.65
You save:  KSh4,035
E£3,350.77
List Price:  E£4,787.02
You save:  E£1,436.25
ብር3,964.81
List Price:  ብር5,664.26
You save:  ብር1,699.44
Kz58,437.56
List Price:  Kz83,485.81
You save:  Kz25,048.25
CLP$66,749.46
List Price:  CLP$95,360.46
You save:  CLP$28,611
CN¥507.15
List Price:  CN¥724.53
You save:  CN¥217.38
RD$4,131.55
List Price:  RD$5,902.47
You save:  RD$1,770.91
DA9,407.33
List Price:  DA13,439.62
You save:  DA4,032.28
FJ$160.49
List Price:  FJ$229.29
You save:  FJ$68.79
Q543.50
List Price:  Q776.47
You save:  Q232.96
GY$14,625.47
List Price:  GY$20,894.43
You save:  GY$6,268.95
ISK kr9,845.49
List Price:  ISK kr14,065.59
You save:  ISK kr4,220.10
DH706.45
List Price:  DH1,009.26
You save:  DH302.80
L1,245.82
List Price:  L1,779.82
You save:  L534
ден4,030.78
List Price:  ден5,758.50
You save:  ден1,727.72
MOP$564.26
List Price:  MOP$806.12
You save:  MOP$241.86
N$1,339.20
List Price:  N$1,913.23
You save:  N$574.02
C$2,563.14
List Price:  C$3,661.78
You save:  C$1,098.64
रु9,324.38
List Price:  रु13,321.12
You save:  रु3,996.73
S/257.63
List Price:  S/368.06
You save:  S/110.42
K264.67
List Price:  K378.12
You save:  K113.45
SAR262.51
List Price:  SAR375.03
You save:  SAR112.52
ZK1,801.79
List Price:  ZK2,574.10
You save:  ZK772.30
L325.94
List Price:  L465.65
You save:  L139.71
Kč1,653.47
List Price:  Kč2,362.20
You save:  Kč708.73
Ft25,766.18
List Price:  Ft36,810.41
You save:  Ft11,044.22
SEK kr760.51
List Price:  SEK kr1,086.49
You save:  SEK kr325.98
ARS$61,084.05
List Price:  ARS$87,266.68
You save:  ARS$26,182.62
Bs481.20
List Price:  Bs687.45
You save:  Bs206.25
COP$273,176.37
List Price:  COP$390,268.69
You save:  COP$117,092.31
₡35,080.64
List Price:  ₡50,117.34
You save:  ₡15,036.70
L1,718.72
List Price:  L2,455.43
You save:  L736.70
₲516,687.24
List Price:  ₲738,156.27
You save:  ₲221,469.03
$U2,685.15
List Price:  $U3,836.09
You save:  $U1,150.94
zł283.11
List Price:  zł404.46
You save:  zł121.35
Already have an account? Log In

Transcript

We'll come back for my seventh lecture for unsupervised. In previous classes we did, I'm sure in previous class in the sixth class, there will be big ball security district. Now we will in this class probably one more I probably shouldn't do this for last. Okay. We'll create a new restaurant. Okay.

Now, let's do this. Um, I have this I made this. So yeah, so I wanted to show you for visitors, various results of different different projects, but unfortunately, I think that is not gonna happen. We did only four number conversion, right? We have whether we do NASA does NASA people have this one more and delay starts. So if I'm not doing that, take it as homework.

Okay, homework homework, um, you have this handout, so you're free to do just copy and paste. Okay? Okay, so I had this rest, we'll try to do this, how we will keep this one and I can go ahead and create a new rest project, okay? Or I can go ahead and click on this other one works. So what have you already? Oops, I did something.

Okay, now this is good. So this is my rest project. Okay, great. So now what I'm going to do here, so this is my parameters. So with that difference between this restaurant wisdom wizard is Web Services description language. Okay, rest is representational transfer.

So it's not same, it's a different when you put this name, this is a little goofy on JavaScript as you want. This is pitch don't even let's go to this website actually you can go to this website and look into this website or exactly the website is. So this is a website so yeah, this is we are trying to do this one. This doesn't explain much of this but Okay, so what we'll put here is pitch tone, we'll rename it and put as pitch tone. Get all right. Okay, good.

Now, the similar way, you know, we can do okay, so luckily, we So we don't have a test case for this right tomorrow. Okay. We'll figure it out later. Now what we'll do is run the whole project. So this is the whole project, which told users is no number curmudgeon. Oh, and by the way, I told you, right, you can put password protect, go ahead and click on this and you can protect it through password and this password so that no one can access this.

Okay, you have a reef folder, you created this project, okay? Okay, so what you can do here is go ahead and click on this and I double click it. Let's see what happens. So it's running. Good. So it's like similar to what we did with Docker.

But this is a little bit different. This has the endpoint and this has, its its kind of a little bit different. Okay, so this is again, an XML file. Okay, so, you know, so we are using get property you're using get here, okay? Um, but similar but not saved and wisdom okay. And this is something again you can assign in partner we are migrating.

So you can have this endpoint to that we can do that i mean for every endpoint you need a different restful. Okay? So we ran that as a complete project, okay, but we want to run by specific arrest a script, okay, that was complete project And oh, by the way log, you can see this logs, everything loaded, good. Everything was good. So these guys have some test sample which are not running at Harley, my thing probably might not work for you too. So that All right so that said you're gonna have to take this separate URL version but I hope this you know this one works for you.

So this is again similar you get this request, get the response see the response from the server. But here you have this a lot of options okay? Check it out HTTP log, there's not much memory lock how much oh this who this is thing too much memory, okay. Doesn't matter. Nothing to do with this main memory is used only for load testing. That is, you want to make sure that how much memory it is consuming and why it is consuming that much.

Okay, so the which kind of method you're using here is important. This is the rest. Okay? restaurants not restaurant Oh, just don't go to this restaurant representational transfer. Okay. This is similar to wisdom, but here have various option get post put delete head options.

Crease So, we will just use this get option and run the script. So here I am running all you one script. That is CCU care. Running rd is c. d is the RTS, which is TM or ETS IDs. And if you see here, this is running here too. And it's trying to find out what's going it.

What happens is, it goes to the server it request it's actually in the get method. You can do remove delete method in the various options we have seen, right? But we don't want to use that because this is actually wanted to create a test case for this, but let it run with seniors. Seeing too much time probably it's not supposed to take too much time and you want to add assertions to I don't remember it stayed this much time for this. But when we see this from our road, so this thing is not actually I'm not working on the register. Oh, it's done.

Okay, it's done. Okay, it's done. And it took too much time. The response time is 5254 milliseconds and consumed as much Oh, let's see my memory. Look at the spike, despite how much memory to replace, this is dangerous. Okay, but Okay, this XML Okay, so this is a Jason, this is not an XML to the throat, you cannot see this.

No, you have this response. You have this response only Jason. Okay, so this is Jason that's what they say. Right. Susan Jason. So that's how You know, you can use this or this to bait man.

I said I wanted to get some simple one like we did for number conversion rate easy. From 10 number two figures 10 to $10 numbers $2 and numbers to figure I'm sorry, numbers two words. But the thing that was easy, right? So that was three. Okay, so this is similar, but only thing is a JSON JSON format. Okay?

All right. Now let's do this. Let's use this. I don't have this test case. So we want to create a test suite. This creates a test seat for our guests.

Watch out for that too. Some cities have different binding so I guess you have this is I think this is the only thing. Okay. Okay, good, good. So, here's the thing. We ran this.

This is not what we wanted technically, because we can add assertions and other stuff. Now this is what we wanted. Okay, now we okay let's do this. We don't need on this now. Okay. So, what we want these run our test case so what I will do here is I will run this whole test and find out this run this Because he doesn't want to run uptime rate, so it's running.

So you can do this for you can also do load testing, security testing. We have already done that in previous classes. You want me to do it again, we can do it again. But no point of being it again, because I have one more class after this. And we will. I'll show you that functional districting.

So in that, okay, so this ran successfully, but there is no assertion so when it lands successfully, family are true for this testing. It will be pretty quick. Because you already know So. So risk is similar of Oh, actually, we just ran the whole sector. Right, who's the seat? We have ran.

So we Go read that we will run a particular script. This is a particular script. Hold on, you're just killing it script. This is not a time. So load testing will take more time if this is so this is actually the real URL as you are in here. So you're actually looking into this and you know, Okay, good, good, good, good.

Now what happens is you just put it here. Um, so you can use various methods. We are around this. Probably paying for two pieces there now fine. This is the thing you can add new this. Okay, so what I'll do here is in my test case, I want to add a search All right.

At the end of the day, the assertions are very important. I mean, it's important it's one of the, you know, one of the part for your testing in soap UI. So how this is all for testing, okay? It's most of the risk for the testing in soap UI. Okay. All this we are doing for testing.

Developing is a different thing altogether. So you know, we are not touching. Okay, so assertions assertions what I'll do is here I will take this doggie, a body who distinct is doggy and click on add an assertion. Can we steam too much as opposed to a commission, but this is different keys actually filled in this is different. The visa was pretty easy man this song. I was Piece of cake images today and just run the script.

This is something altogether. Everything is different. Here you're using Jason. Okay. And something got stuck everything else not actually. So this thing got stuck.

It's probably cannot see the memory. So I'll see the memory from Task Manager because what we also see the memory from the task manager, see what's going on. Oh, so CPOE life Is 50% and my whole thing is I think utilized by this kind of choosing 100%. So, I can the process for now, and we will run this again. Okay? We can something went wrong really.

And this is the second time we went down selfies and Sophia why baby being that was not saved, that was really too bad. But nevertheless we have that URL and we'll run that URL again and try to see in. We'll see how he comes. I hope this doesn't happen. assertions are very important. Here you know use assertions Okay, this will not save.

So you some people actually quite close just say retirement. Okay, this is my arrest you are okay, I have closed This won't do much of memory utilization. Go ahead and click on that and use this one. Go ahead and click on OK. And it automatically creates since I'm not running that again because we already ran this rest project one so I'll leave Name it bit stove. Okay. And go ahead and click on bootstrap.

Okay, mobile. Now what I'll do here is for this pet store, I create a test case. Now I couldn't rename a test case, which drove home to his seat and specify the test case. Yeah, this is one. You have this option, I just need to exclude everything. Okay, so let's go ahead and get this one.

And let's run it. As usual. It's running. See this? Look at the memory congeals a lot more than we can Since memory man eats, allocated and if you can see the spike, a lot of memory is being used. So this thing takes will be timeless rest, a little bit complex than normal.

Here you find this custom properties again you can lock your project subdue you a lot of options for you know you content is huge password. Here is a spike, look at this. It's using every resource of your CPU that is allocated. So be careful with this. Okay, so this is taking a lot more memory than what actually is And when we get responsive, we only need to have some patience. Actually, this is this is taking too long.

But let's wait for it to see the result it will be the same what we have ran, but the only thing is this is the test case. Okay, great. So this has successfully ran and see the memory test consumed. You can take a screenshot, okay? It's very important. So that go ahead and see this data.

Okay, so here we have a lot of things. So I have to put an assertion that state doggy, doggy here the doggy I will take this and add as an assertion So this Halloween stuff again, I have not seen this thing as dark before. But probably we wait. We wait for two minutes and see if things happen because this is very complex. This is actually one of this complex, complex the rest. It's not supposed to take this much time, but for some reason, extreme for if this thing doesn't work so we go to low testing and move No we leave because I'm not exactly sure how long it will take.

I actually ran this before but it didn't take this much time something is wrong with the probably this the software or you know something wrong with the server. I supposed to save this one. Once I ran it it's supposed to save this. So everything gets Aha. Now it's showing up. Let's find out.

See, full money system is getting large, stinking actually my son sometimes becomes so hard that All the fines are running in the system. Okay, good. So but this is how you can do it right? I mean, this is how we can use it. And you can add assertions. It's a similar process when you go for this we go how you did for Unfortunately, this is too long, because this is a to bake.

Probably I will go to sleep and come back and after that it might work. So there are too many IDs. If you see that this is readable, okay, so this is a JSON format. It's readable, and you know, you have this ID and it's still stuck. Probably will take more time our guest for Blitz let me do this if they know it's worth it. Okay, so what I'll do here is since this is not working right now, we close this again.

We'll try this look at this. It's using 100% of my CPU time to back. Okay, no. Actually this is so what you can perform that I mean you can perform it It might take longer time than what activities but This so I guess what, I have this save it before this thing gets screwed up. So that okay and go ahead and get on that. Okay, so here I renamed it as it's to get a new DICOM okay and I created this used great to see Okay, and put a test case, find rigor.

And go ahead and click on OK. All right. So let's close everything. And what do we first thing is let's save it man. You're missing this. So you're gonna see this is so you can save it anywhere but I have this some specific information because this is installed in my view it projects probably I create a folder called breast in Okay, good. So I've saved it now.

What Do is here. Something is okay, good. Now, we go to this request. Okay, good. Now since we have saved it, we go ahead and click to go ahead and click on contains. And what I will do here is add this assertion to that.

Okay, click on OK. There's one assertion, but I need to run it. Let's run this now. All right, this should be good. Hope this should have no issues No. So let's find out and we actually Communication format, they show in the JSON format for say running takes some time.

But it does the work. So as you can see the lives pay attention to marks, pay attention to your labs, says one. This is the other way of looking into it. I will see my memory as well as CPU usage. See how much space is being allocated, what I'm trying to do most utilizing my hundred percent of my CPU. So what's happening is this is my system is getting hot.

So you can already This is something which is successfully fade so because this is too much data I'm not sure why it's it didn't happen before actually it ran good bird for some reason my memory is being utilized just fine but it's carts completely. certain thing is almost everything is bad stuff actually. So but the concept is remain same, the whole point is just get the request, run it and get the response. You will get the response for this too. But probably I'll try for different wisdom, different issue. So we close this again this thing really gave me a problem just because this thing is getting stuck.

It's not supposed to take that much amount of time but but some reason is happening. So I will be using a different So actually you can use the beginning for the project. Let's get started to do that. import a project there you actually already have it. So I think I have this one. See face to viewing tutorials, superior tutorials.

See I have this restaurant or this thing is not at all working. Okay, so this card loaded here Fine. Let's save this. Okay, so, I'm here this thing is actually not working, but we'll find out let's run this okay. This is And if you see this received like localhost 8080 refused See there for details okay error log gumminess error log. So the problem is, you know, this is not the URL right so that's that I you need the Apache to run this to this reason is not working.

So this doesn't work either way. So this is pretty much useless at this point of time. Okay. So we'll not worry about it, but storage good. This is running. Okay.

So this is running. We have run that right. closes. Okay. So this is good. This is running.

Okay. And only the assertion part is getting stuck. But not to worry that we'll also be working out once you know who once we will figure it out, actually social meeting, you know, I think I use some code. Actually I use ex parte using the next part and find out and it will. But in this case it's so shifting is really not working. It's not that it's not working for the for this specific, you know, our case, it's actually saving the script.

Keep an eye on memory lock, see how much resources it's consuming and we'll see this Oh, yeah. Okay, good. So this is good. I mean, it's running well now then good. I mean, there's nothing wrong with the script and there's nothing wrong. Only I do, if I'm the moment I'm clicking this, there's something happening.

I'm in the sting too much of time to see here, it's already taking like 4593 milliseconds, that's utilizing this amount of bytes. So not that I cannot use it, it's like, you know, which takes too much time. So we let's not do that one. So let's go pretty quick for load testing for this. It's similar. Just go ahead and add load test one.

And we'll just add for 60 seconds and by default, and let's run it. In this case, there is no change. Values we'll see the graph how it works. There's nothing here and actually so load testing for this is pretty much not working. No testing is good for only four reasons. Okay.

So we know that load testing is not possible for rest applications. So let's complete it and see the large 92% and be done with this. Oh, okay. This is 100% but this didn't stop here. Okay, let's see the locks. Connection shut down.

We're still it's showing us. Okay. So, stop here. And once you have stopped, we can view the graph. There is no graph, because there's no data, right? There's no data snap lolling within 000.

So, okay, so we just run pretty big a security test. And this we go for cross site and reload barometer. Same thing. This should work for CPD distinct should work. Let's see. It'll be okay.

It doesn't work. So. Okay, we got canceled the week on Sunday because we got a lot of errors here. So this is just didn't work any good for. So this is not good for low testing and security testing. Okay.

Is it good for testing the rest? Okay. And so that's pretty much okay. So that's pretty much but unfortunately we were not able to add assertions, right. That's the only bad part. We missed it, but you can if you have, you have time, you can do that.

And this is taking too long. too long but it runs great runs but because the script is actually too big script This is very big script and I can run it again it runs but only assertion is stopping that assertions the moment and put the assertion everything is getting stuck here not that it doesn't get added up. It's like taking a lot of time. So okay, so that's pretty much so you can try that at home. You know this adding an assertion assertion can be added to any this arrest are for everything you can do. I think for no testing did we had this option we didn't have this option.

Writing assertions, right? So we can do for wisdom, we still did it perfectly fine. We didn't had any issues. For only for this one, we are not able to add assertions which poster and I did that actually. I did that. But for some reason at this point of time, it's not running but not discontent.

Again, I have a lot more options actually. So, you know, so that's pretty much okay. So you can do as your homework if you so this is pretty complex website actually don't try to sample but the sample problem is you want this thing Apache thing running, but because it's it's running on localhost, right, you want that Apache thing to make it like a server. So things like it's a server instance. So that's, that's the reason that it's getting free. So that's pretty much so we can And I'm over, something happened.

I mean, it works actually works, but Bing is extinct too much time. And my sister is getting picked up because the amount of memory so using this amount of memory, it's using it as like hundred percent. Look at this graph. So I mean not that it's not working, it's like taking too much time for at least one thing together. So it's taking too much of resources and my thing is only one full system. So we stop here and enough for closes actually we clauses we can this 72% of memory and 61% of sub losting one GB of memory it's stuck somewhere it's okay so that's pretty much how you can add a person you know if you have good you need a lot of memory actually better system and better to add this for some reason is not working.

I did that before it will it will working fine for but you can do it as a homework. It's similar thing like wisdom, but deciding is in your wrist. Okay, so that's pretty much it. I hope you like this video. Yeah, I mean that was unsuccessful, but nevertheless, you can take it as a homework. Dude as your project leaders that should be good.

You have this option to So you have this and you can use your own. Okay? And you can do this whether one and mizdow for NASA and millage tax, so you have this option students, okay. And that's pretty much and I'll see you the next class that will be the last class for, you know, testing, application testing, I'm sorry, functional testing using soap UI. Okay. So thanks for watching and see you in the next class.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.