Welcome back to my food tutorial for tutorial on soap UI. Okay, so in this class or I hope you guys have got familiar with or inner soap your and if you haven't started that's good. No you would have got you know some information. And this is workspace properties and retirement starts with a retirement. So yeah, you can find with documentation and go ahead and committee on want to get certified. We can try all those things.
All right. So here we're going to start I don't know why this starts with error. The moment I see this, it shows an error, okay? Let's not worry about it. Okay, so now what we are going to do is know So what we'll do here is new guess what we'll talk about wisdom now. So Web Services description language.
So this is what we will be talking about. Okay. We'll go to this slide pretty quick. And see. So here it is. This is an XML language, of course, we'll see that it's actually a web services.
It's to call a web service. That's a good thing. So here's an example for you. So why this vistal? And what is this all about? So it's used to call them web services.
That's a good thing. And let me give you an example here. I'll do I don't have that option, option here. Let me give you an example. So whenever you are, so that this thing works in differently in different way, but here's the thing. Let's say I'm in the United States, and it's Let's assume I'm in the United States.
Okay, I'm in the United States, and I'm calling Bank of America. Right? I'm calling this one eight in what money hundred number, I don't know, would have been one 800 number and call those guys I, you know given to this and Buddhists save the number and see. So unfortunately, those guys will have direct numbers, of course, but I am not aware of the diet number. So I have to go to all this idea. That's kind of incorrect to why the response, right?
So here's his thing. So whenever I use that IVR response, right, let's say you enter, say, your name, say I'll say mamita and I type it on, enter your password or PIN 189 or something like that. So, let me show you that actually, guess what we have this is screenshot, remember? So this is what happens when you actually call a bank or for my notice Bank of America I'm just seeing an example. So you give this information either by voice or by typing from your pad phone by write your name. What is your address to defy street?
What is city Willington it is just a normal country call us first name Steve's last name jobs or does your phone number and all this information SSN, you give all this information over the phone remember, when you call this bank or make only then they transfer this to the real x customer executive, unless and until they don't transfer it, you know that. So that is called idea. So that hat is this? Okay, that IVR is actually this. So this is the so this calls that web services actually. So this is what Allah Now I'm going to give you an example of Bank of America.
So that's what we are going to talk about is web services, description language, okay? Whenever you call those guys, you put that information that put information. And then when you send the request, right, it gets a response. Right? So that's the reason you get, you know, this is not a valid option, please enter one, please enter fi for English, please enter two for language to denote those kind of thing, right? So whenever you get those that goes through the request to the server and get the response, that response is what you get in the car.
Okay, so that is an example of wisdom. He calls a web service. Okay. So that's what I wanted to give. So that's what he would be testing. I mean, that's one of the examples.
That's not just one. There are a lot of example, web services. You know, you have so many things in web services. Everything is another Under observing society, so this idea is one of the example for Mr. Because what I wanted to give you an example. So this is an XML formatting for describing the network services set of inputs. Yeah, that's what we did.
So let's look into burner view here. So I have a client in working in the web services. Let's say this is a client. So I'm the client and I'm calling Bank of America, but I want the real customer executed, but I never get a real customer aggregator unless I go through all this process. Okay, then that so then it goes to the messages and then hits back. I have to put the trailer respond again, it's cost bird and hits back and I mean, this is like, goes for, you know, for a few times and then I put nine, I think it was at that time it was mine.
Then it transferred that to the end customer if we do otherwise I will be in the loop of this wisdom. Keep Putting these numbers keep putting this my date of birth, keep putting my SSN and all the things keep running around this whole day when we take like almost a one day, I mean, I tried to call that the Bank of America took like one hour, one one and a half hour I was tired. Now I don't they have this direct object and go to customer service and reading and after that. Now, I think it has been changed, probably. I don't know. But at that time, it was so hard for me to like, you see, this is how it works.
It goes to various process and it goes to server to get this operations. Okay, so this is how, you know you can use this. So yeah, so Okay, yeah, the structure the structure of this dude is important here. You have definition. It's an XML, we know the XML, right? You have to know XML for this.
So it's a definition and the message or definition type, what type it is providing in the message, what message are you, you know, are transmitting is very important. If you see the screenshot here, you have all this. So here your header body and the client, you see this track, and the client it does is this IP address. And the product ID is VG. So these are this information or tr cards fine message board type binding port service, okay, this is what you will be transmitting to the server so that you will get response from the server. Okay.
And namespace, we can go to that. Okay, so this is just a message you get what message you get from this, what method you're inputting to the server and what response you're getting. So that's about it. So, you know, yeah, so message him They're about to get temperature. So, you get a temperature from that particular server, okay. So, the zip code, you know, so this is what it is.
So you are putting here the code you have the zip code, cm 1981 I could follow the code but this was for testing what your job is with corruption good. Okay. So that's how it is and this operation. So, this already contains we still condense a lot of information in it and it you know, we will run by one of things quick and see how this thing works. Okay. And you can go through this document.
This is, as I said, this is theoretical part actually. I will add this one to my handouts. About a man Oh, yeah, let me go ahead and click on this and put it in here for this because he's talking production now so Maria. Okay, so right now Kate's crypto test. So this is important. Okay, so we'll go here and see what are we going to test?
So let's see here. I want to social, anything which ankle wisdom Ws do is actually the real wisdom file. Okay, so you can use this in browser, you know, I'll show you to browser first thing. First thing, go to this browser and see how this router looks like. Let's see this. So this is the XML file.
Okay, this contains a lot of information. This is small You're lucky, you go to small and the net the NASA thing and discover whether go as complex and nanoscience is much more complex than that. Oh, no, that's going to be dealt with your homework actually. So, Ah, here it is, I'll explain the easy one. The hard one is for your homework. Because that requires a lot of r&d and a lot of things you have to, you know, find out plan of things and, you know, it's kind of a more it's in a brainstorming brain doing for people who have to work on that and see how you have to get it.
Okay, so this is simple. This is a simple one page wizard port number, as it says as port definitions. It's an XML file. You see here, you can change this. I mean changing the car just sharpening up So here if you see here, so so this is one line, you It looks for you there's like one line code here, definition and a definition. But when you expand it, it has stripes message for pay binding services.
These are the important things to work with the contents. Okay? So, but you can go the message with the message is the parameter. And then you have this email you can also be a developer with the developer and creator one visitor. But one that's not what we are trying to do here. We're trying to understand and run this visa.
Let's run it. I mean, let's use this email was from us. So I closed this one. This is pretty easy. Actually, at that time. It was pretty easy, doesn't it?
And you know at that time, it was for me Cat easy booted developer used to do this endpoint. And this is the endpoint. I used to just put it and run it. That's it, it gets called the developer. Hang on, this is error. So I'm not even know changing these parameters.
Some of them I changed it. So this was the changed one. I actually changed my own parameters. But yeah, you have to change your parameters. But let's, let's see here. Let's go to either I can do here.
New for product, you can do the same thing. So I know the wisdom so I took this wizard and project name automatically changed for me for number conversion. Okay, I'll just use it. And what I'll do here is I will checkmark this create a test. See for my infinite wisdom. I remember this for testing.
Why? Because I've been doing load testing. can do load testing. functional testing we'll think about this later. And load testing will probably load testing and security testing. With probably I am Izumi will be in this class, but we'll check it out.
And to file files and projects. Okay, let's do this. We'll save it. We'll click on ok first thing, and it's running into Fusiliers is running. And now this is generating a test suit for you right. Now I can check the generative default load test.
For now I just not do that. Now I wanted to test see. So by doing this, I'll put a default and click OK. That was one test suite because it has two messages, I guess right? If you see this only message is the meaning But it's it has many visitors but two things right? The words to focus pass, Doris before. So probably the hardest thing so to test case one is number $2 and number two words, okay.
And this will be my second suit. All right. So two one I named rename it probably. Okay, now, this looks good. So this is my test case. Okay, these are my test cases.
Because I can either I can use this one or I can use this one. Okay. Probably I'll be using this my test cases not the original one. Okay. Now you have this load testing, security testing. We can use both of these things.
Okay, good. What we'll do right now, is we save this Yes. Where do I want to save? That's a really good question. Where do our percent save this on this will be Sophie's because I've saved this where I installed my soap UI right? I this will be saving as, as XML file, only its own file.
So can I create a new folder in numbers and put his number conversion This is I've never done this choose data in our sim right here. Okay. So what I did I said this morning just saving was really important for me because I'm moving forward with the project moving forward with the classes. You know, this becomes important because we'll be doing load testing and security testing. Alright. Okay, so see here's the two things we can do we can I actually supposed to explain you the assertions to my bad and most misstatement so assertion I didn't explain right.
I never explained that. So you can do that one. Or let's see, moving forward. I can explain you with assertions. But we complete this as a tutorial. Okay.
So this is my main dish two things if you see here, and number conversion show Piney is the main one and the block colors, you know, this block ones are my seats. That means my test cases that I have to run First, let's run that. What I do is this is the main thing. There's no run option A, B, C and E reduction. I don't carry it anymore. What I do here is right, this is options.
I'm really not bothered with the run option. I double click it. What I'll do is double click the PSA. Now let's find out what's happening. Alright, so this is what it's happened to what happened is, it ran two things here there are two things number two bonus number two words. Now in soap UI Pro, right, you can hear this there is no password.
Somebody does. Similar things. Oh, no, what before doing this, you have to see this soap UI log and see what's happening here. Want to see this after June 3 1520. Do you want to see here? What's happening?
What's it's trying to do how its current idea number $2? Number two words, it ran two scripts that is number $2. And number two of words, that's good. Okay. Let's watch it is in HTTPS locks, or HTTP logs is actually this log which we have logged in, right? So that's the HTTP log.
Okay, this is pretty much right. Okay, so here, this has these options. You can view this options. So this is sum of five you can view here what's happening. Okay, so has nothing to do anything here. Actually, unless you're a developer, you want to change something or you want to, you don't want to do anything.
You cannot do anything here actually. So this is what it happened. Forget These are the global elements schemas. Actually, guess what? We have this, we don't have in this action. These are the schemas.
This is the schema that happened. And the messages of course, we have this usages for messages. Of course 1234 you can put that as an assertion is good, but we didn't grant to get out. We are just running this as a whole bunch bunch of cool stuff. That means it's running the whole stuff whatever it is there. For messages, of course, for messages 1234 squared.
So we are good. And looking to this what is each message contains conversion of this XML, okay? Fine. four types, two numbers to balance This one's easy Actually, we get more complex into the next one, four types. We have this four types. If you see here, documentation input and two potential, great but they closed in this okay?
Any of this you have this four types of code, okay? The sub two types number $2. And number two words great. Then you have bindings Of course we have this bindings, the same XML thing is we are seeing here bird here we are viewing it to me in the tool area viewing that in a browser, that's only difference. All right, so that's the content of visible content. Okay, good.
So, if you the whole point of adding in a search But you can arise technically. Let's run this compliance Douglas myself complaints what happens? Let's run this. Let's run this and you got this people say no from the schools. We sold this was from IBM and declared a repo six have been passed on is not applicable. Really good.
So everything looks good Pass Pass, pass, pass, fail. Wanted to. I can only say this as an example. Unfortunately you know supposed to be don't PDF file or something, but probably can convert it. Let's see here. I can save it.
Let's not do that here. But I can actually do this in More info on probably you can export this into PDF are MS Word as a PDF file? This is a conversion you know you can see this one. Let's see here. If I have any option to save in Korea, there's no way of saving this actually improving considerate This is we're using over open source, right. So this is the config This is if any errors who seen this error log via via send to see anything memory node, you want to see how much memory is consumed.
I don't think this is required despite uptime, so let's not worry about it. Tools is a separate thing. So we just put it so this is pretty much when since this is we ran a whole bunch of stuff right? We And the whole bunch of wisdom. So we don't know what actually happened. So let's not worry, let's close this thing even close this.
Now, question comes when we run this, you know, we like the whole bunch right? I just use this and double click it you can do this for this too and this will run it and this compliance once you run this issues this again this is for number consider two to one. I mean, that To his surprise in the project number conversion, there are two things number conversion. Now, I'm sorry, number $2. And then you have somewhere to point x, which means shoe Yeah, there are two bindings. So that's the reason you have the students but They're not saying there's a difference in the web services contained.
Once you run it, the report once you run the report, you will see that actually there is a difference. Okay? So I close this. Okay? We're done. All right.
All right. Now, what I do here, instead of running the whole bunch, I go to in detail and test step one. So I have this tested one. For one binding, let's say the two bindings, right? For the one binding, like, I'll open this and go to number $2. If you see here, this thing's changed.
Its properties and values. More can add anything here. But let's double click it, see what happens. Oh, great. So when I used to do this, right, this was my supervisor. And this was the Point see here.
This was so easy at that point. I didn't had these many things. Let me show you that screenshot once again, he I like the screenshot. This was everything was in printer that no this was this thing and I suppose the only thing and that's it but now this will become more complex. So now what you will do here you will change some values, put some number here because this will convert numbers to dollars. Okay, that's the Web Services is all about.
Let's say I put them to the scooters. What is supposed to show it $10 because that number 10 it's converting into dollars so it will show you $10 Let's find out. Let's run this. See? Yeah, I mean it does change to figures. Okay, no danger you do not have scope.
But so what did did this 10 whenever I took 10, the response and this is a request, right? This is the request, and the response is going to is changing into $10. Very good. Let's try something else. hungry. Oh, I love this choice $100 or $100.
That's more specific. That's good. I will check it out my logs if I had any errors, and what happened when I use those consume a lot of memory. I'll see my TP log is sticking around things. And I'll see this memory logs memory logs not useful at this point of time. Because we are not doing any load testing.
Notice fingerprints, check the memory. How much memory it is to make sure less memory should be there. Okay. All right. So what is this web services? What this web service does, it changes into numbers $2 that's what it is the right numbers dollars.
That's what he does. It's that simple. But you know, the next project what I'm going to explain probably will be tomorrow's class. That will be much more harder because that doesn't do numbers to dynasty that is more complex. Okay. Now, let's put assertion assertion 30 Okay.
So Buddhists There is no juice, okay? So since it contains hundred so I quote the content as $100 because I want to check so assertion is like you're checking it right. So I want to put as you can have this option and click on this now have been associated. So now next time if I run this hundred, my test case should get passed. It's that simple. Okay, let's do that contains valid.
So this makes sense because my assertion was contained was $100 and it has $100. See, I use very easy one to explain you You're so good for me because that was easy. Really right. Now Now I show you how to fail that assertion. If I put 10 Of course, it's a 10. And they show that $10 Let's run it, but my assertion will fail, because it's $100.
Let's find out. Here we go. My test case has failed and everything became red color because 10 initial $10 but assertion was $100. Right, great. So now, the whole time. No, I'm glad that I've learned from you guys that have known how to use assertion in this.
I never knew how to use this assertion. Okay, this was the first time so it was good. I hope you understood what's a concept on Such assumption is to check whether the response is equal to the value what you have input. So you're predicting the value. It's not it's, it's not a machine learning or deep learning or something. It's not a machine learning.
But the mind is, you know, what is the best case and looks how it's going and right. You're normally so let's say I'm using 10. And I'll push up $10 and make the assertion I'm putting a stent. So that's that's the whole point. So let's kind of test case does that assertion? No, you got my point.
It's like rechecking the same thing. What are you supposed to get and putting your hundred but the response here is getting $10. So that is the reason my test cases failed. Does it make sense? I hope it makes sense. Then The easiest option is a typical assertion that I failed on the strength of but probably I try to, it's better to understand the easy way.
If I explain you in different in a complex way, you have to understand it. It's not me You have to get the gap. You get a good understanding on that pitch Now, if you're not getting it to no point so so let's see her again. So my content books. My thing was $100 buddy showing us $10 that was the problem. Now if I run this with hundred dollars, my assertion with now will pass because my assertion is valleys because we put $100 and the response is $100 does it make sense?
Right, I can put any number of assertions here. Get. I'll put one more assertion. So there are Oh, okay. So there are many options property condition, these are disabled, this is not using any of those Jason part, I try to practice this JSON part count. I just put a string or contains so that was easy a session.
Okay, so this is part of the test case in soap UI. So this is this was this was not there in previous one right? I mean, this thing I learned recently So, okay, and then compliance invalid HTTP code. This gets more complex man this this to this thing is this gets some more and more complex. When you're doing a security testing, oh, this this this thing will get more and more complex. But script assertion, if you know a script, let's say you're putting some script, let's say we want this script, you know, you can get that script associated.
Oops. Okay, I'm just using small one. So that's the reason it came in the green color, you see this green color. So probably, we go to this load, because I wanted to explain this one. And this is XML, you have this raw file, but RAW file is not that important. We are interested in XML.
So this one's the easiest one that I could get on the internet to explain you to how to get a response request. And this is the request I'm giving a request to the server. And the server is doing on converting that numbers to dollars. It's not just like appending dollars to that, but it's actually converting it. No, it's it's doing that work. That's what it happens whenever you call, let's say in IVR to write whenever I call back from my car, you know that that thing converts into that particular format and returns it.
Okay, so you want this one demo called customer care. Give me our customer care, man, just own your own listing. So that's how this idea thing was related to that. I worked on that one too. The reason I know this idea is one of the examples of web services. So these are web services.
Web Services testing, probably not web services, I will be specific wisdom. Okay, web services, description language. Okay, um, guess what I can put JDBC and JMS, so there's a lot of assertion which you can put, if you have anything then put that one word. Okay, so that's the use of assertion. I was really worried and that was not a good hour that I will not it will explain your session that was important concept of the test case. Okay.
So if I put any number, let's say how $10,000 this comes down to 10,000 somewhere. Okay, now I'm requesting 10 I'm sorry, this was terrible. No, this is, I'm sorry, thousand social 10 $1,000. Right, that should convert that number into dollars. Okay, but my test case will fail because it it only understands here $1,000. So that's converted for me, but my thing was only an assertion was $100.
Right? So, so that's the assertion. Okay, so we'll run it again, make this assertion pass. Okay, so my assertion is valid, and my test case is passed. You can see the request How many times have ran it? Okay.
And good. Good to know. And no authorization. Here you can see this headers, and there's no attachment as such. And logs of course, keep an eye on logs on this moose, just to keep an eye on logs, what's happening, how it's happening, what is doing it possible, always gets one Copy to Clipboard. Oh good good export the file dot txt tagline Okay, that's good is possible do this do me a favor if you're working in the workplace save this love and this will save you a lot of work the reason because you're supposed to be not finally he has saved into Okay, let's try to assume it again looking back okay, dark lab we should we got a lot Okay.
Now if for some reason I screwed up okay oh yeah you got this anymore. Okay, there's a lot of fights on visual fencing, our text over here, this shows you what have you done and what is happening. So please do send developer an idea whenever you're doing testing. It gives an idea of that course happening here. Okay, so that's about number she taught us. Let's try this.
We have no test and security test, whom I will take lot of time. We'll do this probably tomorrow. Okay, for me tomorrow, because this thing will get blendy. Um, let's run one more test. Words, numbers, two words. I don't know how to smoke Let's find out.
So I double click on that and see here what's happening. Here, okay, so here we want some numbers. So and it's supposed to convert number two words. means if I put in it will go to P and 10. So 100 children Dr. AD, let's run it 100 Very good.
So now here I put estar tion as for B contains, and 182 n d r Ed. All right. Okay. Something went wrong probably. I screwed up. Painting mistake.
Spelling mistakes. It's good to know To do mistakes, I understand what's happening here. Now you run this my test case is passed. But the moment I change this my test case fails because assertion shows, responses 100 but it's 10 All right, this was the second go back 200 and run the script my assertion, or go to the soap UI lab, man, check the blog, see this in view this. See that you're doing good. Okay.
So that we started testing or this doesn't ends here. We will do two more. Okay. Or three more, but because I'm ending up here, we don't want too much is already too much. I will be gone. To a low test tomorrow and security testing for the same thing, okay for the same thing and you go to one more example probably and probably will kill this class both we have rest or hula holders.
We have wrists, crypts, too, we want to do rest. Let's do that. So, we go for rest and then one application testing and we close this class okay. So, probably three more classes three to four classes and we will by this time I hope you understood the other time it was very simple. We just use this run it and the result is pass or fail this assertion for non de nada assertions good. We know you are negating a function.
Okay, so, so that was that's the whole point actually send the request. Getting correct response? If you're getting correct respond, then you're good. If not, then something is missing as it from your site, or the script is not good. So the script is not good. You have to reach out to developer and say that, hey, you know, my district is doing some error here.
So developer prefix, and you use the URL. This is the URL. I'm sorry, this is the this is the wisdom. Of course, it's in the URL, you can view it browser. But it's actually the wisdom. Okay, so that's pretty much that doesn't end here.
We are missing load testing and security testing in this will do that in the next class, and see you in the next class for load testing, complete is no distance. Okay. And one more example. I don't know I have time for this, but we have rest and application testing too. So we want to go to that. Right?
Because we've consumed too much time. Okay. Should you see the laughs if you're getting some error, what's the exactly the error is see that error, HTTP log as well as soap UI log. And memory Labs is not that useful unless you're doing global load testing. We'll go to that. We go to that and see where that Okay, so that's pretty much and thanks for watching, and I hope you like this class.
And I'll see you in the next class for the load test. Thanks