tag:blogger.com,1999:blog-68884480486421941222024-03-13T05:53:24.629-07:00Learn Protractor , APPIUM, Ready API tools by your ownJust follow the concepts listed in the blog, you can automate your applications using those toolsSurendra Jaganadamhttp://www.blogger.com/profile/10897473065213609023noreply@blogger.comBlogger40125tag:blogger.com,1999:blog-6888448048642194122.post-40901304883754701162017-07-25T19:44:00.000-07:002020-08-31T01:43:18.694-07:00Protractor JAVA: Writing a simple script using Jprotractor jar file<div dir="ltr" style="text-align: left;" trbidi="on">
Hi All,<br />
<br />
Hope you are doing good.<br />
<br />
In this blog i would like to walk through to <span style="font-family: "Times New Roman", serif; font-size: 12pt;">write a simple program in Java to calculate sum
of</span><span style="font-family: "Times New Roman", serif; font-size: 12pt;"> </span><span style="font-family: "Times New Roman", serif; font-size: 12pt;">2 numbers in Angular application: </span><br />
<span style="font-family: "Times New Roman", serif; font-size: 12pt;"><br /></span>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
</div>
<ul style="text-align: left;">
<li>·<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span><span lang="EN-US" style="text-indent: -18pt;">Create a new project in eclipse
editor</span></li>
<li>·<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span><span lang="EN-US" style="text-indent: -18pt;">Add Selenium java client
drivers to your project</span></li>
<li>·<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span><span lang="EN-US" style="text-indent: -18pt;">Add above created Jprotractor
jar file to your project</span></li>
<li>·<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span><span lang="EN-US" style="text-indent: -18pt;">Create a package and
create a class</span></li>
<li>·<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span><span lang="EN-US" style="text-indent: -18pt;">Write a command to launch
chrome driver as below: </span>·<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span><span lang="EN-US" style="text-indent: -18pt;"> </span></li>
</ul>
<br />
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--></div>
<ul>
<li><span lang="EN-US" style="text-indent: -18pt;">
<div class="MsoListParagraph">
<span lang="EN-US" style="background: silver; font-family: Consolas; font-size: 16pt;">System</span><span lang="EN-US" style="font-family: Consolas; font-size: 16pt;">.<i>setProperty</i>(</span><span lang="EN-US" style="color: #2a00ff; font-family: Consolas; font-size: 16.0pt; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman";">"webdriver.chrome.driver"</span><span lang="EN-US" style="font-family: Consolas; font-size: 16pt;">, </span><span lang="EN-US" style="color: #2a00ff; font-family: Consolas; font-size: 16.0pt; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman";">"C:\\Users\\uname\\Downloads\\chromedriver_win32\\chromedriver.exe"</span><span lang="EN-US" style="font-family: Consolas; font-size: 16pt;">);</span><span lang="EN-US" style="font-family: Consolas; font-size: 16.0pt; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman";"><o:p></o:p></span></div>
<div class="MsoListParagraph">
<span lang="EN-US" style="font-family: Consolas; font-size: 16pt;"> WebDriver </span><span lang="EN-US" style="color: #6a3e3e; font-family: Consolas; font-size: 16.0pt; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman";">driver</span><span lang="EN-US" style="font-family: Consolas; font-size: 16pt;">= </span><b><span lang="EN-US" style="color: #7f0055; font-family: Consolas; font-size: 16.0pt; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman";">new</span></b><span lang="EN-US" style="font-family: Consolas; font-size: 16pt;"> ChromeDriver();<o:p></o:p></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US" style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">Create an object to NgWebdriver
a below: </span></div>
<div class="MsoListParagraph">
<span lang="EN-US" style="background: yellow; font-family: Consolas; font-size: 16pt;">NgWebDriver
</span><span lang="EN-US" style="background: yellow; color: #6a3e3e; font-family: Consolas; font-size: 16.0pt; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman"; mso-highlight: yellow;">nDriver</span><span lang="EN-US" style="background: yellow; font-family: Consolas; font-size: 16pt;">= </span><b><span lang="EN-US" style="background: yellow; color: #7f0055; font-family: Consolas; font-size: 16.0pt; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman"; mso-highlight: yellow;">new</span></b><span lang="EN-US" style="background: yellow; font-family: Consolas; font-size: 16pt;"> NgWebDriver(</span><span lang="EN-US" style="background: yellow; color: #6a3e3e; font-family: Consolas; font-size: 16.0pt; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman"; mso-highlight: yellow;">driver</span><span lang="EN-US" style="background: yellow; font-family: Consolas; font-size: 16pt;">);</span><span lang="EN-US" style="font-family: Consolas; font-size: 16pt;"><o:p></o:p></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US" style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">Write webdriver commands using
nDriver as shown in below code snippet: </span></div>
</span></li>
</ul>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-vas9-uLDh8k/WXgBnMp2RvI/AAAAAAAAMYc/mGB4drtcuQMRH60t_u6038sFywd_Cc9gwCEwYBhgL/s1600/JProtractor2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="460" data-original-width="1185" height="155" src="https://1.bp.blogspot.com/-vas9-uLDh8k/WXgBnMp2RvI/AAAAAAAAMYc/mGB4drtcuQMRH60t_u6038sFywd_Cc9gwCEwYBhgL/s400/JProtractor2.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="MsoListParagraph">
<span lang="EN-US">NgBy.Modal, NgBy.buttonText(): we
have 10-12 supported methods are there which you can get detailed information
from the below link only <a href="https://github.com/sergueik/jProtractor">https://github.com/sergueik/jProtractor</a></span></div>
<div class="MsoListParagraph">
<br /></div>
<div class="MsoListParagraph">
<br /></div>
<div class="MsoListParagraph">
<b>We will see how to write few more programs using this jar file in next tutorial</b></div>
<div style="text-indent: -24px;">
<br /></div>
<div style="text-indent: -24px;">
<br /></div>
<div style="text-indent: -24px;">
<br /></div>
</div>
Surendra Jaganadamhttp://www.blogger.com/profile/10897473065213609023noreply@blogger.com0tag:blogger.com,1999:blog-6888448048642194122.post-9174861359285327702017-07-18T20:11:00.000-07:002020-08-31T01:43:18.853-07:00Protractor : How to use JAVA programming language for protractor<div dir="ltr" style="text-align: left;" trbidi="on">
Hi All,<br />
<br />
Hope you are doing good.<br />
<br />
As you are aware we have to use NodeJS in writing code for protractor to automate angular JS application.<br />
<br />
In this post i would like to give you an idea how can we write protractor code using java programming language.<br />
<br />
We need a jar file which supports Protractor methods and we need to add that jar file to our eclipse editor which is JProtractor.<br />
<br />
<b>Please find the below steps to create JProtractor jar file:</b><br />
<b><br /></b>
<br />
<div class="MsoListParagraph" style="mso-list: l1 level1 lfo1; text-indent: -18.0pt;">
</div>
<ul style="text-align: left;">
<li>·<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span><span lang="EN-US" style="text-indent: -18pt;">Download the code from this
location as shown below: <a href="https://github.com/sergueik/jProtractor">https://github.com/sergueik/jProtractor</a></span></li>
<li><br /></li>
<li><a href="https://4.bp.blogspot.com/-PJxkHPwdbT8/WW7NTLBqj1I/AAAAAAAAMRg/DwJ3wkaQMEcjSOYXI8zbLiAwIH-kCBVBQCLcBGAs/s1600/JProtractor1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" data-original-height="460" data-original-width="1100" height="133" src="https://4.bp.blogspot.com/-PJxkHPwdbT8/WW7NTLBqj1I/AAAAAAAAMRg/DwJ3wkaQMEcjSOYXI8zbLiAwIH-kCBVBQCLcBGAs/s320/JProtractor1.png" width="320" /></a></li>
<li><br /></li>
<li><br /></li>
<li>·<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span><span lang="EN-US" style="text-indent: -18pt;">Unzip the downloaded folder</span></li>
<li>·<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span><span lang="EN-US" style="text-indent: -18pt;">Open the command prompt</span></li>
<li>·<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span><span lang="EN-US" style="text-indent: -18pt;">Switch to the folder exactly we
have above downloaded zip file</span></li>
<li>·<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span><span lang="EN-US" style="text-indent: -18pt;">Remove the java folder from
this location src/test/java</span></li>
<li>·<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span><span lang="EN-US" style="text-indent: -18pt;">mvn clean package</span></li>
<li>·<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span><span lang="EN-US" style="text-indent: -18pt;">it will take sometime to
generate jar file</span></li>
<li>·<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span><span lang="EN-US" style="text-indent: -18pt;">You can find the jar file from
the below location</span></li>
</ul>
<!--[if !supportLists]--><br />
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo2; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US" style="font-family: "symbol"; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">C:\developer\username\jProtractor\target\jprotractor-1.2-SNAPSHOT.jar</span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo2; text-indent: -18.0pt;">
<span lang="EN-US"><br /></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo2; text-indent: -18.0pt;">
<span lang="EN-US"><br /></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo2; text-indent: -18.0pt;">
<span lang="EN-US">In the next post we are going show an example how to write a program in your eclipse editor</span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo2; text-indent: -18.0pt;">
<span lang="EN-US"><br /></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo2; text-indent: -18.0pt;">
<span lang="EN-US">Thanks,</span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo2; text-indent: -18.0pt;">
<span lang="EN-US">Surendra Jaganadam</span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo2; text-indent: -18.0pt;">
<span lang="EN-US"><br /></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo2; text-indent: -18.0pt;">
<span lang="EN-US"><br /></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo2; text-indent: -18.0pt;">
<span lang="EN-US"><br /></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo2; text-indent: -18.0pt;">
<span lang="EN-US"><br /></span></div>
<br />
<div class="MsoNormal">
<br /></div>
<br />
<br />
<br />
<br /></div>
Surendra Jaganadamhttp://www.blogger.com/profile/10897473065213609023noreply@blogger.com0tag:blogger.com,1999:blog-6888448048642194122.post-82148379855001782352017-06-27T20:28:00.000-07:002020-08-31T01:43:18.950-07:00APPIUM : Basic program to launch application in device and Emulator<div dir="ltr" style="text-align: left;" trbidi="on">
Hi All,<br />
<br />
In this session we discussed about how to launch the application in the real device and emulator<br />
<br />
https://youtu.be/3qKxfjtCUuA<br />
<br />
<br />
Thanks,<br />Surendra jaganadam</div>
Surendra Jaganadamhttp://www.blogger.com/profile/10897473065213609023noreply@blogger.com0tag:blogger.com,1999:blog-6888448048642194122.post-78423858506496479662017-06-27T20:13:00.000-07:002020-08-31T01:43:19.511-07:00WebDriver: Webtable handling<div dir="ltr" style="text-align: left;" trbidi="on">
Hi All,<br />
<br />
In this session we are going to discuss about handling of webtables<br />
<br />
https://youtu.be/3SxQ1LCJDpo<br />
<br />
<br />
Thanks,<br />
Surendra</div>
Surendra Jaganadamhttp://www.blogger.com/profile/10897473065213609023noreply@blogger.com0tag:blogger.com,1999:blog-6888448048642194122.post-57416605822852140492017-06-27T20:11:00.003-07:002020-08-31T01:43:19.602-07:00WebDriver: AutoIT 3rd party tool<div dir="ltr" style="text-align: left;" trbidi="on">
Hi All,<br />
<br />
In this session we are going to discuss about AutoIT and how can we integrate with webdriver<br />
<br />
<br />
https://www.youtube.com/watch?v=4LEh2MVE-i4&feature=youtu.be<br />
<br />
<br />
Thanks,<br />
Surendra</div>
Surendra Jaganadamhttp://www.blogger.com/profile/10897473065213609023noreply@blogger.com0tag:blogger.com,1999:blog-6888448048642194122.post-73144245476958452622017-06-22T19:47:00.000-07:002020-08-31T01:43:19.694-07:00APPIUM : Desired capabilities<div dir="ltr" style="text-align: left;" trbidi="on">
Hi All,<br />
<br />
In this session we discussed about desired capabilities which we need to pass to server<br />
<br />
Kindly have a look into below video:<br />
<br />
https://youtu.be/rS_3JNUyn6s<br />
<br />
<br />
Thanks,<br />
Surendra </div>
Surendra Jaganadamhttp://www.blogger.com/profile/10897473065213609023noreply@blogger.com0tag:blogger.com,1999:blog-6888448048642194122.post-79480103761763341752017-06-21T20:46:00.001-07:002020-08-31T01:43:19.045-07:00WebDriver: Multiple windows handling & Actions class concept<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
Hi All,</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
In this session we discussed about: </div>
<div class="MsoNormal">
<br /></div>
<div class="MsoListParagraphCxSpFirst" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]-->Handling Multiple Windows</div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]-->Actions class</div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]-->Mouse hover</div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]-->Right click </div>
<div class="MsoListParagraphCxSpLast" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]-->Sorting </div>
<div class="MsoListParagraphCxSpLast" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<br /></div>
<div class="MsoNormal">
Kindly have a look into below link: </div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
https://youtu.be/z8nuuHFtLdI</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
For further details please drop me an email to
surendra.jaganadam@gmail.com</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Thanks,</div>
<span style="font-family: "Calibri","sans-serif"; font-size: 11.0pt; line-height: 115%; mso-ansi-language: EN-IN; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: "Times New Roman"; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;">Surendra Jaganadam</span></div>
Surendra Jaganadamhttp://www.blogger.com/profile/10897473065213609023noreply@blogger.com0tag:blogger.com,1999:blog-6888448048642194122.post-50253733011704965902017-06-20T21:11:00.001-07:002020-08-31T01:43:19.143-07:00WebDriver : Handling of frames <div dir="ltr" style="text-align: left;" trbidi="on">
Hi ,<br />
<br />
Hope you are doing good.<br />
<br />
In this session we are going to discuss about handling of frames using webdriver.<br />
<br />
Kindly have a look into below link:<br />
<br />
https://www.youtube.com/watch?v=TrCtMn2YxoU<br />
<br />
Thanks,<br />
Surendra</div>
Surendra Jaganadamhttp://www.blogger.com/profile/10897473065213609023noreply@blogger.com0tag:blogger.com,1999:blog-6888448048642194122.post-9283240968539158332017-06-20T20:11:00.000-07:002020-08-31T01:43:19.236-07:00APPIUM basic concepts & Eclipse configuration<div dir="ltr" style="text-align: left;" trbidi="on">
HI All,<br />
<br />
Hope you are doing good.<br />
<br />
In this session we covered about :<br />
<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Settingup a basic project<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Appium API Reference<br />
<br />
Kindly have a look into below link:<br />
<br />
https://youtu.be/swrAYqv4Nss<br />
<br />
<br />
Thanks,<br />
Surendra Jaganadam<br />
surendra.jaganadam@gmail.com</div>
Surendra Jaganadamhttp://www.blogger.com/profile/10897473065213609023noreply@blogger.com0tag:blogger.com,1999:blog-6888448048642194122.post-76736629272905231942017-06-19T20:02:00.000-07:002020-08-31T01:43:19.327-07:00APPIUM locators and creating emulator <div dir="ltr" style="text-align: left;" trbidi="on">
Hi All,<br />
<br />
In this session we are going to discuss about creating of emulators and overview on UI automater tool.<br />
<br />
<br />
https://youtu.be/4VZZLhXcXHs<br />
<br />
Thanks,<br />Surendra Jaganadam</div>
Surendra Jaganadamhttp://www.blogger.com/profile/10897473065213609023noreply@blogger.com0tag:blogger.com,1999:blog-6888448048642194122.post-70672086615244802642017-06-14T19:24:00.001-07:002020-08-31T01:43:19.420-07:00APPIUM: How to identify object properties- Part 1<div dir="ltr" style="text-align: left;" trbidi="on">
Hi All,<br />
<br />
In this session we will cover object identification techniques .<br />
<br />
Kindly have a look into below video:<br />
<br />
https://youtu.be/Dv-xi-gqHXw<br />
<br />
Thanks,<br />
Surendra</div>
Surendra Jaganadamhttp://www.blogger.com/profile/10897473065213609023noreply@blogger.com0tag:blogger.com,1999:blog-6888448048642194122.post-20845702111494597552017-06-12T19:31:00.002-07:002020-08-31T01:43:19.786-07:00APPIUM: Appium- Prerequisites & Installation for Windows , overview on Appium desktop version<div dir="ltr" style="text-align: left;" trbidi="on">
Hi All,<br />
<br />
Hope you are doing good.<br />
<br />
In this session we covered about:<br />
<br />
<br />
<ul style="text-align: left;">
<li>Configuration for APPIUM on windows</li>
<li>overview on APPIUM desktop version and its features</li>
<li>how to identify object properties in desktop version</li>
</ul>
<div>
<br /><b>Have a look into below video: </b></div>
<div>
<b><br /></b></div>
<div>
https://www.youtube.com/watch?v=gmX_QB8SGy4&feature=youtu.be</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
Kindly drop us an email to surendra.jaganadam@gmail.com for any questions.</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
Thanks,</div>
<div>
Surendra</div>
</div>
Surendra Jaganadamhttp://www.blogger.com/profile/10897473065213609023noreply@blogger.com0tag:blogger.com,1999:blog-6888448048642194122.post-74195937588623722952017-06-08T19:26:00.000-07:002020-08-31T01:43:19.877-07:00WebDriver: Differences between findElement and findElements<div dir="ltr" style="text-align: left;" trbidi="on">
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; margin-left: 4.75pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184; width: 664px;">
<tbody>
<tr style="height: 15.0pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0;">
<td nowrap="" style="border: solid windowtext 1.0pt; height: 15.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 122.0pt;" valign="bottom" width="163">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;">
<br /></div>
</td>
<td nowrap="" style="border-left: none; border: solid windowtext 1.0pt; height: 15.0pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 137.0pt;" valign="bottom" width="183">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;">
<b>FindElement<o:p></o:p></b></div>
</td>
<td nowrap="" style="border-left: none; border: solid windowtext 1.0pt; height: 15.0pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 239.0pt;" valign="bottom" width="319">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;">
<b>FindElements<o:p></o:p></b></div>
</td>
</tr>
<tr style="height: 15.0pt; mso-yfti-irow: 1;">
<td nowrap="" style="border-top: none; border: solid windowtext 1.0pt; height: 15.0pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 122.0pt;" valign="bottom" width="163">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;">
Return Type<o:p></o:p></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.0pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 137.0pt;" valign="bottom" width="183">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;">
WebElement<o:p></o:p></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.0pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 239.0pt;" valign="bottom" width="319">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;">
List(java. Util) list of
webElements<o:p></o:p></div>
</td>
</tr>
<tr style="height: 30.0pt; mso-yfti-irow: 2;">
<td nowrap="" style="border-top: none; border: solid windowtext 1.0pt; height: 30.0pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 122.0pt;" valign="bottom" width="163">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;">
if the object was not
there<o:p></o:p></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 30.0pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 137.0pt;" valign="bottom" width="183">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="background: yellow;">no such element</span> found
exception comes into picture<o:p></o:p></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 30.0pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 239.0pt;" valign="bottom" width="319">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;">
list <span style="background: yellow; mso-highlight: yellow;">will return 0 element</span> ,
it don’t throw any exceptions here<o:p></o:p></div>
</td>
</tr>
<tr style="height: 90.0pt; mso-yfti-irow: 3; mso-yfti-lastrow: yes;">
<td nowrap="" style="border-top: none; border: solid windowtext 1.0pt; height: 90.0pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 122.0pt;" valign="bottom" width="163">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;">
how it will find<o:p></o:p></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 90.0pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 137.0pt;" valign="bottom" width="183">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;">
In the HTML page it will
search for the object with the specified property. If there are multiple
objects with the same property then it will perform action <span style="background: yellow; mso-highlight: yellow;">on the 1st object only</span><o:p></o:p></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 90.0pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 239.0pt;" valign="bottom" width="319">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;">
This method will find all
the elements in the entire webpage with the specified locators<o:p></o:p></div>
</td>
</tr>
</tbody></table>
</div>
Surendra Jaganadamhttp://www.blogger.com/profile/10897473065213609023noreply@blogger.com0tag:blogger.com,1999:blog-6888448048642194122.post-60559376092129649322017-06-08T19:19:00.000-07:002020-08-31T01:43:19.970-07:00APPIUM: Various types of mobile apps and networks<div dir="ltr" style="text-align: left;" trbidi="on">
Hi All,<br />
<br />
Hope you are doing good.<br />
<br />
In this session we are going to study about:<br />
<br />
<br />
<ul style="text-align: left;">
<li>various mobile networks</li>
<li>Different types of mobile apps </li>
<li>Various sensors and interfaces</li>
</ul>
<div>
<br /></div>
<div>
Kindly have a look into below video: </div>
<div>
<br /></div>
<div>
https://youtu.be/hFcEU95vtdk</div>
<div>
<br /></div>
<div>
In the next session we are going to study about confirmation on Windows</div>
<div>
<br /></div>
<div>
Thanks,</div>
<div>
Surendra</div>
</div>
Surendra Jaganadamhttp://www.blogger.com/profile/10897473065213609023noreply@blogger.com0tag:blogger.com,1999:blog-6888448048642194122.post-8364567803473016712017-06-07T09:11:00.002-07:002020-08-31T01:43:20.062-07:00Jenkins: Execute testng tests from Jenkins<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoListParagraph" style="margin-left: 0cm;">
<span lang="EN-US">Steps: </span></div>
<br />
<div class="MsoListParagraph" style="margin-left: 54.0pt; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt; text-justify: inter-ideograph;">
<!--[if !supportLists]--><span lang="EN-US" style="font-family: "wingdings"; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;">Ø<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span><!--[endif]--><span lang="EN-US">Click on Build Now link</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/--zRPocGYKng/WTglSdIcKAI/AAAAAAAALpE/Rr22aaFLr50szVFkP2oOpheKGufDZfC-ACLcB/s1600/JN4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="142" data-original-width="303" src="https://1.bp.blogspot.com/--zRPocGYKng/WTglSdIcKAI/AAAAAAAALpE/Rr22aaFLr50szVFkP2oOpheKGufDZfC-ACLcB/s1600/JN4.png" /></a></div>
<div class="MsoListParagraph" style="margin-left: 54.0pt; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt; text-justify: inter-ideograph;">
<span lang="EN-US"></span></div>
<div class="MsoListParagraph" style="margin-left: 54.0pt; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt; text-justify: inter-ideograph;">
<!--[if !supportLists]--><span lang="EN-US" style="font-family: "wingdings"; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;">Ø<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span><!--[endif]--><span lang="EN-US">This will execute the build</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-AhDH5ImIPuo/WTglarbI9_I/AAAAAAAALpI/Sfus4hkSswYGuv15sapKnBY_yeRseEbnQCLcB/s1600/JN5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="132" data-original-width="346" height="122" src="https://4.bp.blogspot.com/-AhDH5ImIPuo/WTglarbI9_I/AAAAAAAALpI/Sfus4hkSswYGuv15sapKnBY_yeRseEbnQCLcB/s320/JN5.png" width="320" /></a></div>
<div class="MsoListParagraph" style="margin-left: 54.0pt; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt; text-justify: inter-ideograph;">
<span lang="EN-US"><span lang="EN-US" style="font-family: "wingdings"; text-indent: -18pt;">Ø<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span><span lang="EN-US" style="text-indent: -18pt;">Click on #1 to see the status of execution:</span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-bg_6qdtrlW8/WTglgaLq6YI/AAAAAAAALpM/Z3Qqwl0ke5Q_EYYAXcYgrrIDAF5afZfuQCLcB/s1600/JN6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="77" data-original-width="303" src="https://3.bp.blogspot.com/-bg_6qdtrlW8/WTglgaLq6YI/AAAAAAAALpM/Z3Qqwl0ke5Q_EYYAXcYgrrIDAF5afZfuQCLcB/s1600/JN6.png" /></a></div>
<div class="MsoListParagraph" style="margin-left: 54.0pt; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt; text-justify: inter-ideograph;">
<span lang="EN-US"><span lang="EN-US" style="font-family: "wingdings"; text-indent: -18pt;">Ø<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span><span lang="EN-US" style="text-indent: -18pt;">Below screen will display :</span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-uM2CawIY8qs/WTglnoNN_zI/AAAAAAAALpQ/MdBBISPtK64d7IEbXSX8zyZLVeDL3dOQQCLcB/s1600/JN7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="338" data-original-width="908" height="119" src="https://3.bp.blogspot.com/-uM2CawIY8qs/WTglnoNN_zI/AAAAAAAALpQ/MdBBISPtK64d7IEbXSX8zyZLVeDL3dOQQCLcB/s320/JN7.png" width="320" /></a></div>
<div class="MsoListParagraph" style="margin-left: 54.0pt; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt; text-justify: inter-ideograph;">
<span lang="EN-US"><span lang="EN-US" style="font-family: "wingdings"; text-indent: -18pt;">Ø<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span><span lang="EN-US" style="text-indent: -18pt;">Click on console output to see details about the success r failure.</span></span></div>
<div class="MsoListParagraph" style="margin-left: 54.0pt; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt; text-justify: inter-ideograph;">
<br /></div>
</div>
Surendra Jaganadamhttp://www.blogger.com/profile/10897473065213609023noreply@blogger.com0tag:blogger.com,1999:blog-6888448048642194122.post-79530591231084974112017-06-07T09:08:00.001-07:002020-08-31T01:43:20.155-07:00Jenkins: Create TESTNG batch file for JENKINS<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoListParagraph">
<span lang="EN-US">Steps : </span></div>
<br />
<div class="MsoListParagraph" style="margin-left: 72.0pt; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US" style="font-family: "symbol"; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">Create a JAVA project and add
selenium libraries to that project</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-9F1XYdh6mhA/WTgiYPPZNhI/AAAAAAAALoA/kcqLk-QS0b8nvNaRRxFF7GOiNaXxWoIkQCLcB/s1600/JN5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="173" data-original-width="317" src="https://4.bp.blogspot.com/-9F1XYdh6mhA/WTgiYPPZNhI/AAAAAAAALoA/kcqLk-QS0b8nvNaRRxFF7GOiNaXxWoIkQCLcB/s1600/JN5.png" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="MsoListParagraph" style="margin-left: 72.0pt; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US"><span lang="EN-US" style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Create a <b>testng</b>
test case and write basic program</span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-lTLeoqeQmNA/WTgikg87W-I/AAAAAAAALoE/7PLZXC8Kuy4Yh3LZLDGuRP5TLo0fsLiaQCLcB/s1600/JN6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="258" data-original-width="629" height="131" src="https://4.bp.blogspot.com/-lTLeoqeQmNA/WTgikg87W-I/AAAAAAAALoE/7PLZXC8Kuy4Yh3LZLDGuRP5TLo0fsLiaQCLcB/s320/JN6.png" width="320" /></a></div>
<div class="MsoListParagraph" style="margin-left: 72.0pt; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US"><span lang="EN-US" style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"></span></span></div>
<div class="MsoListParagraph" style="margin-left: 72.0pt; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US" style="font-family: "symbol"; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">Create <b>testng</b> xml file and call above test case</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-umUGmqjiybA/WTgiqT82QHI/AAAAAAAALoI/LvMl84uMdlsk77IJlBIaFcZmj3kc9vEZwCLcB/s1600/JN7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="190" data-original-width="458" height="132" src="https://3.bp.blogspot.com/-umUGmqjiybA/WTgiqT82QHI/AAAAAAAALoI/LvMl84uMdlsk77IJlBIaFcZmj3kc9vEZwCLcB/s320/JN7.png" width="320" /></a></div>
<div class="MsoListParagraph" style="margin-left: 72.0pt; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US"></span></div>
<div class="MsoListParagraph" style="margin-left: 72.0pt;">
<b><span lang="EN-US">Project hierarchy:</span></b></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-olgTCasYl3M/WTgizaUN1cI/AAAAAAAALoM/l2vTvAb8K2oTFIEfsAofxcYm01XIzThHQCLcB/s1600/JN8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="102" data-original-width="303" src="https://3.bp.blogspot.com/-olgTCasYl3M/WTgizaUN1cI/AAAAAAAALoM/l2vTvAb8K2oTFIEfsAofxcYm01XIzThHQCLcB/s1600/JN8.png" /></a></div>
<div class="MsoListParagraph" style="margin-left: 72.0pt;">
<span lang="EN-US" style="font-family: "symbol"; text-indent: -18pt;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><span lang="EN-US" style="text-indent: -18pt;">Open notepad</span></div>
<div class="MsoListParagraph" style="margin-left: 72.0pt; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US" style="font-family: "symbol"; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US"> </span></div>
<div class="MsoListParagraph" style="margin-left: 72.0pt; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US" style="font-family: "symbol"; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">Paste below code into the
notepad: </span></div>
<div class="MsoListParagraph" style="margin-left: 144.0pt; text-align: justify; text-justify: inter-ideograph;">
<span lang="EN-US">set
projectLocation=C:\Projects\Sample</span></div>
<div class="MsoListParagraph" style="margin-left: 144.0pt; text-align: justify; text-justify: inter-ideograph;">
<span lang="EN-US">cd %projectLocation%</span></div>
<div class="MsoListParagraph" style="margin-left: 144.0pt; text-align: justify; text-justify: inter-ideograph;">
<span lang="EN-US">set
classpath=%projectLocation%\bin;%projectLocation%\lib\*</span></div>
<div class="MsoListParagraph" style="margin-left: 144.0pt; text-align: justify; text-justify: inter-ideograph;">
<span lang="EN-US">java org.testng.TestNG
%projectLocation%\testng.xml</span></div>
<div class="MsoListParagraph" style="margin-left: 72.0pt;">
<span lang="EN-US" style="font-family: "symbol"; text-align: justify; text-indent: -18pt;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><span lang="EN-US" style="text-align: justify; text-indent: -18pt;">Give unique name.bat as below</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-fwPJgolh-_0/WTgi_KqcTRI/AAAAAAAALoQ/C9mEatO4ZecSkyfgPz86_n8yGs0sqeFlwCLcB/s1600/JN9.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="120" data-original-width="648" height="59" src="https://3.bp.blogspot.com/-fwPJgolh-_0/WTgi_KqcTRI/AAAAAAAALoQ/C9mEatO4ZecSkyfgPz86_n8yGs0sqeFlwCLcB/s320/JN9.png" width="320" /></a></div>
<div class="MsoListParagraph" style="margin-left: 72.0pt;">
<span lang="EN-US" style="font-family: "symbol"; text-indent: -18pt;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><span lang="EN-US" style="text-indent: -18pt;">Once it got created it will
display as below</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-YnPLzVuj6_c/WTgjHK7ASAI/AAAAAAAALoU/sAASS-HJorEWnM81Pdr5cxY44tHi2gAzgCLcB/s1600/JN10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="98" data-original-width="303" src="https://2.bp.blogspot.com/-YnPLzVuj6_c/WTgjHK7ASAI/AAAAAAAALoU/sAASS-HJorEWnM81Pdr5cxY44tHi2gAzgCLcB/s1600/JN10.png" /></a></div>
<div class="MsoListParagraph" style="margin-left: 72.0pt;">
<span lang="EN-US" style="font-family: "symbol"; text-indent: -18pt;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><span lang="EN-US" style="text-indent: -18pt;">We need to create this file
within the project location</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-F1-MTUOBaig/WTgjNVLzLWI/AAAAAAAALoY/pcMzaNaFq1UOfM2ESTvuumq_g8eCiiBwgCLcB/s1600/JN11.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="331" data-original-width="631" height="167" src="https://2.bp.blogspot.com/-F1-MTUOBaig/WTgjNVLzLWI/AAAAAAAALoY/pcMzaNaFq1UOfM2ESTvuumq_g8eCiiBwgCLcB/s320/JN11.png" width="320" /></a></div>
<div class="MsoListParagraph" style="margin-left: 72.0pt;">
<b><span lang="EN-US"><br /></span></b></div>
<div class="MsoListParagraph" style="margin-left: 72.0pt;">
<b><span lang="EN-US">Add testng tests to Jenkins:</span></b></div>
<div class="MsoListParagraph" style="margin-left: 72.0pt;">
<b><span lang="EN-US"><br /></span></b></div>
<div class="MsoListParagraph" style="margin-left: 0cm;">
<span lang="EN-US">Steps: </span></div>
<div class="MsoListParagraph" style="margin-left: 72.0pt;">
<span lang="EN-US" style="text-indent: -18pt;">1.<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><span lang="EN-US" style="text-indent: -18pt;">Once after we successfully
logged into Jenkins using <a href="http://localhost:8080/">http://localhost:8080</a>
you can see below screen</span></div>
<div class="MsoListParagraph" style="margin-left: 72.0pt;">
<b><span lang="EN-US"><br /></span></b></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-f5Kf-5dBADk/WTgjWTWQOuI/AAAAAAAALoc/ImwHqe9VCycXzlioKaN30Kt75Rx3j1xLQCLcB/s1600/JN12.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="504" data-original-width="1343" height="120" src="https://4.bp.blogspot.com/-f5Kf-5dBADk/WTgjWTWQOuI/AAAAAAAALoc/ImwHqe9VCycXzlioKaN30Kt75Rx3j1xLQCLcB/s320/JN12.png" width="320" /></a></div>
<div class="MsoListParagraph" style="margin-left: 72.0pt;">
<b><span lang="EN-US"><br /></span></b></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US">1.<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;"> 2. </span></span><!--[endif]--><span lang="EN-US">Click on create new jobs</span></div>
<div class="MsoListParagraph" style="margin-left: 72.0pt;">
<span lang="EN-US" style="text-indent: -18pt;">3.<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><span lang="EN-US" style="text-indent: -18pt;">Give a name and select “Free style project” as
below</span></div>
<div class="MsoListParagraph" style="margin-left: 72.0pt;">
<b><span lang="EN-US"><br /></span></b></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-MMFRQQea1bY/WTgjd2n3Z-I/AAAAAAAALog/tejSbvMrEpgKI2ccsjcWMVH4Gd8tMi4qgCLcB/s1600/JN13.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="280" data-original-width="661" height="135" src="https://4.bp.blogspot.com/-MMFRQQea1bY/WTgjd2n3Z-I/AAAAAAAALog/tejSbvMrEpgKI2ccsjcWMVH4Gd8tMi4qgCLcB/s320/JN13.png" width="320" /></a></div>
<div class="MsoListParagraph" style="margin-left: 72.0pt;">
<span lang="EN-US" style="text-indent: -18pt;">4.<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><span lang="EN-US" style="text-indent: -18pt;">Hit ok button at the botton</span><b><span lang="EN-US"> <o:p></o:p></span></b></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-lUwMvt3iThw/WTgjm_Q4-RI/AAAAAAAALok/OAgfiHky0UkeGZ-nXSzK8uCyzI-ChDLPACLcB/s1600/JN14.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="96" data-original-width="303" src="https://3.bp.blogspot.com/-lUwMvt3iThw/WTgjm_Q4-RI/AAAAAAAALok/OAgfiHky0UkeGZ-nXSzK8uCyzI-ChDLPACLcB/s1600/JN14.png" /></a></div>
<div class="MsoListParagraph" style="margin-left: 72.0pt;">
<b><span lang="EN-US"><br /></span></b></div>
<div class="MsoListParagraph" style="margin-left: 72.0pt; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US"><span lang="EN-US" style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"></span></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US"> 5.<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">Click on advanced</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-dhnIHZ6oo8I/WTgj25pyURI/AAAAAAAALoo/ru3rD54e7JUZp6sqZtz3NsEWOUztfqDagCLcB/s1600/JN15.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="493" data-original-width="980" height="160" src="https://4.bp.blogspot.com/-dhnIHZ6oo8I/WTgj25pyURI/AAAAAAAALoo/ru3rD54e7JUZp6sqZtz3NsEWOUztfqDagCLcB/s320/JN15.png" width="320" /></a></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US"> 6.<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">Select use custom workspace
checkbox</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-REkNMjlHOQU/WTgkBvPk1QI/AAAAAAAALos/0Mk7lSC2UW8s75qCLnrGMs2j8Iq8hRi8ACLcB/s1600/JN16.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="132" data-original-width="929" height="45" src="https://4.bp.blogspot.com/-REkNMjlHOQU/WTgkBvPk1QI/AAAAAAAALos/0Mk7lSC2UW8s75qCLnrGMs2j8Iq8hRi8ACLcB/s320/JN16.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US"> 7.<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">Enter project location to the
text field as below: </span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-VAPfwxEIdVI/WTgkNMRneYI/AAAAAAAALow/iuhpXipN8_018EYe4j1jeKUo7--SZbFiQCLcB/s1600/JN17.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="105" data-original-width="856" height="38" src="https://4.bp.blogspot.com/-VAPfwxEIdVI/WTgkNMRneYI/AAAAAAAALow/iuhpXipN8_018EYe4j1jeKUo7--SZbFiQCLcB/s320/JN17.png" width="320" /></a></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US"> 8.<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">Click on add build steps from
build options </span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-DuPNlBPCQsE/WTgkXxt_vAI/AAAAAAAALo0/9WchpsOdV3oDBTyPhnKHjeucg-kuLciOwCLcB/s1600/JN18.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="117" data-original-width="303" src="https://4.bp.blogspot.com/-DuPNlBPCQsE/WTgkXxt_vAI/AAAAAAAALo0/9WchpsOdV3oDBTyPhnKHjeucg-kuLciOwCLcB/s1600/JN18.png" /></a></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US"> 9.<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">Select “Execute window batch
command” </span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-dnv0NfmWPEE/WTgkkc9n7ZI/AAAAAAAALo4/Xi6BXxlMlYM3ybGZ5M0cKjLmQeGi4g6AgCLcB/s1600/JN19.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="211" data-original-width="343" height="196" src="https://1.bp.blogspot.com/-dnv0NfmWPEE/WTgkkc9n7ZI/AAAAAAAALo4/Xi6BXxlMlYM3ybGZ5M0cKjLmQeGi4g6AgCLcB/s320/JN19.png" width="320" /></a></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US"> 10.<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">Specify the batch which we
created for testng and specify the name of that file here. </span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-9I3Wta69OF4/WTgkuqP2s7I/AAAAAAAALo8/n44I4NyvYpcUQ5UKEHySbYvZveHyAmIHwCLcB/s1600/JN2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="488" data-original-width="610" height="256" src="https://2.bp.blogspot.com/-9I3Wta69OF4/WTgkuqP2s7I/AAAAAAAALo8/n44I4NyvYpcUQ5UKEHySbYvZveHyAmIHwCLcB/s320/JN2.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<!--EndFragment--></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US" style="mso-fareast-font-family: "Times New Roman";"><span style="mso-list: Ignore;"> 11.<span style="font: 7.0pt "Times New Roman";">
</span></span></span><!--[endif]--><span lang="EN-US">Click on save button below
screen will display</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-j36Ri4VfrGE/WTgk5fdE3zI/AAAAAAAALpA/KhXCWj1qQb8dt0vyb2BU1NCikODi7UoswCLcB/s1600/JN3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="476" data-original-width="1308" height="116" src="https://3.bp.blogspot.com/-j36Ri4VfrGE/WTgk5fdE3zI/AAAAAAAALpA/KhXCWj1qQb8dt0vyb2BU1NCikODi7UoswCLcB/s320/JN3.png" width="320" /></a></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US"><br /></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US"><br /></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US"><br /></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US"><br /></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US"><br /></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US"><br /></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US"><br /></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US"><br /></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US"><br /></span></div>
</div>
Surendra Jaganadamhttp://www.blogger.com/profile/10897473065213609023noreply@blogger.com0tag:blogger.com,1999:blog-6888448048642194122.post-45929671000772761322017-06-07T08:56:00.000-07:002020-08-31T01:43:20.251-07:00Jenkins: What is Jenkins and its installation steps<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
<b><span lang="EN-US">What
is Jenkins? <o:p></o:p></span></b></div>
<div class="MsoNormal">
<span lang="EN-US">Jenkins is an leading open source
continuous integration server built with Java developed by Hudson lab. It is
cross-platform and can be used on Windows, Linux, Mac OS and Solaris
environments. </span></div>
<div class="MsoNormal">
<span lang="EN-US">Specifically for a test only project, it is
used to schedule jobs for regression testing without manual intervention and
hence monitor infrastructural and functional health of a application. It can be
used like a scheduler for integration testing and also can be used to validate
new deployments/environments on a single click on a Build now button .</span></div>
<div class="MsoNormal">
<b><span lang="EN-US"><br /></span></b></div>
<div class="MsoNormal">
<b><span lang="EN-US">Advantages
: <o:p></o:p></span></b></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US" style="font-family: "symbol"; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">Jenkins is an open source tool
with much support from its community.</span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US" style="font-family: "symbol"; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">Installation is easier.</span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US" style="font-family: "symbol"; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">It has more than 1000 plug-in
to make the work easier.</span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US" style="font-family: "symbol"; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">It is easy to create new
Jenkins plugin if one is not available.</span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US" style="font-family: "symbol"; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">It is a tool which is written
in Java. Hence it can be portable to almost all major platforms.</span></div>
<br />
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span lang="EN-US">Installation:<o:p></o:p></span></b></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US">1.<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">Download Jenkins.war file from
this link </span></div>
<div class="MsoListParagraph">
<span lang="EN-US"><a href="https://wiki.jenkins-ci.org/display/JENKINS/Meet+Jenkins">https://wiki.jenkins-ci.org/display/JENKINS/Meet+Jenkins</a></span></div>
<div class="MsoListParagraph">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-JHvidi1UVu8/WTghcRM4okI/AAAAAAAALnw/CyC0EHIvRwstS_ZjXofJ7V3GqJ345PuwwCLcB/s1600/JN1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="189" data-original-width="1033" height="58" src="https://4.bp.blogspot.com/-JHvidi1UVu8/WTghcRM4okI/AAAAAAAALnw/CyC0EHIvRwstS_ZjXofJ7V3GqJ345PuwwCLcB/s320/JN1.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="MsoListParagraph">
<br /></div>
<div class="MsoListParagraph">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><br /><!--[endif]--></span></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="MsoListParagraph">
<br />
<!--[endif]--></div>
<div class="MsoListParagraph">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><!--[if gte vml 1]><v:shapetype id="_x0000_t75"
coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe"
filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="Picture_x0020_1" o:spid="_x0000_i1025" type="#_x0000_t75"
style='width:465pt;height:84.75pt;mso-wrap-style:square;
mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>
<v:imagedata src="file:///C:\Users\murthy\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png"
o:title=""/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]--></span></div>
<div class="MsoListParagraph">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><br /></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US">2.<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">Copy the downloaded file and
paste it in C Drive</span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US">3.<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">Open the command prompt and
change directory to where the “Jenkins.war” copied using <b>cd.. </b></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US">4.<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">In my case I kept my .war in C
drive hence after opening the command prompt I am tying cd.. for 2 times to
navigate to C drive where .war was copied</span></div>
<div class="MsoNormal">
<span lang="EN-US">
</span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US">5.<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">Type java –jar Jenkins.war and hit enter button</span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-1IedDbCdf1g/WTghUFrn8oI/AAAAAAAALns/0nBfPgDSaEQDPl5WS2DY0usqEz7iFZ5WQCLcB/s1600/JN2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="77" data-original-width="303" src="https://1.bp.blogspot.com/-1IedDbCdf1g/WTghUFrn8oI/AAAAAAAALns/0nBfPgDSaEQDPl5WS2DY0usqEz7iFZ5WQCLcB/s1600/JN2.png" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US"><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><br /><!--[endif]--></span></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US"></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US">1.<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">Below message will display :</span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-acwpQgSXeik/WTghpKqtqHI/AAAAAAAALn0/Fa3pWaa9fR4udhhzB0a1UKZBPouyJIVewCLcB/s1600/JN3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="383" data-original-width="530" height="231" src="https://2.bp.blogspot.com/-acwpQgSXeik/WTghpKqtqHI/AAAAAAAALn0/Fa3pWaa9fR4udhhzB0a1UKZBPouyJIVewCLcB/s320/JN3.png" width="320" /></a></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US"><br /></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US"><br /></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US"><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><!--[if gte vml 1]><v:shapetype id="_x0000_t75"
coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe"
filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="Picture_x0020_3" o:spid="_x0000_i1025" type="#_x0000_t75"
style='width:397.5pt;height:287.25pt;mso-wrap-style:square;
mso-position-horizontal-relative:page;mso-position-vertical-relative:page'>
<v:imagedata src="file:///C:\Users\murthy\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png"
o:title=""/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]--></span></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US">1.<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">Once Jenkins is up and running
then in the browser open this URL : <a href="http://localhost:8080/">http://localhost:8080</a></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US">2.<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">When we open above URL it will
ask password by specifying a location , goto that location and the get the
security key and update it in password and click on next button</span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US">
</span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN-US">3.<span style="font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US">Below screen will display after
successful login :</span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/--WayRr03t3o/WTgh1FvxCJI/AAAAAAAALn4/evlIfyz8pc4kWDSqgScCMuWDeFwcdsljQCLcB/s1600/JN4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="504" data-original-width="1343" height="120" src="https://1.bp.blogspot.com/--WayRr03t3o/WTgh1FvxCJI/AAAAAAAALn4/evlIfyz8pc4kWDSqgScCMuWDeFwcdsljQCLcB/s320/JN4.png" width="320" /></a></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<br /></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US"><br /></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US"><br /></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US"><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><br /></span></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US"><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><br /></span></span></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span lang="EN-US"><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><br /></span></span></div>
</div>
Surendra Jaganadamhttp://www.blogger.com/profile/10897473065213609023noreply@blogger.com0tag:blogger.com,1999:blog-6888448048642194122.post-5431003429795918672017-06-06T19:19:00.000-07:002020-08-31T01:43:20.346-07:00APPIUM: Introduction to mobile testing and overview on mobile devices<div dir="ltr" style="text-align: left;" trbidi="on">
Hi All,<br />
<br />
Hope you are doing good.<br />
<br />
In this session we discussed about :<br />
<br />
<br />
<ol style="text-align: left;">
<li>User expectation on mobile app's</li>
<li>points we need to remember while testing mobile app's</li>
<li>various mobile devices and OS's</li>
<li>How to identify a right device</li>
<li>Mobile testing facts</li>
</ol>
<div>
<br /></div>
<div>
Kindly have a look into below link : </div>
<div>
<br /></div>
<div>
<a href="https://youtu.be/hqXdfJ-IUhE">https://youtu.be/hqXdfJ-IUhE</a></div>
<div>
<br /></div>
<div>
Kindly drop us an email to surendra.jaganadam@gmail.com for running notes.</div>
<div>
<br /></div>
<div>
Thanks,<br />
Surendra</div>
</div>
Surendra Jaganadamhttp://www.blogger.com/profile/10897473065213609023noreply@blogger.com0tag:blogger.com,1999:blog-6888448048642194122.post-41012062206168309692017-06-02T19:06:00.002-07:002020-08-31T01:43:20.439-07:00APPIUM Limitations<div dir="ltr" style="text-align: left;" trbidi="on">
HI All,<br />
<br />
Good Morning.<br />
<br />
In this post i would like to discuss about limitations of Appium.<br />
<br />
https://youtu.be/C3vjHfM0Qug<br />
<br />
Kindly have a look into this video and let me know if you have any questions<br />
<br />
Thanks,<br />
Surendra</div>
Surendra Jaganadamhttp://www.blogger.com/profile/10897473065213609023noreply@blogger.com0tag:blogger.com,1999:blog-6888448048642194122.post-3165055321601112912017-06-02T19:01:00.000-07:002020-08-31T01:43:20.531-07:00APPIUM architecture overview <div dir="ltr" style="text-align: left;" trbidi="on">
Hi All,<br />
<br />
Hope you are doing good.<br />
<br />
In this session i would like to give you an overview on APPIUM which covers :<br />
<br />
<br />
<ul style="text-align: left;">
<li>What is Appium</li>
<li>Advantages</li>
<li>Architecture</li>
</ul>
<div>
Kindly have a look into below video:</div>
<br />
<br />
<a href="https://youtu.be/fcn6bNTY2Bg">https://youtu.be/fcn6bNTY2Bg</a><br />
<br />
Let us know if you need any further information from myend<br />
<br />
Thanks,<br />Surendra Jaganadam</div>
Surendra Jaganadamhttp://www.blogger.com/profile/10897473065213609023noreply@blogger.com0tag:blogger.com,1999:blog-6888448048642194122.post-72482077369287999692017-04-04T19:00:00.000-07:002020-08-31T01:43:20.622-07:00Protractor: Basic scripts <div dir="ltr" style="text-align: left;" trbidi="on">
<b><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Basic Scripts: <o:p></o:p></span></b><br />
<span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Protractor needs two files to run, the test or spec file, and the
configuration file</span><span lang="EN-US" style="background: white; color: #24292e; font-family: "segoe ui" , "sans-serif";">.</span><span class="apple-converted-space"><span lang="EN-US" style="background: white; color: #24292e; font-family: "segoe ui" , "sans-serif";"> </span></span><span class="apple-converted-space"><span lang="EN-US" style="background: white; color: #24292e; font-family: "segoe ui" , "sans-serif";"><o:p></o:p></span></span><br />
<br />
<b><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">How to create scripts:<o:p></o:p></span></b><br />
<div style="margin-left: 36.0pt; mso-list: l1 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN" style="font-family: "symbol"; font-size: 11.0pt;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Create a folder <o:p></o:p></span></div>
<div style="margin-left: 36.0pt; mso-list: l1 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN" style="font-family: "symbol"; font-size: 11.0pt;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Create 2 text files name them as
conf.js and spec.js<o:p></o:p></span></div>
<div style="margin-left: 36.0pt; mso-list: l1 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN" style="font-family: "symbol"; font-size: 11.0pt;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Lets see significance of <b>conf and spec</b> files below with simple
examples<o:p></o:p></span></div>
<div style="margin-left: 36.0pt; mso-list: l1 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN" style="font-family: "symbol"; font-size: 11.0pt;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Copy paste below codes into <b>spec and conf</b> files as given below and
save them<o:p></o:p></span></div>
<div style="border-bottom: solid #EAECEF 1.0pt; border: none; mso-border-bottom-alt: solid #EAECEF .75pt; mso-element: para-border-div; padding: 0cm 0cm 4.0pt 0cm;">
<h1 style="border: none; margin-bottom: 12.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 18.0pt; mso-border-bottom-alt: solid #EAECEF .75pt; mso-padding-alt: 0cm 0cm 4.0pt 0cm; padding: 0cm;">
<span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Spec
files<o:p></o:p></span></h1>
</div>
<span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Protractor tests are written using the syntax of your test framework, for
example</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN-US"><a href="http://jasmine.github.io/"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt; text-decoration: none;">Jasmine</span></a></span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">, and the</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN-US"><a href="https://github.com/angular/protractor/blob/master/docs/api.md"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt; text-decoration: none;">Protractor API</span></a></span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">. We are going to
write code with Jasmine framework. <o:p></o:p></span><br />
<div style="border-bottom: solid #EAECEF 1.0pt; border: none; mso-border-bottom-alt: solid #EAECEF .75pt; mso-element: para-border-div; padding: 0cm 0cm 4.0pt 0cm;">
<h2 style="border: none; margin-bottom: 12.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 18.0pt; mso-border-bottom-alt: solid #EAECEF .75pt; mso-padding-alt: 0cm 0cm 4.0pt 0cm; padding: 0cm;">
<span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Example
Spec File<o:p></o:p></span></h2>
</div>
<span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">This simple script (</span><span lang="EN-US"><a href="https://github.com/angular/protractor/blob/master/example/example_spec.js"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt; text-decoration: none;">example_spec.js</span></a></span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">) tests the 'The
Basics' example on the</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN-US"><a href="http://www.angularjs.org/"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt; text-decoration: none;">angularjs.org</span></a></span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">homepage.<o:p></o:p></span><br />
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">describe('angularjs homepage', function() {<o:p></o:p></span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;"> it('should greet the named user', function() {<o:p></o:p></span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;"> // Load the AngularJS homepage.<o:p></o:p></span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;"> browser.get('http://www.angularjs.org');<o:p></o:p></span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">expect(browser.getTitle()).toEqual(AngularJS </span><span lang="EN" style="font-family: "times new roman" , "serif"; font-size: 11.0pt;">—</span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;"> Superheroic JavaScript MVW Framework');<o:p></o:p></span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;"> </span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;"> </span></pre>
<pre style="background: #F6F8FA;"><span style="color: #24292e; font-family: "consolas"; mso-bidi-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman";">});<o:p></o:p></span></pre>
<pre style="background: #F6F8FA;"><span style="color: #24292e; font-family: "consolas"; mso-bidi-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman";">});<o:p></o:p></span></pre>
<pre style="background: #F6F8FA;"><span style="color: #24292e; font-family: "consolas"; mso-bidi-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman";"> </span></pre>
<div style="border-bottom: solid #EAECEF 1.0pt; border: none; mso-border-bottom-alt: solid #EAECEF .75pt; mso-element: para-border-div; padding: 0cm 0cm 4.0pt 0cm;">
<h2 style="border: none; margin-bottom: 12.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 18.0pt; mso-border-bottom-alt: solid #EAECEF .75pt; mso-padding-alt: 0cm 0cm 4.0pt 0cm; padding: 0cm;">
<span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Global
Variables<o:p></o:p></span></h2>
</div>
<span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Protractor exports these global variables to your spec (test) file:<o:p></o:p></span><br />
<div style="margin-left: 36.0pt; mso-list: l3 level1 lfo2; tab-stops: 36.0pt; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN" style="font-family: "symbol"; font-size: 11.0pt;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">browser</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">- A wrapper around an instance of
WebDriver, used for navigation and page-wide information. The</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">browser.get</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">method loads a page. Protractor expects
Angular to be present on a page, so it will throw an error if the page it is
attempting to load does not contain the Angular library. (If you need to
interact with a non-Angular page, you may access the wrapped webdriver instance
directly with</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">browser.driver).<o:p></o:p></span></div>
<div style="margin-left: 36.0pt; mso-list: l3 level1 lfo2; tab-stops: 36.0pt; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN" style="font-family: "symbol"; font-size: 11.0pt;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">element</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">- A helper function for finding and
interacting with DOM elements on the page you are testing. The</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">elementfunction searches for an element
on the page. It requires one parameter, a locator strategy for locating the
element. See</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN-US"><a href="https://github.com/angular/protractor/blob/master/docs/locators.md"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt; text-decoration: none;">Using Locators</span></a></span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">for more information. See Protractor's
findelements test suite (</span><span lang="EN-US"><a href="https://github.com/angular/protractor/blob/master/spec/basic/elements_spec.js"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt; text-decoration: none;">elements_spec.js</span></a></span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">) for more
examples.<o:p></o:p></span></div>
<div style="margin-left: 36.0pt; mso-list: l3 level1 lfo2; tab-stops: 36.0pt; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN" style="font-family: "symbol"; font-size: 11.0pt;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">by</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">- A collection of element locator
strategies. For example, elements can be found by CSS selector, by ID, or by
the attribute they are bound to with ng-model. See</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN-US"><a href="https://github.com/angular/protractor/blob/master/docs/locators.md"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt; text-decoration: none;">Using Locators</span></a></span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">.<o:p></o:p></span></div>
<div style="margin-left: 36.0pt; mso-list: l3 level1 lfo2; tab-stops: 36.0pt; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN" style="font-family: "symbol"; font-size: 11.0pt;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">protractor</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">- The Protractor namespace which wraps
the WebDriver namespace. Contains static variables and classes, such as</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">protractor.Key</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">which enumerates the codes for special
keyboard signals.<o:p></o:p></span></div>
<div style="border-bottom: solid #EAECEF 1.0pt; border: none; mso-border-bottom-alt: solid #EAECEF .75pt; mso-element: para-border-div; padding: 0cm 0cm 4.0pt 0cm;">
<h1 style="border: none; margin-bottom: 12.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 18.0pt; mso-border-bottom-alt: solid #EAECEF .75pt; mso-padding-alt: 0cm 0cm 4.0pt 0cm; padding: 0cm;">
<span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Config
Files<o:p></o:p></span></h1>
</div>
<span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">The configuration file tells Protractor how to set up the Selenium Server,
which tests to run, how to set up the browsers, and which test framework to
use. The configuration file can also include one or more global settings.<o:p></o:p></span><br />
<div style="border-bottom: solid #EAECEF 1.0pt; border: none; mso-border-bottom-alt: solid #EAECEF .75pt; mso-element: para-border-div; padding: 0cm 0cm 4.0pt 0cm;">
<h2 style="border: none; margin-bottom: 12.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 18.0pt; mso-border-bottom-alt: solid #EAECEF .75pt; mso-padding-alt: 0cm 0cm 4.0pt 0cm; padding: 0cm;">
<span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Example
Config File<o:p></o:p></span></h2>
</div>
<span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">A simple configuration (</span><span lang="EN-US"><a href="https://github.com/angular/protractor/tree/master/example"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt; text-decoration: none;">conf.js</span></a></span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">) is shown below.<o:p></o:p></span><br />
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">// An example configuration file<o:p></o:p></span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">exports.config = {<o:p></o:p></span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;"> // The address of a running selenium server.<o:p></o:p></span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;"> seleniumAddress: 'http://localhost:4444/wd/hub',<o:p></o:p></span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;"> </span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;"> // Capabilities to be passed to the webdriver instance.<o:p></o:p></span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;"> capabilities: {<o:p></o:p></span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;"> 'browserName': 'chrome'<o:p></o:p></span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;"> },<o:p></o:p></span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;"> </span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;"> // Spec patterns are relative to the configuration file location passed<o:p></o:p></span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;"> // to protractor (in this example conf.js).<o:p></o:p></span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;"> // They may include glob patterns.<o:p></o:p></span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;"> specs: ['example-spec.js'],<o:p></o:p></span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;"> </span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;"> // Options to be passed to Jasmine-node.<o:p></o:p></span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;"> jasmineNodeOpts: {<o:p></o:p></span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;"> showColors: true, // Use colors in the command line report.<o:p></o:p></span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;"> }<o:p></o:p></span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">};<o:p></o:p></span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;"> </span></pre>
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;"> </span></pre>
<pre style="background: #F6F8FA;"><b><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Script execution: <o:p></o:p></span></b></pre>
<div style="margin-left: 36.0pt; mso-list: l0 level1 lfo3; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN" style="font-family: "symbol"; font-size: 11.0pt;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Open command prompt <o:p></o:p></span></div>
<div style="margin-left: 36.0pt; mso-list: l0 level1 lfo3; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN" style="font-family: "symbol"; font-size: 11.0pt;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Enter webdriver-manager update and hit
enter button , below screen will display<o:p></o:p></span></div>
<div style="margin-left: 36.0pt; mso-list: l0 level1 lfo3; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN" style="font-family: "symbol"; font-size: 11.0pt;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-kIgJn5ZXzcc/WORPd0EtNHI/AAAAAAAAKuw/Rkz-fXM3hf8ZPw5exYJ6UTvAxGDxji1rQCEw/s1600/PR10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="105" src="https://4.bp.blogspot.com/-kIgJn5ZXzcc/WORPd0EtNHI/AAAAAAAAKuw/Rkz-fXM3hf8ZPw5exYJ6UTvAxGDxji1rQCEw/s320/PR10.png" width="320" /></a></div>
<br />
<div style="margin-left: 36.0pt; mso-list: l0 level1 lfo3; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN" style="font-family: "symbol"; font-size: 11.0pt;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Enter webdriver-manager start and hit
enter button , below screen will display<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-KvE7-rliMQY/WORPdy7OsFI/AAAAAAAAKu0/xt-NYBOwbAYmmlDWsiilRnyY-FgvhN-eACEw/s1600/PR11.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="104" src="https://4.bp.blogspot.com/-KvE7-rliMQY/WORPdy7OsFI/AAAAAAAAKu0/xt-NYBOwbAYmmlDWsiilRnyY-FgvhN-eACEw/s320/PR11.png" width="320" /></a></div>
<br />
<div style="margin-left: 36.0pt; mso-list: l2 level1 lfo4; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN" style="font-family: "symbol"; font-size: 11.0pt;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Open new command prompt <o:p></o:p></span></div>
<div style="margin-left: 36.0pt; mso-list: l2 level1 lfo4; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN" style="font-family: "symbol"; font-size: 11.0pt;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Move to the folder where we created
spec.js and conf.js files using cd file location<o:p></o:p></span></div>
<div style="margin-left: 36.0pt; mso-list: l2 level1 lfo4; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN" style="font-family: "symbol"; font-size: 11.0pt;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Enter protractor conf.js and press
enter button <o:p></o:p></span></div>
<br />
<div style="margin-left: 36.0pt; mso-list: l2 level1 lfo4; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN" style="font-family: "symbol"; font-size: 11.0pt;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Browser will be launched and script
will execute on the browser.<o:p></o:p></span></div>
</div>
Surendra Jaganadamhttp://www.blogger.com/profile/10897473065213609023noreply@blogger.com0tag:blogger.com,1999:blog-6888448048642194122.post-60606116147515461132017-04-04T18:56:00.002-07:002020-08-31T01:43:20.717-07:00Protractor: Introduction to Jasmine and support browser for protractor<div dir="ltr" style="text-align: left;" trbidi="on">
<b><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">What is Jasmine: <o:p></o:p></span></b><br />
<span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Jasmine is a behavior-driven development framework for testing JavaScript
code. It does not depend on any other JavaScript frameworks. It does not
require a DOM. And it has a clean, obvious syntax so that you can easily write
tests. This guide is running against Jasmine version</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">2.1.0.<o:p></o:p></span><br />
<span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Test suite begins with a call to the
global Jasmine function</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><b><i><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">describe(</span></i></b><i><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">as shown below code snippet<b>)</b></span></i><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">with two parameters: a string and a
function. The string is a name or title for a spec suite - usually what is
being tested. The function is a block of code that implements the suite</span><span lang="EN-US" style="background: #eeeeee; color: #252519; font-size: 11.5pt;">.<o:p></o:p></span><br />
<div class="MsoNormal" style="line-height: 13.5pt; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">
<span lang="EN-US" style="color: #93a1a1; font-family: "consolas"; font-size: 9.0pt;">describe("A suite", <b>function</b>() {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 13.5pt; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">
<span lang="EN-US" style="color: #93a1a1; font-family: "consolas"; font-size: 9.0pt;"> it("contains spec
with an expectation", <b>function</b>()
{<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 13.5pt; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">
<span lang="EN-US" style="color: #93a1a1; font-family: "consolas"; font-size: 9.0pt;">
expect(true).toBe(true);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 13.5pt; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">
<span lang="EN-US" style="color: #93a1a1; font-family: "consolas"; font-size: 9.0pt;"> });<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 13.5pt; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">
<span lang="EN-US" style="color: #93a1a1; font-family: "consolas"; font-size: 9.0pt;">});<o:p></o:p></span></div>
<span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Specs are defined by calling the global Jasmine function</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">it, which, like</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">describe</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">takes a string and a function. The
string is the title of the spec and the function is the spec, or test. A spec
contains one or more expectations that test the state of the code. An
expectation in Jasmine is an assertion that is either true or false. A spec
with all true expectations is a passing spec. A spec with one or more false
expectations is a failing spec<o:p></o:p></span><br />
<h3 style="background: #EEEEEE; margin-bottom: 11.25pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;">
<span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">It's Just Functions<o:p></o:p></span></h3>
<div style="background: #EEEEEE;">
<span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Since</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">describe</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">and</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">it</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">blocks are functions, they can contain
any executable code necessary to implement the test. JavaScript scoping rules
apply, so variables declared in a</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">describe</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">are available to any</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">it</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">block inside the suite.<o:p></o:p></span></div>
<div style="border-bottom: solid #EAECEF 1.0pt; border: none; mso-border-bottom-alt: solid #EAECEF .75pt; mso-element: para-border-div; padding: 0cm 0cm 4.0pt 0cm;">
<h1 style="border: none; margin-bottom: 12.0pt; mso-border-bottom-alt: solid #EAECEF .75pt; mso-padding-alt: 0cm 0cm 4.0pt 0cm; padding: 0cm;">
<span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Browser
Support: <o:p></o:p></span></h1>
</div>
<span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Protractor supports the two latest major versions of Chrome, Firefox,
Safari, and IE. These are used in Protractor's own suite of tests.<o:p></o:p></span><br />
<span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Note that because Protractor uses WebDriver to drive browsers, any issues
with WebDriver implementations (such as FireFoxDriver, ChromeDriver, and
IEDriver) will show up in Protractor.<o:p></o:p></span><br />
<br /></div>
Surendra Jaganadamhttp://www.blogger.com/profile/10897473065213609023noreply@blogger.com0tag:blogger.com,1999:blog-6888448048642194122.post-42942660023824987822017-04-04T09:26:00.000-07:002020-08-31T01:43:20.810-07:00Protractor Architectureand editors<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
<b><span lang="EN-US">How
this tool works:<o:p></o:p></span></b></div>
<span lang="EN" style="font-family: "Calibri","sans-serif"; font-size: 11.0pt; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman";">Protractor is an end-to-end test framework for AngularJS applications.
Protractor is a Node.js program that supports the Jasmine and Mocha test
frameworks.<o:p></o:p></span><br />
<span lang="EN" style="font-family: "Calibri","sans-serif"; font-size: 11.0pt; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman";">Selenium is a browser automation framework. Selenium includes the Selenium
Server, the WebDriver APIs, and the WebDriver browser drivers.<o:p></o:p></span><br />
<span lang="EN" style="font-family: "Calibri","sans-serif"; font-size: 11.0pt; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman";">Protractor works in conjunction with Selenium to provide an automated test
infrastructure that can simulate a user</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;">’</span><span lang="EN" style="font-family: "Calibri","sans-serif"; font-size: 11.0pt; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman";">s interaction with an Angular application running in a
browser or mobile device.<o:p></o:p></span><br />
<span lang="EN-US"><a href="https://github.com/angular/protractor/blob/master/docs/components.png" target="_blank"><span style="color: windowtext; font-family: "Calibri","sans-serif"; font-size: 11.0pt; mso-ansi-language: #0400; mso-bidi-font-size: 10.0pt; mso-fareast-language: #0400; mso-hansi-font-family: "Times New Roman"; text-decoration: none; text-underline: none;"><!--[if gte vml 1]><v:shapetype id="_x0000_t75"
coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe"
filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="Picture_x0020_9" o:spid="_x0000_i1025" type="#_x0000_t75"
alt="Protractor Components Diagram" style='width:465.75pt;height:160.5pt;
mso-wrap-style:square;mso-position-horizontal-relative:page;
mso-position-vertical-relative:page' o:button="t">
<v:imagedata src="file:///C:\Users\murthy\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png"
o:title=""/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]--></span></a></span><span lang="EN" style="font-family: "Calibri","sans-serif"; font-size: 11.0pt; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman";"><o:p></o:p></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-FtjpZe_j7tg/WOPI1nzjUOI/AAAAAAAAKuQ/cIaL5PmknAAfIYDErTQ-r5ORQ6bn7jNfACEw/s1600/PR8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="107" src="https://4.bp.blogspot.com/-FtjpZe_j7tg/WOPI1nzjUOI/AAAAAAAAKuQ/cIaL5PmknAAfIYDErTQ-r5ORQ6bn7jNfACEw/s320/PR8.png" width="320" /></a></div>
<span lang="EN" style="font-family: "Calibri","sans-serif"; font-size: 11.0pt; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman";">When working with Protractor, it</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;">’</span><span lang="EN" style="font-family: "Calibri","sans-serif"; font-size: 11.0pt; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman";">s important to
keep the following in mind:<o:p></o:p></span><br />
<div class="MsoNormal" style="margin-left: 36.0pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: 36.0pt; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN" style="font-family: Symbol; mso-ansi-language: EN; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN">Protractor
is a wrapper around WebDriverJS, the JavaScript bindings for the Selenium
WebDriver API (before writing any tests, skim through the </span><span lang="EN-US"><a href="https://github.com/SeleniumHQ/selenium/wiki/WebDriverJs"><span lang="EN" style="color: windowtext; mso-ansi-language: EN; text-decoration: none; text-underline: none;">WebDriverJS Users Guide</span></a></span><span lang="EN">).<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 36.0pt; margin-top: 3.0pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; tab-stops: 36.0pt; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN" style="font-family: Symbol; mso-ansi-language: EN; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN">WebDriver
commands are asynchronous. They are scheduled on a control flow and return
promises, not primitive values (see </span><span lang="EN-US"><a href="https://github.com/angular/protractor/blob/master/docs/control-flow.md"><span lang="EN" style="color: windowtext; mso-ansi-language: EN; text-decoration: none; text-underline: none;">The WebDriver Control Flow</span></a></span><span lang="EN">).<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 36.0pt; margin-top: 3.0pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; tab-stops: 36.0pt; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN" style="font-family: Symbol; mso-ansi-language: EN; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN">Your
test scripts send commands to the Selenium Server, which in turn communicates
with the browser driver. Read on for more details.<o:p></o:p></span></div>
<div style="border-bottom: solid #EAECEF 1.0pt; border: none; mso-border-bottom-alt: solid #EAECEF .75pt; mso-element: para-border-div; padding: 0cm 0cm 4.0pt 0cm;">
<h2 style="border: none; margin-bottom: 12.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 18.0pt; mso-border-bottom-alt: solid #EAECEF .75pt; mso-padding-alt: 0cm 0cm 4.0pt 0cm; padding: 0cm;">
<span lang="EN" style="color: windowtext; font-family: "Calibri","sans-serif"; font-size: 11.0pt; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: Calibri; mso-hansi-font-family: Cambria;">Process
Communication: <o:p></o:p></span></h2>
</div>
<span lang="EN" style="font-family: "Calibri","sans-serif"; font-size: 11.0pt; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman";">A test using Selenium WebDriver involves three processes - the test script,
the server, and the browser. The communication between these processes is shown
in the diagram below.<o:p></o:p></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-pwUIp0VsNac/WOPI1QLB6nI/AAAAAAAAKuM/-114RiN5aGIrmAVqTkn2h5opG8Px0IQmACEw/s1600/PR9.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="226" src="https://3.bp.blogspot.com/-pwUIp0VsNac/WOPI1QLB6nI/AAAAAAAAKuM/-114RiN5aGIrmAVqTkn2h5opG8Px0IQmACEw/s320/PR9.png" width="320" /></a></div>
<br />
<span lang="EN" style="font-family: "Calibri","sans-serif"; font-size: 11.0pt; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman";">The Selenium Server takes care of interpreting commands from the test and
forwarding them to one or more browsers. Communication between the server and
the browser uses the</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN-US"><a href="https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol"><span lang="EN" style="color: windowtext; font-family: "Calibri","sans-serif"; font-size: 11.0pt; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman"; text-decoration: none; text-underline: none;">WebDriver Wire Protocol</span></a></span><span lang="EN" style="font-family: "Calibri","sans-serif"; font-size: 11.0pt; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman";">, a JSON
protocol. The command is interpreted by the Browser Driver.<o:p></o:p></span><br />
<span lang="EN" style="font-family: "Calibri","sans-serif"; font-size: 11.0pt; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman";">With Protractor, the test script is run using Node.js. Protractor runs an
extra command before performing any action on the browser to ensure that the
application being tested has stabilized. For example, let's look at the
following snippet of test code.<o:p></o:p></span><br />
<pre style="background: #F6F8FA;"><span lang="EN" style="font-family: "Calibri","sans-serif"; font-size: 11.0pt; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman";">element(by.css('button.myclass')).click();<o:p></o:p></span></pre>
<span lang="EN" style="font-family: "Calibri","sans-serif"; font-size: 11.0pt; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman";">This will result in three commands being sent to the Browser Driver<o:p></o:p></span><br />
<div style="margin-left: 36.0pt; mso-list: l1 level1 lfo2; tab-stops: 36.0pt; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN" style="font-family: Symbol; font-size: 11.0pt; mso-ansi-language: EN; mso-bidi-font-family: Symbol; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US"><a href="https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#/session/:sessionId/execute_async"><span lang="EN" style="color: windowtext; font-family: "Calibri","sans-serif"; font-size: 11.0pt; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman"; text-decoration: none; text-underline: none;">/session/:sessionId/execute_async</span></a></span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "Calibri","sans-serif"; font-size: 11.0pt; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman";">- First, Protractor tells the browser
to run a snippet of JavaScript. This is a custom command which asks Angular to
respond when the application is done with all timeouts and asynchronous
requests, and ready for the test to resume.<o:p></o:p></span></div>
<div style="margin-left: 36.0pt; mso-list: l1 level1 lfo2; tab-stops: 36.0pt; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN" style="font-family: Symbol; font-size: 11.0pt; mso-ansi-language: EN; mso-bidi-font-family: Symbol; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US"><a href="https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#POST_/session/:sessionId/element"><span lang="EN" style="color: windowtext; font-family: "Calibri","sans-serif"; font-size: 11.0pt; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman"; text-decoration: none; text-underline: none;">/session/:sessionId/element</span></a></span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "Calibri","sans-serif"; font-size: 11.0pt; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman";">- Then, the command to find the element
is sent.<o:p></o:p></span></div>
<br />
<div style="margin-left: 36.0pt; mso-list: l1 level1 lfo2; tab-stops: 36.0pt; text-indent: -18.0pt;">
<!--[if !supportLists]--><span lang="EN" style="font-family: Symbol; font-size: 11.0pt; mso-ansi-language: EN; mso-bidi-font-family: Symbol; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US"><a href="https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#POST_/session/:sessionId/element/:id/click"><span lang="EN" style="color: windowtext; font-family: "Calibri","sans-serif"; font-size: 11.0pt; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman"; text-decoration: none; text-underline: none;">/session/:sessionId/element/:id/click</span></a></span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "Calibri","sans-serif"; font-size: 11.0pt; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: "Times New Roman";">- Finally the command to perform a
click action is sent.<o:p></o:p></span></div>
</div>
Surendra Jaganadamhttp://www.blogger.com/profile/10897473065213609023noreply@blogger.com0tag:blogger.com,1999:blog-6888448048642194122.post-54335528664217594142017-04-03T19:45:00.005-07:002020-08-31T01:43:20.904-07:00AUTO IT : Overview on Auto IT and use in selenium webdriver<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;">AutoIt v3 is a freeware
BASIC-like scripting languages designed for automating the windows GUI and
general scripting. It used a combination of simulated keystrokes, mouse
movements and window/control manipulation in order to automate tasks in a way
not possible or reliable with other languages. Auto it is also very small, self
contained and will run on all versions of Windows.<o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;"><br /></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;">In general Auto it is
just another automation tool like selenium but unlike Selenium it is used for
Desktop automation rather than web application. it is a powerful tool and it
just not automate desktop windows, button & form, it automates mouse
movements and keystrokes too. <o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;"><br /></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;">We need to integrate
this auto it code in our selenium. .. <o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;"><br /></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;">simply we will handle
this window based file uploading scenario in auto it , later we will selenium
program where in which we will call this auto it code...<o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;"><br /></span></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;">if at we would like to
perform operations on web application we can simply identify the object using a
browser, like the same way in order to perform operations on any window we need
to identify the properties for that window or objects on that window.<o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;"><br /></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;"><b>steps to configure: </b><o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;">1) download complete
Autoit from its official website<o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;"><span style="color: windowtext; text-decoration: none; text-underline: none;"><a href="https://www.autoitscript.com/site/autoit/downloads/">https://www.autoitscript.com/site/autoit/downloads/</a></span><o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-nGW3rTg18_w/WOMIYVfF-BI/AAAAAAAAKr0/oNebTJHyA44CLRY4-grBszpUINwV-juaACEw/s1600/IT1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="239" src="https://3.bp.blogspot.com/-nGW3rTg18_w/WOMIYVfF-BI/AAAAAAAAKr0/oNebTJHyA44CLRY4-grBszpUINwV-juaACEw/s320/IT1.png" width="320" /></a></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;"><br /></span></div>
<div class="MsoNormal">
<span style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN-IN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN; mso-font-kerning: 1.0pt; mso-no-proof: yes;"><!--[if gte vml 1]><v:shapetype
id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t"
path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="Picture_x0020_1" o:spid="_x0000_i1029" type="#_x0000_t75"
style='width:417.75pt;height:355.5pt;visibility:visible;mso-wrap-style:square'>
<v:imagedata src="file:///C:\Users\murthy\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png"
o:title=""/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]--></span><span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;">3) goto programming
files under C driver and check fot auto it folder<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-M13gYVuiGT4/WOMIYdy2eiI/AAAAAAAAKr4/Ok7RKEbeYGMDcsre6OiilakiwBtJdfdLQCEw/s1600/IT2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="186" src="https://1.bp.blogspot.com/-M13gYVuiGT4/WOMIYdy2eiI/AAAAAAAAKr4/Ok7RKEbeYGMDcsre6OiilakiwBtJdfdLQCEw/s320/IT2.png" width="320" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;">4) open the frozen tool
which will helps in getting various kinds of properties for an object <o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-2W7iFs-nuKg/WOMIYQ9QUcI/AAAAAAAAKr8/ljWI-0arrKYSPzdAiVl0wSMLpX58xqgNACEw/s1600/IT3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="213" src="https://4.bp.blogspot.com/-2W7iFs-nuKg/WOMIYQ9QUcI/AAAAAAAAKr8/ljWI-0arrKYSPzdAiVl0wSMLpX58xqgNACEw/s320/IT3.png" width="320" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;">5) now we need to open
the autoit editor by cliking on below :<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-id0wXyWAMTY/WOMIYt3qJoI/AAAAAAAAKsA/0_7rfEvueNMXWdM3_M1o4I1RbK5TYOHHwCEw/s1600/IT4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="158" src="https://4.bp.blogspot.com/-id0wXyWAMTY/WOMIYt3qJoI/AAAAAAAAKsA/0_7rfEvueNMXWdM3_M1o4I1RbK5TYOHHwCEw/s320/IT4.png" width="320" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;">6) the editor will
display as below <o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-W--__NNXDGs/WOMIY0UFRfI/AAAAAAAAKsE/-Z6f6FTTHJ0JBGcQZ-Gl8JVVWDqqVuEoQCEw/s1600/IT5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="171" src="https://4.bp.blogspot.com/-W--__NNXDGs/WOMIY0UFRfI/AAAAAAAAKsE/-Z6f6FTTHJ0JBGcQZ-Gl8JVVWDqqVuEoQCEw/s320/IT5.png" width="320" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;">7) open the browser and
open the application which is having window based alerts <o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;">8) get the popup window
properties using AUTOIT finder , simply drag it and drop on the desired object
corresponding object properties will display in the finder<o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;">9) we need to write a
program which will perform the desired operations like selecting the window and
entering a value to that window<o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;">10) Window activate is
the command which is used to activate the window , so simply save your test
script and compile that an executable file will be created at the same location
where you saved the script, simply double click on the executable file and
hence it will perform the actions<o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;">11) controlset text is a
command which we used to enter a value into a search field<o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;">12) control click is a
command which will perform click operation <o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;">13) after whole script
got prepared save it and compile it<o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;">14) goto the folder
where we saved this file and simply double click on the executable file and
check whether it is performing the actions or not<o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;">15)
create a new test script in webdriver and now whatever the file we have created
we need to call that file in our webdriver program for which we are using pr<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;"><b>in
order to call the executable file we have 2 options:</b><o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;">1)
Process Builder<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;">
<span lang="EN" style="font-size: 12.0pt; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;">ProcessBuilder
p=new ProcessBuilder("d:\\Jeevan.exe","","Open");<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;">
<span lang="EN" style="font-size: 12.0pt; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;"> <o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;">
<span lang="EN" style="font-size: 12.0pt; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;"> p.start();<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;">2) Run
time execution <o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;">
<span lang="EN" style="font-size: 12.0pt; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;">Runtime.getRuntime().exec("d:\\Jeevan.exe");<o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-font-kerning: 1.0pt;">
</span></div>
<div class="MsoNormal">
<br /></div>
</div>
Surendra Jaganadamhttp://www.blogger.com/profile/10897473065213609023noreply@blogger.com0tag:blogger.com,1999:blog-6888448048642194122.post-29492565201664403242017-03-24T19:56:00.000-07:002020-08-31T01:43:20.999-07:00Protractor : Locators for Protractor <div dir="ltr" style="text-align: left;" trbidi="on">
<div style="background: white; vertical-align: baseline;">
<span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;"> The heart of end-to-end tests for webpages is
finding DOM elements, interacting with them, and getting information about the
current state of your application.</span><span lang="EN" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #24292e; font-family: "segoe ui" , sans-serif;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">This post is an overview of how to
locate and perform actions on DOM elements using Protractor.<o:p></o:p></span></div>
<div style="border-bottom: solid #EAECEF 1.0pt; border: none; mso-border-bottom-alt: solid #EAECEF .75pt; mso-element: para-border-div; padding: 0cm 0cm 4.0pt 0cm;">
<h2 style="border: none; margin-bottom: 12.0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 18.0pt; mso-border-bottom-alt: solid #EAECEF .75pt; mso-padding-alt: 0cm 0cm 4.0pt 0cm; padding: 0cm;">
<span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Overview
on locators<o:p></o:p></span></h2>
</div>
<span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Protractor exports a global function</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">element, which takes a</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><i><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Locator</span></i><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">and will return an</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><i><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">ElementFinder</span></i><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">. This function
finds a single element - if you need to manipulate multiple elements, use the</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">element.all</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">function.<o:p></o:p></span><br />
<div style="background: white; vertical-align: baseline;">
<span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">The</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><i><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">ElementFinder</span></i><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">has a set of</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><i><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">action methods</span></i><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">, such as</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">click(),</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">getText(), and</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">sendKeys. These are the core way to
interact with an element and get information back from it.<o:p></o:p></span></div>
<div style="background: white; vertical-align: baseline;">
<span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">A locator tells
Protractor how to find a certain DOM element. <o:p></o:p></span></div>
<div style="background: white; vertical-align: baseline;">
<span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">Protractor
exports locator factories on the global</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">by</span><span lang="EN" style="font-size: 11.0pt; mso-ansi-language: EN; mso-ascii-font-family: Calibri; mso-bidi-font-size: 10.0pt;"> </span><span lang="EN" style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt;">object. <o:p></o:p></span></div>
<div class="MsoNormal" style="background: #F6F8FA; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">
<br /></div>
<div class="MsoNormal" style="background: #F6F8FA; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">
<br /></div>
<div class="MsoNormal" style="background: #F6F8FA; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">
<b><span lang="EN">Below are most frequently used properties in our
projects: <o:p></o:p></span></b></div>
<div class="MsoNormal" style="background: #F6F8FA; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">
<br /></div>
<div class="MsoNormal" style="background: #F6F8FA; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">
<b><span lang="EN">Id: If an object is having id property then use
below syntax:<o:p></o:p></span></b></div>
<div class="MsoNormal" style="background: #F6F8FA; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">
<span lang="EN">element(by.id('Id
property of your object'));<o:p></o:p></span></div>
<div class="MsoNormal">
<b><span lang="EN" style="font-family: "calibri" , "sans-serif"; mso-ansi-language: EN; mso-hansi-font-family: "Times New Roman";">Classname : If an object is having
class name as below <o:p></o:p></span></b></div>
<div class="MsoNormal">
<span lang="EN">Object class property is : classname =btn btn-primary <o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN">then write as
element(by.css(‘.btn.btn-primary’));<o:p></o:p></span></div>
<div class="MsoNormal">
<b><span lang="EN">Function name: If an object
is having an ng-click- function as below<o:p></o:p></span></b></div>
<div class="MsoNormal" style="background: #EFF0F1; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">
<span lang="EN"><button
ng-click="myFunction()" ng-show="flag"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #EFF0F1; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">
<span lang="EN"> Submit<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #EFF0F1; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">
<span lang="EN"></button><o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN">Then use this syntax to identify object: element(by.css('[ng-click="myFunction()"]'))<o:p></o:p></span></div>
<div class="MsoNormal">
<b><span lang="EN" style="font-family: "calibri" , "sans-serif"; mso-ansi-language: EN; mso-hansi-font-family: "Times New Roman";">Text present on a button: If there is a
text on an button then use below syntax<o:p></o:p></span></b></div>
<div class="MsoNormal">
<span lang="EN">element(by.buttonText("Download AngularJS"));<o:p></o:p></span></div>
<div class="MsoNormal">
<b><span lang="EN" style="font-family: "calibri" , "sans-serif"; mso-ansi-language: EN; mso-hansi-font-family: "Times New Roman";">Link text: If there is a link to
identify we can use any of below given 2 options: <o:p></o:p></span></b></div>
<div class="MsoNormal">
<span lang="EN">Option 1: element(by.linkText('Complete')).click()<o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN">Option 2: element(by.css('a[href*="Previous
Versions"]')).click();<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal" style="background: #F6F8FA; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">
<b><span lang="EN">Table objects: If your applications is having an
header row with multiple links and if it doesn’t have any specific properties
as below screenshot<o:p></o:p></span></b></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-J6bRgRbMlcM/WNXcMQCWRnI/AAAAAAAAKi4/goptUpKjQEoRUCl31ZO30DktFeQGiuwzgCLcB/s1600/Pr7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="98" src="https://2.bp.blogspot.com/-J6bRgRbMlcM/WNXcMQCWRnI/AAAAAAAAKi4/goptUpKjQEoRUCl31ZO30DktFeQGiuwzgCLcB/s320/Pr7.png" width="320" /></a></div>
<div class="MsoNormal" style="background: #F6F8FA; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">
<br /></div>
<div class="MsoNormal" style="background: #F6F8FA; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">
<b><span lang="EN">Then use below syntax: <o:p></o:p></span></b></div>
<div class="MsoNormal">
<span lang="EN-US" style="font-family: "segoe ui" , sans-serif; font-size: 10pt;">by.xpath("//span[contains(@class,'MenuText')][contains(text(),</span><span lang="EN-US" style="font-size: 10pt;">’</span><span lang="EN-US" style="font-family: "segoe ui" , sans-serif; font-size: 10pt;">Text on Link')]"));<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span lang="EN-US" style="font-family: "segoe ui" , sans-serif; font-size: 10pt;">Protractor command would be like this:<o:p></o:p></span></b></div>
<div class="MsoNormal">
<span lang="EN-US" style="font-family: "segoe ui" , sans-serif; font-size: 10pt;">browser.driver.findElement(by.xpath("//span[contains(@class,'MenuText')][contains(text(),</span><span lang="EN-US" style="font-size: 10pt;">’</span><span lang="EN-US" style="font-family: "segoe ui" , sans-serif; font-size: 10pt;"> </span><span lang="EN-US" style="font-size: 10pt;">’</span><span lang="EN-US" style="font-family: "segoe ui" , sans-serif; font-size: 10pt;">Text on Link ')]"));</span><span lang="EN-US" style="font-family: "calibri" , "sans-serif"; mso-hansi-font-family: "Times New Roman";"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal" style="background: #F6F8FA; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">
<br /></div>
<div class="MsoNormal" style="background: #F6F8FA; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">
<span lang="EN">Once protractor
was installed you can find examples from the below location: <o:p></o:p></span></div>
<div class="MsoNormal" style="background: #F6F8FA; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">
<span lang="EN">C:\Users\surendra\AppData\Roaming\npm\node_modules\protractor<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #F6F8FA; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">
<br /></div>
<div class="MsoNormal" style="background: #F6F8FA; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">
<span lang="EN">We need to save
this path to run our scripts on other browsers like IE <o:p></o:p></span></div>
<div style="background: white; vertical-align: baseline;">
<br /></div>
<div style="background: white; vertical-align: baseline;">
<br /></div>
<div class="MsoNormal">
<br /></div>
<br />
<div class="MsoNormal">
<br /></div>
</div>
Surendra Jaganadamhttp://www.blogger.com/profile/10897473065213609023noreply@blogger.com0