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
€66.27
List Price:  €94.67
You save:  €28.40
£55.39
List Price:  £79.13
You save:  £23.74
CA$98.13
List Price:  CA$140.19
You save:  CA$42.06
A$107.73
List Price:  A$153.90
You save:  A$46.17
S$93.76
List Price:  S$133.95
You save:  S$40.19
HK$544.73
List Price:  HK$778.23
You save:  HK$233.49
CHF 61.80
List Price:  CHF 88.29
You save:  CHF 26.48
NOK kr772.72
List Price:  NOK kr1,103.93
You save:  NOK kr331.21
DKK kr494.34
List Price:  DKK kr706.23
You save:  DKK kr211.89
NZ$118.90
List Price:  NZ$169.87
You save:  NZ$50.96
د.إ257.06
List Price:  د.إ367.25
You save:  د.إ110.18
৳8,323.66
List Price:  ৳11,891.45
You save:  ৳3,567.79
₹5,909.11
List Price:  ₹8,441.95
You save:  ₹2,532.83
RM313.06
List Price:  RM447.25
You save:  RM134.19
₦116,728.62
List Price:  ₦166,762.32
You save:  ₦50,033.70
₨19,349.93
List Price:  ₨27,643.94
You save:  ₨8,294.01
฿2,418.69
List Price:  ฿3,455.42
You save:  ฿1,036.73
₺2,421.05
List Price:  ₺3,458.79
You save:  ₺1,037.74
B$406.02
List Price:  B$580.06
You save:  B$174.03
R1,265.11
List Price:  R1,807.38
You save:  R542.27
Лв129.77
List Price:  Лв185.40
You save:  Лв55.62
₩97,597.80
List Price:  ₩139,431.41
You save:  ₩41,833.60
₪261.71
List Price:  ₪373.90
You save:  ₪112.18
₱4,123.18
List Price:  ₱5,890.51
You save:  ₱1,767.32
¥10,762.63
List Price:  ¥15,375.85
You save:  ¥4,613.21
MX$1,416.38
List Price:  MX$2,023.49
You save:  MX$607.10
QR254.03
List Price:  QR362.91
You save:  QR108.88
P950.29
List Price:  P1,357.62
You save:  P407.32
KSh9,046.20
List Price:  KSh12,923.70
You save:  KSh3,877.50
E£3,467.03
List Price:  E£4,953.11
You save:  E£1,486.08
ብር8,622.47
List Price:  ብር12,318.34
You save:  ብር3,695.87
Kz63,865.87
List Price:  Kz91,240.87
You save:  Kz27,375
CLP$68,034.44
List Price:  CLP$97,196.23
You save:  CLP$29,161.78
CN¥506.75
List Price:  CN¥723.96
You save:  CN¥217.21
RD$4,196.84
List Price:  RD$5,995.75
You save:  RD$1,798.90
DA9,336.57
List Price:  DA13,338.53
You save:  DA4,001.96
FJ$158.85
List Price:  FJ$226.94
You save:  FJ$68.09
Q538.15
List Price:  Q768.81
You save:  Q230.66
GY$14,572.68
List Price:  GY$20,819.01
You save:  GY$6,246.32
ISK kr9,629.22
List Price:  ISK kr13,756.62
You save:  ISK kr4,127.40
DH697.40
List Price:  DH996.34
You save:  DH298.93
L1,272.08
List Price:  L1,817.34
You save:  L545.25
ден4,077.86
List Price:  ден5,825.76
You save:  ден1,747.90
MOP$558.50
List Price:  MOP$797.89
You save:  MOP$239.39
N$1,261.49
List Price:  N$1,802.21
You save:  N$540.71
C$2,563.56
List Price:  C$3,662.39
You save:  C$1,098.82
रु9,404.05
List Price:  रु13,434.94
You save:  रु4,030.88
S/264.76
List Price:  S/378.24
You save:  S/113.48
K280.20
List Price:  K400.31
You save:  K120.10
SAR262.74
List Price:  SAR375.36
You save:  SAR112.62
ZK1,920.74
List Price:  ZK2,744.04
You save:  ZK823.29
L329.81
List Price:  L471.18
You save:  L141.36
Kč1,677.50
List Price:  Kč2,396.54
You save:  Kč719.03
Ft26,973.98
List Price:  Ft38,535.91
You save:  Ft11,561.93
SEK kr767.99
List Price:  SEK kr1,097.18
You save:  SEK kr329.18
ARS$69,886.30
List Price:  ARS$99,841.85
You save:  ARS$29,955.55
Bs481.32
List Price:  Bs687.64
You save:  Bs206.31
COP$309,520.29
List Price:  COP$442,190.80
You save:  COP$132,670.50
₡35,473.68
List Price:  ₡50,678.85
You save:  ₡15,205.17
L1,759.47
List Price:  L2,513.64
You save:  L754.17
₲542,904.89
List Price:  ₲775,611.66
You save:  ₲232,706.76
$U3,004.92
List Price:  $U4,292.93
You save:  $U1,288
zł286.84
List Price:  zł409.79
You save:  zł122.95
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.