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
€67.34
List Price:  €96.21
You save:  €28.86
£55.94
List Price:  £79.93
You save:  £23.98
CA$100.65
List Price:  CA$143.79
You save:  CA$43.14
A$112.33
List Price:  A$160.48
You save:  A$48.15
S$95.07
List Price:  S$135.83
You save:  S$40.75
HK$543.93
List Price:  HK$777.07
You save:  HK$233.14
CHF 62.61
List Price:  CHF 89.45
You save:  CHF 26.84
NOK kr799.33
List Price:  NOK kr1,141.95
You save:  NOK kr342.62
DKK kr502.32
List Price:  DKK kr717.64
You save:  DKK kr215.31
NZ$124.25
List Price:  NZ$177.52
You save:  NZ$53.26
د.إ257.07
List Price:  د.إ367.25
You save:  د.إ110.18
৳8,395.96
List Price:  ৳11,994.74
You save:  ৳3,598.78
₹5,947.38
List Price:  ₹8,496.63
You save:  ₹2,549.24
RM315.51
List Price:  RM450.75
You save:  RM135.24
₦108,935.23
List Price:  ₦155,628.43
You save:  ₦46,693.20
₨19,553.63
List Price:  ₨27,934.96
You save:  ₨8,381.32
฿2,411.01
List Price:  ฿3,444.45
You save:  ฿1,033.44
₺2,462.87
List Price:  ₺3,518.54
You save:  ₺1,055.66
B$432.25
List Price:  B$617.53
You save:  B$185.28
R1,286.40
List Price:  R1,837.80
You save:  R551.39
Лв131.81
List Price:  Лв188.31
You save:  Лв56.50
₩101,406.23
List Price:  ₩144,872.25
You save:  ₩43,466.02
₪255.41
List Price:  ₪364.89
You save:  ₪109.47
₱4,117.93
List Price:  ₱5,883.01
You save:  ₱1,765.08
¥10,970.49
List Price:  ¥15,672.80
You save:  ¥4,702.31
MX$1,420.18
List Price:  MX$2,028.91
You save:  MX$608.73
QR256.43
List Price:  QR366.34
You save:  QR109.91
P967.77
List Price:  P1,382.59
You save:  P414.82
KSh9,046.20
List Price:  KSh12,923.70
You save:  KSh3,877.50
E£3,563.73
List Price:  E£5,091.27
You save:  E£1,527.53
ብር8,934.81
List Price:  ብር12,764.56
You save:  ብር3,829.75
Kz64,250.82
List Price:  Kz91,790.82
You save:  Kz27,540
CLP$69,405.58
List Price:  CLP$99,155.08
You save:  CLP$29,749.50
CN¥510.85
List Price:  CN¥729.81
You save:  CN¥218.96
RD$4,272.98
List Price:  RD$6,104.52
You save:  RD$1,831.54
DA9,417.81
List Price:  DA13,454.60
You save:  DA4,036.78
FJ$162.47
List Price:  FJ$232.11
You save:  FJ$69.64
Q541.22
List Price:  Q773.21
You save:  Q231.98
GY$14,699.69
List Price:  GY$21,000.46
You save:  GY$6,300.76
ISK kr9,732.10
List Price:  ISK kr13,903.60
You save:  ISK kr4,171.50
DH705.15
List Price:  DH1,007.40
You save:  DH302.25
L1,289.19
List Price:  L1,841.78
You save:  L552.59
ден4,145.57
List Price:  ден5,922.50
You save:  ден1,776.92
MOP$562.37
List Price:  MOP$803.42
You save:  MOP$241.05
N$1,284.24
List Price:  N$1,834.70
You save:  N$550.46
C$2,585.91
List Price:  C$3,694.32
You save:  C$1,108.40
रु9,565.49
List Price:  रु13,665.58
You save:  रु4,100.08
S/262.28
List Price:  S/374.71
You save:  S/112.42
K284.79
List Price:  K406.86
You save:  K122.07
SAR262.99
List Price:  SAR375.72
You save:  SAR112.72
ZK1,944.48
List Price:  ZK2,777.96
You save:  ZK833.47
L335.15
List Price:  L478.81
You save:  L143.65
Kč1,692.70
List Price:  Kč2,418.25
You save:  Kč725.55
Ft27,859.13
List Price:  Ft39,800.47
You save:  Ft11,941.33
SEK kr772.53
List Price:  SEK kr1,103.66
You save:  SEK kr331.13
ARS$71,530.46
List Price:  ARS$102,190.76
You save:  ARS$30,660.29
Bs485.50
List Price:  Bs693.61
You save:  Bs208.10
COP$306,446.24
List Price:  COP$437,799.12
You save:  COP$131,352.87
₡35,334.71
List Price:  ₡50,480.33
You save:  ₡15,145.61
L1,783.55
List Price:  L2,548.03
You save:  L764.48
₲548,864.71
List Price:  ₲784,126.06
You save:  ₲235,261.34
$U3,122.15
List Price:  $U4,460.41
You save:  $U1,338.25
zł286.96
List Price:  zł409.96
You save:  zł123
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.