Running Eclipse Testing

27 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$49.99
List Price:  $69.99
You save:  $20
€46.79
List Price:  €65.51
You save:  €18.71
£40.22
List Price:  £56.31
You save:  £16.09
CA$68.40
List Price:  CA$95.76
You save:  CA$27.36
A$76.91
List Price:  A$107.69
You save:  A$30.77
S$68.04
List Price:  S$95.27
You save:  S$27.22
HK$391.55
List Price:  HK$548.21
You save:  HK$156.65
CHF 45.70
List Price:  CHF 63.99
You save:  CHF 18.28
NOK kr547.61
List Price:  NOK kr766.70
You save:  NOK kr219.08
DKK kr348.93
List Price:  DKK kr488.53
You save:  DKK kr139.60
NZ$84.23
List Price:  NZ$117.93
You save:  NZ$33.70
د.إ183.60
List Price:  د.إ257.06
You save:  د.إ73.45
৳5,479.93
List Price:  ৳7,672.34
You save:  ৳2,192.41
₹4,165.15
List Price:  ₹5,831.54
You save:  ₹1,666.39
RM238.82
List Price:  RM334.37
You save:  RM95.55
₦63,012.39
List Price:  ₦88,222.39
You save:  ₦25,210
₨13,862.65
List Price:  ₨19,408.82
You save:  ₨5,546.17
฿1,850.71
List Price:  ฿2,591.14
You save:  ฿740.43
₺1,625.67
List Price:  ₺2,276.07
You save:  ₺650.40
B$256.56
List Price:  B$359.20
You save:  B$102.64
R956.66
List Price:  R1,339.40
You save:  R382.74
Лв91.51
List Price:  Лв128.12
You save:  Лв36.61
₩68,743.20
List Price:  ₩96,245.98
You save:  ₩27,502.78
₪188.02
List Price:  ₪263.24
You save:  ₪75.22
₱2,879.04
List Price:  ₱4,030.89
You save:  ₱1,151.84
¥7,745.27
List Price:  ¥10,844
You save:  ¥3,098.73
MX$848.53
List Price:  MX$1,188.01
You save:  MX$339.48
QR181.37
List Price:  QR253.94
You save:  QR72.56
P693.49
List Price:  P970.94
You save:  P277.45
KSh6,723.65
List Price:  KSh9,413.65
You save:  KSh2,690
E£2,393.27
List Price:  E£3,350.77
You save:  E£957.50
ብር2,831.84
List Price:  ብር3,964.81
You save:  ብር1,132.96
Kz41,738.73
List Price:  Kz58,437.56
You save:  Kz16,698.83
CLP$47,675.46
List Price:  CLP$66,749.46
You save:  CLP$19,074
CN¥362.23
List Price:  CN¥507.15
You save:  CN¥144.92
RD$2,950.94
List Price:  RD$4,131.55
You save:  RD$1,180.61
DA6,719.13
List Price:  DA9,407.33
You save:  DA2,688.19
FJ$114.63
List Price:  FJ$160.49
You save:  FJ$45.86
Q388.19
List Price:  Q543.50
You save:  Q155.30
GY$10,446.17
List Price:  GY$14,625.47
You save:  GY$4,179.30
ISK kr7,032.09
List Price:  ISK kr9,845.49
You save:  ISK kr2,813.40
DH504.58
List Price:  DH706.45
You save:  DH201.87
L889.82
List Price:  L1,245.82
You save:  L356
ден2,878.96
List Price:  ден4,030.78
You save:  ден1,151.81
MOP$403.02
List Price:  MOP$564.26
You save:  MOP$161.24
N$956.51
List Price:  N$1,339.20
You save:  N$382.68
C$1,830.70
List Price:  C$2,563.14
You save:  C$732.43
रु6,659.89
List Price:  रु9,324.38
You save:  रु2,664.49
S/184.01
List Price:  S/257.63
You save:  S/73.61
K189.04
List Price:  K264.67
You save:  K75.63
SAR187.49
List Price:  SAR262.51
You save:  SAR75.01
ZK1,286.92
List Price:  ZK1,801.79
You save:  ZK514.87
L232.80
List Price:  L325.94
You save:  L93.14
Kč1,180.98
List Price:  Kč1,653.47
You save:  Kč472.48
Ft18,403.36
List Price:  Ft25,766.18
You save:  Ft7,362.81
SEK kr543.19
List Price:  SEK kr760.51
You save:  SEK kr217.32
ARS$43,628.97
List Price:  ARS$61,084.05
You save:  ARS$17,455.08
Bs343.69
List Price:  Bs481.20
You save:  Bs137.50
COP$195,114.83
List Price:  COP$273,176.37
You save:  COP$78,061.54
₡25,056.16
List Price:  ₡35,080.64
You save:  ₡10,024.47
L1,227.59
List Price:  L1,718.72
You save:  L491.13
₲369,041.22
List Price:  ₲516,687.24
You save:  ₲147,646.02
$U1,917.85
List Price:  $U2,685.15
You save:  $U767.29
zł202.21
List Price:  zł283.11
You save:  zł80.90
Already have an account? Log In

Transcript

Hello, arriving at the our P new tomato class of celyn of recurs, we will now run our scripts through our Java project. The procedure is very simple. Just access the run menu, then the menu runs as and choose the best energy option. The Eclipse, you will open a kind of a test energy tab. And there you will be able to check the situation of each test during in after execution. So let's go well, we are here in our Eclipse ID.

But before we run I would like to make an interesting adjustment here where I intended to set a different browser for each script. So as mentioned in the previous class, Always script is our define it by default to be run with private thoughts, but nothing prevents you from changing as long as you have the driver of the other browsers. So for scripting one, let's do the following. For this critical one, I will put Internet Explorer. So I will simply change here. Instead of fast Firefox driver, I will put bad IE driver and W change here the name of the file the name of my driver here on the way Go there in my folder, see selenium, where are my driver and I will over here.

Incidentally, my system is 64 beats. So I'm going to get 64 beats and I'm going to put here read and change your variable to pet I driver. You're in my before my American dog here instead of a vegan Chico. I save it and I'm going to do a similar procedure. You're in my secret test case, by changing to work Wrong. So I'ma go again in my folder Cilento I run the driver ad here I am going to change the variable to pet grown driver.

Can I have you to change here too? And here I will replace from Chico to Ron. I will save you two. So what will be the logic? I'm going to ask you to run my three tests. They will run sequentially, because it is not defined it as parallel.

You can if you want to know how to run the test is in parallel, you can acquire the edge events that the course of Selenium WebDriver. were teaching this technique. So the large key here is to run each test script at a time being that eg in your browser namely, you first run in Internet Explorer, the second in Quran and the third in Firefox. Let's see if you really behave like this. I just see it as like for me, I've you come here or you bought us run s and W choose the Energy. Note that it will display that that's the runner tab.

We did log off their test to run. Good. I'm going to close here because it looks like he's just before me the last test. I decided to select all. Let's do the following. Review select l here and this so we will right click and we will choose test energy.

Let's see now if it runs all the scripts Well, you open it Firefox. We are here on the third script access to the contact page of the northwest side. began to fill the fields good random Firefox again you have to understand why he did it sighs I change it my scripts I know what happened in price war before Firefox again He shows here that the only one has passed. That was my CTC rule one, validate layout. They oh there's presenter arrows here. Let's make the proper adjustments.

What happened to here? It was this, I informed the parameters of the correct browser. However, I forgot to change the constructor. When I give a new drive, I have to pass the constant character and what happened to what this I didn't change it I should have put it here there NIJ explorer driver. Now okay. As I recommendation he asked us to import the Internet Explorer library we just from open give a silly no I he I will take it here.

So you can recognize this builder you just had it here okay and that should do that too in the second sec on the best case anywhere is Firefox I will put the same thing you need to give me this suggestion and you asked to important the whole You a Selenium for me library also added these comments are not being used, for example the Firefox library. I will comment on both the first and second test case. Save from bottom to top. I'm going to close those flaps and go on the console. I'm invoked to clean Clear. So let's run it again.

So the first thing here is to open Internet Explorer right? First is accusative case. excess of it this side, your ad will validate the criticism of the feuds via the button reweighed parentally there third test with Firefox. Access to this site from the contact page fields The execution was very fast. I did he would have been necessary to put up follows. So let's click here again.

The three where is it executed? Two had followed and one jump it explains the result. You can see that both have not best Hear in the second year who says he didn't define it that word, by the way, because it really gave me a coding error. That is my strings are different encoding. That is why you did into recognizing you would have to modify it to so let's access the contact page by website. The Rose test.com dot the air I can't replace here.

I cannot read it use the she uses private. I think that is what it says there. Save here to say Yes, that's right, the field is meant I've shifted it here. The third. I don't know what happens, because he gave me an error. Let me see if you have any detail.

Well, which says here that he was a failure to connect you with the browser? Did he maybe my 64 v drive is not working. So I'm going to leave that 32 it's not in there. Your Internet Explorer must be protected mode. disabled. Otherwise the Selenium can logical troll remotely.

And the third what's wrong And oh yes, he expected the mid session but they didn't find it. Because it looks like he's out of bounds. How could you not wait? So well as opposed to here? Of course, it is been a while since I programming in Java. I forgot how to pause the Java.

I mean, not too shabby. To say that no. Syntax a little differentiate between the language. You just forget it. Obvious search here. lousy Java.

I'm going to take a quick break while I searched this Java coma. Well, coming back in here when I went to realize the same common the obsolete use the in C sharp is they even use the here in Java. Amazing as it is sounds. It was just me calling the 3d class then called a sleeping mat to the end of best their meal second as the parameter. So it's the same thing to my surprise then all the scripts have already been corrected. Yes To recap The first script then runs in IE I change it to the 32 bits drive.

The second script I had to change the expected value I had given the codon error. I had to put the value corrected here. It is now is spelled correctly they field is mandatory. And the third I needed it to purchase leap here for safe it. I put the deuce 20 seconds to make sure he will wait for the message to appear to the end of the check. So, let's go to the execution again.

I have read save the ad here. Are you selected three scripts, access the Run, run as option and run as test in G Round chrome access to the contact form Really is very slow despite you it may be that the other students where they can make worse are accessing this site that's executed again I don't know why these these lows read us best in Mexico. Fast, fast, fast and now in Firefox He must have gone to our latest testing in Internet Explorer right Test is run let's access our log here it is there, the three tests were run no one came up wrong in the non jump, but I will access the results by my test Genji and it is there 100% all the testers work are the perfect okay. So that is it. I hope you have learned the how to run the test is in the Java test project.

Of course the adjustments are inevitable. As I informed from the beginning, you will hardly bored to the script and you will be able to learn them right it will be a certain to be necessary, make some adjustments until they stay 100% functional. And so your testers come to work. Right. So until next time, let's talk about in the report and a hook and until then

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.