<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2876525463809419491</id><updated>2026-05-20T06:34:18.792-07:00</updated><category term="SOA testing"/><category term="SOAP UI pro"/><category term="web services testing"/><category term="Automation testing"/><category term="SOAP UI"/><category term="ITKO LISA"/><category term="Data driven testing"/><category term="=Tidbits-Learn as you grow and grow as you learn"/><category term="java"/><category term="LISA"/><category term="groovyscripting"/><category term="web service"/><category term="Drivers of SOA"/><category term="Groovy"/><category term="selenium"/><category term="testing"/><category term="Howto"/><category term="Opensources testing"/><category term="xml"/><category term="AJAX"/><category term="API Guides"/><category term="Cognizant"/><category term="Identification of services"/><category term="Overview soa testing"/><category term="SOA"/><category term="Spring"/><category term="aggregation"/><category term="assertion"/><category term="groovyscript"/><category term="jbehave"/><category term="soapui"/><category term="wsdl"/><category term="ALM"/><category term="Android"/><category term="BDD"/><category term="Classification of Service"/><category term="DB2"/><category term="Excel writing"/><category term="GCP"/><category term="Idempotency"/><category term="Internal entity reference"/><category term="JUNIT testing"/><category term="LOAD UI"/><category term="Multiple end point"/><category term="Oracle service testing suite"/><category term="Orchestration"/><category term="Parser"/><category term="QTP"/><category term="Registry moniter"/><category term="SOAP Sonar"/><category term="Service"/><category term="Service Design"/><category term="VB Scripting"/><category term="VBScript Syntax Rules"/><category term="WSH Object method reference"/><category term="Workstation"/><category term="automated testing"/><category term="automation"/><category term="capybara"/><category term="cloud"/><category term="common soa concepts"/><category term="cucumber"/><category term="entity"/><category term="grails"/><category term="html"/><category term="jQuery"/><category term="performance testing"/><category term="properties"/><category term="qc"/><category term="report"/><category term="ruby"/><category term="simple"/><category term="statefullness"/><category term="technology"/><category term="test case"/><category term="tutorial"/><category term="uddi"/><category term="userguide"/><title type='text'>Webservices Testing</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://webservices-testing.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://webservices-testing.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Sureshkumar</name><uri>http://www.blogger.com/profile/16486205579229653742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>85</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2876525463809419491.post-9176969190092793944</id><published>2020-10-25T11:08:00.002-07:00</published><updated>2020-10-25T11:08:56.612-07:00</updated><title type='text'>Broadcast Join Query - Big Query </title><content type='html'>&lt;p&gt;&amp;nbsp;There are two types of joins in BigQuery, Broadcast and hash&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Broadcast query is simpler, Broadcast joins can be used when one of the tables is small, about 150 mb or less. Broadcast joins take the small table and send the table to every worker. If there are hundreds of workers processing the large table, the entire small table is send to each of these 100s of workers. This is a bit of brute force was to do the join. The advantage is that it can be done with just a single pass through the large table and does not require a shuffle.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Joins operate by using key to match up rows in two or more tables and they need to look at all of the matching values on both sides. This means that when key &quot;234&quot; shows on the left side of the join, you need to match it up with all of the rows corresponding to the &quot;234&quot; on the right side of the join. or if there are no rows you need to know that too. To do this matching you need to get the rows from the left for a particular key in the same place as the rows from the right matching a key . Broadcast join does this by just sending one of the tables everywhere. So everything is colocated.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Let us take the example of github commits in the in the history of that service . We use two tables that we can join: the commits table which contains the information about every commit operation and the language table, which has information about the programming languages that are being used.&amp;nbsp;&lt;/p&gt;&lt;p&gt;The query that we look at will pick out the Github contributions certain authors and rank them by the numbers of bytes of code written in the repository per language. The query is as follows&amp;nbsp;&lt;/p&gt;&lt;p&gt;--------------------------------------------------------------------------------------------------------------------------&lt;/p&gt;&lt;p&gt;WITH&amp;nbsp;&lt;/p&gt;&lt;p&gt;repo_commits AS (&lt;/p&gt;&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;SELECT repos as repo_name, author.name as author&lt;/p&gt;&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;FROM `bigquery-public-data.github_repos.commits` c, c.repo_name repos&lt;/p&gt;&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;WHERE author.name IN(&quot;James bond&quot;, &quot;Morgan Freeman&quot;),&lt;/p&gt;&lt;p&gt;repo_languages AS (&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; SELECT lang.name as lang, lang.bytes AS lang_bytes, repos.repo_name as repo_name&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; FROM `bigquery-public-data.github_repos.languages` repos, repos.LANGUAGE as lang&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;)&lt;/p&gt;&lt;p&gt;SELECT lang, author, SUM(lang_bytes) AS total_bytes&lt;/p&gt;&lt;p&gt;FROM repo_languages&lt;/p&gt;&lt;p&gt;JOIN repo_commits USING(repo_name)&lt;/p&gt;&lt;p&gt;GROUP BY lang, author&amp;nbsp;&lt;/p&gt;&lt;p&gt;ORDER BY total_bytes DESC&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;---------------------------------------------------------------------------------------------------------------------------&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;This query uses some advanced query techniques such as flattening arrays via CROSS JOIN and WITH statements to make the query easier to read. They key part of this query is this&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;----------------------------------------------------------------------------------------------------------------------------&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;SELECT lang, author, SUM(lang_bytes) as total_bytes&lt;/p&gt;&lt;p&gt;FROM repo_languages&lt;/p&gt;&lt;p&gt;JOIN repo_commits USING(repo_name)&lt;/p&gt;&lt;p&gt;GROUP BY lang, author&lt;/p&gt;&lt;p&gt;ORDER BY total_bytes DESC&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;----------------------------------------------------------------------------------------------------------------------------&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;This part of the query joins the language table against the commits table on the repository name field&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;If you look at the query plan for this query, it is mostly things that we&#39;ve already seen, with two new types of stages, coalesce and join. Th coalesce stage is very simple, dynamic stage that is added when BigQuery detects that one of the tables in a join is going to be small. The reason it is necessary is because we want to get all the data for a table into a single node so that we can broadcast it. But previous stages might have taken a large table and filtered it down, turning it into a small table. Other new stage is in the Join+ . The stage is called Join+ instead of join because it does a join and an aggregate all in one step. The left in the case is a languages table, the right is the coalesced broadcast table from previous stage. The only way to identify a broadcast join is from the text EACH WITH ALL. This means&amp;nbsp; taking each row of the table on the left of the join and matching it with &quot;ALL&quot;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://webservices-testing.blogspot.com/feeds/9176969190092793944/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webservices-testing.blogspot.com/2020/10/broadcast-join-query-big-query.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/9176969190092793944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/9176969190092793944'/><link rel='alternate' type='text/html' href='http://webservices-testing.blogspot.com/2020/10/broadcast-join-query-big-query.html' title='Broadcast Join Query - Big Query '/><author><name>Sureshkumar</name><uri>http://www.blogger.com/profile/16486205579229653742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2876525463809419491.post-7765350461011544270</id><published>2020-06-18T14:02:00.000-07:00</published><updated>2020-06-18T14:02:40.434-07:00</updated><title type='text'> SOFTWARE TESTING - SDLC (SOFTWARE DEVELOPMENT LIFECYCLE)                                                                           </title><content type='html'>&lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;-------------------------------------&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;----------------------------------------------------------------------------------------&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;&lt;font color=&quot;#d52c1f&quot;&gt;SDLC – SOFTWARE
DEVELOPMENT LIFECYCLE&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Software : Set of programs
developed for specific purpose.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Eg : Netbanking, Online
shopping sites, ms office tools, antivirus, gmail, mobile apps, The s/w ould be
for various domains like healthcare, telecom, banking, education, manufacturing
etc.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;&lt;u&gt;Steps of SDLC- SOFTWARE
DEVELOPMENT LIFECYCLE&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;A step by step approach to
develop the software. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;&lt;tr style=&quot;mso-yfti-firstrow: yes; mso-yfti-irow: 0;&quot;&gt;
  &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.85pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;STEPS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.85pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;WHAT&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.9pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;WHO&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.9pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;DOCS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr style=&quot;mso-yfti-irow: 1;&quot;&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.85pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Scope identification/
  requirement gathering. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.85pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Business requirements &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.9pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;BA&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.9pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;BRD- Business
  requirement document.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr style=&quot;mso-yfti-irow: 2;&quot;&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.85pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Plan&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.85pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Schedule, Budget&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.9pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;PM&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.9pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Project plan&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr style=&quot;mso-yfti-irow: 3;&quot;&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.85pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Analysis&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.85pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Specification&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.9pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;BA&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.9pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;FSD – Functional
  specification document&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr style=&quot;mso-yfti-irow: 4;&quot;&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.85pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Design&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.85pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Programming logic&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.9pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Architect&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.9pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Design doc&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr style=&quot;mso-yfti-irow: 5;&quot;&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.85pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Development&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.85pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Programming&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.9pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Developers&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.9pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Program files/source
  code&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr style=&quot;mso-yfti-irow: 6;&quot;&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.85pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Test&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.85pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.9pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;QA&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.9pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr style=&quot;mso-yfti-irow: 7;&quot;&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.85pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Deployment&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.85pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;release&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.9pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Developer, system admin&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.9pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Installation manual&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr style=&quot;mso-yfti-irow: 8; mso-yfti-lastrow: yes;&quot;&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.85pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;UAT&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.85pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;User testing &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.9pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Users-QA,BA&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.9pt;&quot; valign=&quot;top&quot; width=&quot;156&quot;&gt;
  &lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;User manual&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;

&lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;b style=&quot;font-size: 12pt;&quot;&gt;Scope
Identification/requirement gathering&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;: This is to gather all the requirements as per the client.&lt;/span&gt;&lt;/p&gt;

&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;b&gt;Project
information/requirement &lt;/b&gt;:-&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;Functionalities&lt;span style=&quot;font-size: 12pt;&quot;&gt;,&amp;nbsp;Users,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Performance,&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;Data,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Quality etc.&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Plan&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt; :-&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;This to plan and schedule the activities.&lt;/span&gt;&lt;br /&gt;&lt;b style=&quot;font-size: 12pt;&quot;&gt;Budget &lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;– Cost estimation –
HR, S/W licence, Hardware cost, Miscellaneous.&lt;/span&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Project plan&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;:-&lt;/span&gt;&lt;/div&gt;&lt;div&gt;

&lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Analysis :-&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt; BA, Details of the requirements with the mockup. Fsd
is created in this stage. Eg- Funds transfer.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;All these details goes
into the functional specification document.&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Design:-&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt; Architects, t&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;he experienced developers are called
architects. The architects would create a list of programs and how they are
interfaced. Design doc is created here.&lt;/span&gt;&lt;br /&gt;&lt;blockquote style=&quot;border: none; margin: 0px 0px 0px 40px; padding: 0px; text-align: left;&quot;&gt;&lt;/blockquote&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;For eg:-&lt;/span&gt;&lt;br /&gt;&lt;blockquote style=&quot;border: none; margin: 0px 0px 0px 40px; padding: 0px; text-align: left;&quot;&gt;&lt;/blockquote&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Click on fund transfer –
what program needs to be executed, what other programs need to work, the
interlink between the two programs. All this information would be in the
TSD(Test design document).&lt;/span&gt;&lt;br /&gt;&lt;blockquote style=&quot;border: none; margin: 0px 0px 0px 40px; padding: 0px; text-align: left;&quot;&gt;&lt;/blockquote&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Development :-
Developers&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Developers would write the
programs like coding. They refer to the test design document which is created
by the architect. All this information is recorded in the document called
program files or source code document.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;p class=&quot;MsoNoSpacing&quot; style=&quot;text-align: left;&quot;&gt;&lt;/p&gt;&lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;Testing :- &lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Identify the defects in
the s/w and verify the compliance of the s/w with the client requirements.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNoSpacing&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;Deployment &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;– we release the s/w to the client or install the s/w
on the client computers with the help of developers and system
administrators.&amp;nbsp; Installation manual is
prepared in this phase. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;blockquote style=&quot;border: none; margin: 0px 0px 0px 40px; padding: 0px; text-align: left;&quot;&gt;&lt;/blockquote&gt;&lt;blockquote style=&quot;border: none; margin: 0px 0px 0px 40px; padding: 0px; text-align: left;&quot;&gt;&lt;/blockquote&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12.0pt;&quot;&gt;UAT – User acceptance
testing -&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;The real time user would
check if the s/w is developed as per the expectation. The document created here
is user manual by the business analyst and would have steps on how to use the
s/w.&amp;nbsp;&lt;/span&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;p class=&quot;MsoNoSpacing&quot;&gt;





&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;

&lt;p class=&quot;MsoNoSpacing&quot;&gt;



&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://webservices-testing.blogspot.com/feeds/7765350461011544270/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webservices-testing.blogspot.com/2020/06/software-testing-sdlc-software.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/7765350461011544270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/7765350461011544270'/><link rel='alternate' type='text/html' href='http://webservices-testing.blogspot.com/2020/06/software-testing-sdlc-software.html' title=' SOFTWARE TESTING - SDLC (SOFTWARE DEVELOPMENT LIFECYCLE)                                                                           '/><author><name>Sneha  Suresh</name><uri>http://www.blogger.com/profile/05729314862460871719</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2876525463809419491.post-6639989221265010135</id><published>2020-06-08T17:48:00.001-07:00</published><updated>2020-06-08T18:01:03.344-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="GCP"/><category scheme="http://www.blogger.com/atom/ns#" term="SOA"/><category scheme="http://www.blogger.com/atom/ns#" term="Spring"/><category scheme="http://www.blogger.com/atom/ns#" term="web service"/><title type='text'>Spring Cloud Stream</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-0tMawe5rNc9NIPnZoJuEZThiaROCk3fnT3V6m0vXV8947yy41EJlG7dPNdi5BDKGE3lSZgEz1-Ey4mImLTcm0GJ_ZET4SU32OZ1xsDK52P12carRaXHlPe3hQ1M-RcEX5qiEgUUS9VU/s1600/Screen+Shot+2020-06-08+at+8.45.49+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;738&quot; data-original-width=&quot;932&quot; height=&quot;316&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-0tMawe5rNc9NIPnZoJuEZThiaROCk3fnT3V6m0vXV8947yy41EJlG7dPNdi5BDKGE3lSZgEz1-Ey4mImLTcm0GJ_ZET4SU32OZ1xsDK52P12carRaXHlPe3hQ1M-RcEX5qiEgUUS9VU/s400/Screen+Shot+2020-06-08+at+8.45.49+PM.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;ul style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-color: white; box-sizing: border-box; color: #333333; font-family: Georgia, &amp;quot;Droid Serif&amp;quot;, Times, serif; font-size: 18.88px; line-height: 1.65em !important; list-style-image: initial; list-style-position: initial; margin-bottom: 2em; margin-left: 0px !important; margin-right: 0px !important; margin-top: 1.5em; padding: 0px 0px 0px 25px;&quot;&gt;
&lt;li style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box; font-size: 18.88px; line-height: 1.65em !important; list-style: disc; margin: 0.5em 0px 0.65em !important; padding: 0px; text-align: left;&quot;&gt;&lt;span style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box; font-weight: 700;&quot;&gt;Message:&lt;/span&gt;&amp;nbsp;A data structure that&#39;s used to describe data sent to and received from a messaging system.&lt;/li&gt;
&lt;li style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box; font-size: 18.88px; line-height: 1.65em !important; list-style: disc; margin: 0.5em 0px 0.65em !important; padding: 0px; text-align: left;&quot;&gt;&lt;span style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box; font-weight: 700;&quot;&gt;Publisher:&lt;/span&gt;&amp;nbsp;Sends messages to the&amp;nbsp;&lt;span style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box;&quot;&gt;messaging system.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box; font-size: 18.88px; line-height: 1.65em !important; list-style: disc; margin: 0.5em 0px 0.65em !important; padding: 0px; text-align: left;&quot;&gt;&lt;span style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box; font-weight: 700;&quot;&gt;Subscriber&lt;/span&gt;: Receives&amp;nbsp;&lt;span style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box;&quot;&gt;messages from the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box;&quot;&gt;messaging system.&lt;/span&gt;&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box; font-size: 18.88px; line-height: 1.65em !important; list-style: disc; margin: 0.5em 0px 0.65em !important; padding: 0px; text-align: left;&quot;&gt;&lt;span style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box; font-weight: 700;&quot;&gt;Channel:&lt;/span&gt;&amp;nbsp;Used to communicate with the&amp;nbsp;&lt;span style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box;&quot;&gt;messaging system. Publishers use output channels and subscribers use input channels.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box; font-size: 18.88px; line-height: 1.65em !important; list-style: disc; margin: 0.5em 0px 0.65em !important; padding: 0px; text-align: left;&quot;&gt;&lt;span style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box; font-weight: 700;&quot;&gt;Binder:&lt;/span&gt;&amp;nbsp;A&lt;span style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box;&quot;&gt;&amp;nbsp;binder&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box;&quot;&gt;provides the actual integration with a specific messaging system, similar to what a JDBC driver does for a specific type of database.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webservices-testing.blogspot.com/feeds/6639989221265010135/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webservices-testing.blogspot.com/2020/06/spring-cloud-stream.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/6639989221265010135'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/6639989221265010135'/><link rel='alternate' type='text/html' href='http://webservices-testing.blogspot.com/2020/06/spring-cloud-stream.html' title='Spring Cloud Stream'/><author><name>Sureshkumar</name><uri>http://www.blogger.com/profile/16486205579229653742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-0tMawe5rNc9NIPnZoJuEZThiaROCk3fnT3V6m0vXV8947yy41EJlG7dPNdi5BDKGE3lSZgEz1-Ey4mImLTcm0GJ_ZET4SU32OZ1xsDK52P12carRaXHlPe3hQ1M-RcEX5qiEgUUS9VU/s72-c/Screen+Shot+2020-06-08+at+8.45.49+PM.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2876525463809419491.post-941596452186725034</id><published>2020-06-07T10:15:00.002-07:00</published><updated>2020-06-07T10:15:42.616-07:00</updated><title type='text'>Spring Data - Spring Java Persistence API - Repositories </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Repositories&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Today we are going to talk about the Repositories, Repositories are used to store and access data types of database. In its most basic form, a repository can be declared as a Java interface ! Spring data will generate its implementation on the fly using the opinionated conventions. These conventions can be overridden and / or complemented by additional configuration and if required some Java code. Spring data also comes with some base Java interfaces for example CrudRepository to make the definition of a repository even simpler. The base interface CrudRepository, provides us with standard methods for create, read, update and delete operations.&lt;br /&gt;
&lt;br /&gt;
To specify a repository for handling the JPA entity, review entity we only need to declare the following&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;import org.springframework.data.repository.CrudRepository;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;public interface ReviewRepository extends CrudRepository&lt;reviewentity eviewentitypk=&quot;&quot;&gt; {&lt;/reviewentity&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Collection&lt;reviewentity&gt; findByProductId(int productId);&lt;/reviewentity&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We use a class, ReviewEntityPK, to describe a composite primary key. It looks as follows&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;public class ReviewEntityPK implement Serializable {&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;public int productId;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;public int reviewId;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;br /&gt;
We have also added an extra method , findByProductId, which allows us to look up Review entities based on productId - a field that is part of the primary key. The naming of the method follows a naming convention defined by Spring Data that allows spring data to generate the implementation of the method on the fly !&lt;br /&gt;
&lt;br /&gt;
If we want to use the repository, we can simply inject it then start to use it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;private final ReviewRepository repository;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;@Autowired&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;public ReviewService(ReviewRepository repository ) {&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; this.repository = repository;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;public void someMethod() {&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp;repository.save(entity);&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp;repository.delete(entity);&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp;repository.findByProductId(productId);&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Also added to the CrudRepository interface, Spring data also provides a reactive base interface, ReactiveCrudRepository, which enables reactive repositories. The methods of this interface do not return objects or collections of objects; instead they return &lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;mono &lt;/span&gt;&lt;/i&gt;or &lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;flux &lt;/span&gt;&lt;/i&gt;objects&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Mono and Flux objects are reactive streams that are capable of returning either 0..1 or 0..m entities as they become available on the stream. The reactive-based interface can only be used by spring data sub projects that support reactive database drivers. they are non blocking I/O. The Spring Data MongoDB subproject supports reactive repositories while spring Data JPA does not.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
import org.springframework.data.repository.reactive.ReactiveCrudRepository;&lt;br /&gt;
import reactor.core.publisher.Flux;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;public interface RecommendationRepository extends ReactiveCrudRepository&lt;recommendationentity string=&quot;&quot;&gt; {&lt;/recommendationentity&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; Flux&lt;recommendationentity&gt; findByProductId(int productId) ;&lt;/recommendationentity&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webservices-testing.blogspot.com/feeds/941596452186725034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webservices-testing.blogspot.com/2020/06/spring-data-spring-java-persistence-api.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/941596452186725034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/941596452186725034'/><link rel='alternate' type='text/html' href='http://webservices-testing.blogspot.com/2020/06/spring-data-spring-java-persistence-api.html' title='Spring Data - Spring Java Persistence API - Repositories '/><author><name>Sureshkumar</name><uri>http://www.blogger.com/profile/16486205579229653742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2876525463809419491.post-6342077873770496896</id><published>2020-06-06T20:54:00.001-07:00</published><updated>2020-06-06T20:54:08.533-07:00</updated><title type='text'>Design patterns for microservices</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-color: white; box-sizing: border-box; color: #333333; font-family: Georgia, &amp;quot;Droid Serif&amp;quot;, Times, serif; font-size: 18.88px; line-height: 1.65em !important; margin-bottom: 1.25em !important; margin-top: 0.75em !important; padding: 0px;&quot;&gt;
The concept of design patterns is actually quite old; it was invented by&amp;nbsp;&lt;span style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box;&quot;&gt;Christopher Alexander back in 1977. In essence, a design pattern is about describing a reusable solution to a problem when given a specific co&lt;/span&gt;&lt;span style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box;&quot;&gt;ntext.&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-color: white; box-sizing: border-box; color: #333333; font-family: Georgia, &amp;quot;Droid Serif&amp;quot;, Times, serif; font-size: 18.88px; line-height: 1.65em !important; margin-bottom: 1.25em !important; margin-top: 0.75em !important; padding: 0px;&quot;&gt;
The design patterns we will cover are as follows:&amp;nbsp;&lt;/div&gt;
&lt;ul style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-color: white; box-sizing: border-box; color: #333333; font-family: Georgia, &amp;quot;Droid Serif&amp;quot;, Times, serif; font-size: 18.88px; line-height: 1.65em !important; list-style-image: initial; list-style-position: initial; margin-bottom: 2em; margin-left: 0px !important; margin-right: 0px !important; margin-top: 1.5em; padding: 0px 0px 0px 25px;&quot;&gt;
&lt;li style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box; line-height: 1.65em !important; list-style: disc; margin: 0.5em 0px 0.65em !important; padding: 0px; text-align: left;&quot;&gt;Service discovery&lt;/li&gt;
&lt;li style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box; line-height: 1.65em !important; list-style: disc; margin: 0.5em 0px 0.65em !important; padding: 0px; text-align: left;&quot;&gt;Edge server&lt;/li&gt;
&lt;li class=&quot;mce-root&quot; style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box; line-height: 1.65em !important; list-style: disc; margin: 0.5em 0px 0.65em !important; padding: 0px; text-align: left;&quot;&gt;Reactive microservices&lt;/li&gt;
&lt;li class=&quot;mce-root&quot; style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box; line-height: 1.65em !important; list-style: disc; margin: 0.5em 0px 0.65em !important; padding: 0px; text-align: left;&quot;&gt;Central configuration&lt;/li&gt;
&lt;li class=&quot;mce-root&quot; style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box; line-height: 1.65em !important; list-style: disc; margin: 0.5em 0px 0.65em !important; padding: 0px; text-align: left;&quot;&gt;Centralized log analysis&lt;/li&gt;
&lt;li class=&quot;mce-root&quot; style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box; line-height: 1.65em !important; list-style: disc; margin: 0.5em 0px 0.65em !important; padding: 0px; text-align: left;&quot;&gt;Distributed tracing&lt;/li&gt;
&lt;li class=&quot;mce-root&quot; style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box; line-height: 1.65em !important; list-style: disc; margin: 0.5em 0px 0.65em !important; padding: 0px; text-align: left;&quot;&gt;Circuit Breaker&lt;/li&gt;
&lt;li class=&quot;mce-root&quot; style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box; line-height: 1.65em !important; list-style: disc; margin: 0.5em 0px 0.65em !important; padding: 0px; text-align: left;&quot;&gt;Control loop&lt;/li&gt;
&lt;li class=&quot;mce-root&quot; style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box; line-height: 1.65em !important; list-style: disc; margin: 0.5em 0px 0.65em !important; padding: 0px; text-align: left;&quot;&gt;Centralized monitoring and alarms&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webservices-testing.blogspot.com/feeds/6342077873770496896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webservices-testing.blogspot.com/2020/06/design-patterns-for-microservices.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/6342077873770496896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/6342077873770496896'/><link rel='alternate' type='text/html' href='http://webservices-testing.blogspot.com/2020/06/design-patterns-for-microservices.html' title='Design patterns for microservices'/><author><name>Sureshkumar</name><uri>http://www.blogger.com/profile/16486205579229653742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2876525463809419491.post-7936126280477783129</id><published>2020-06-04T19:57:00.000-07:00</published><updated>2020-06-04T19:59:17.051-07:00</updated><title type='text'>Managing Kubernetes Clusters</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Viewing the status of the K8s Clusters&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
You can view the Kubernetes cluster using either the Google Cloud console or the glcoud commands&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Viewing the status of the Kubernetes clusters using the Cloud Console&lt;/u&gt;&lt;br /&gt;
&lt;u&gt;&lt;br /&gt;&lt;/u&gt;
&lt;u&gt;&amp;nbsp;&lt;/u&gt;Starting from the cloud console home page(https://console.cloud.google.com ) . Open the navigation menu by clicking the three stacked lines icon in the upper-left corner . This displays the list of GCP services as shown below&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlMAcsegiwecQWxWoE4_3IEOat73X1hmE74wGJsDhC_lrbHzrVo07llTnwXQi3FJCChxAYGNC4tq6vk6f-ZA8k6I1A5VNEsV9PbzE620wJbdH01ZOAk8b7Oh16NJzWQ1EFNM2uV4cl33M/s1600/blogger1.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;901&quot; data-original-width=&quot;1149&quot; height=&quot;312&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlMAcsegiwecQWxWoE4_3IEOat73X1hmE74wGJsDhC_lrbHzrVo07llTnwXQi3FJCChxAYGNC4tq6vk6f-ZA8k6I1A5VNEsV9PbzE620wJbdH01ZOAk8b7Oh16NJzWQ1EFNM2uV4cl33M/s400/blogger1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the kubernetes engine from the lists of services&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOKlS5NYxih8DCDA6nGyhxprLCAaKolJG5oSctVoHoVSIDdato7e9FtvuB6qZWeSVr3NAn-upCdfLsgIcneeijVLFIYcLSwaYYzxfGP1IrVtx6GRIuTylwibtuuCMsvSDbOIyb9BmmcZ4/s1600/blogger2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;585&quot; data-original-width=&quot;840&quot; height=&quot;222&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOKlS5NYxih8DCDA6nGyhxprLCAaKolJG5oSctVoHoVSIDdato7e9FtvuB6qZWeSVr3NAn-upCdfLsgIcneeijVLFIYcLSwaYYzxfGP1IrVtx6GRIuTylwibtuuCMsvSDbOIyb9BmmcZ4/s320/blogger2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
After clicking the Kubernetes Engine in the navigation menu, you will see the list of running clusters&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhotVTssnFagDfDtP6mmpKBmgQ1b8aEOHNEd1tZiQ063MifT_t_HWR484cr5jUfwk-dDgEg3cygOuuqV6KoIOiSlc_HDBF6hiW4sxoVSZW_gm9p1sYEK5LPGsVBw2z7WvG-99lubWixTRA/s1600/blogger3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;442&quot; data-original-width=&quot;1552&quot; height=&quot;91&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhotVTssnFagDfDtP6mmpKBmgQ1b8aEOHNEd1tZiQ063MifT_t_HWR484cr5jUfwk-dDgEg3cygOuuqV6KoIOiSlc_HDBF6hiW4sxoVSZW_gm9p1sYEK5LPGsVBw2z7WvG-99lubWixTRA/s320/blogger3.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
The Clusters do not have persistent volumes but uses standard storage. Persistent volumes are durable disks that are managed by Kuberenetes and Implemented using Compute Engine persistent disks. A Storage class is a type of storage with a set of policies specifying quality of service, backup policy and provisioner.&lt;br /&gt;
&lt;br /&gt;
Click the name of a pod to see its details. The pod display is similar to node display with CPU, memory, and disk statistics. Configuration details include when the pod was created, labels assigned, links to logs, and status&lt;br /&gt;
&lt;br /&gt;
Other possible status are Pending, which indicates that the pod is downloading images. Succeeded&lt;br /&gt;
which indicates the pod terminated successfully. Failed which indicates that one container failed.&lt;br /&gt;
and lastly unknown which means master can not reach the node and status can not be determined&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Viewing that status of the K8s Cluster using the Cloud SDK and cloud shell&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
You can also use the commandline to view the status of the cluster. The glcoud container cluster list command is used to show those details&lt;br /&gt;
&lt;br /&gt;
To list the names and basic information of all the clusters use this command&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;gcloud container clusters list&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
To view the details of the cluster, use the gcloud container cluster describe command. You will need to pass in the name of a zone or region using --zone or --region parameter. For example, to describe the cluster named standard-cluster-1 located in the us-central1-a you need to use this command&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;gcloud container clusters describe --zone us-central1-a standard-cluster-1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
To list the information about nodes and pods use the kubectl command&lt;br /&gt;
&lt;br /&gt;
To ensure that the kubectl command is properly configured to access the Kubernetes cluster you need to use the following command&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-color: rgb(251, 251, 251) !important; border: 0px; box-sizing: border-box; font-size: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; hyphens: none; line-height: inherit; margin-bottom: 1em; margin-top: 1em; outline: 0px; overflow-wrap: initial !important; overflow: auto hidden; padding: 0px; vertical-align: baseline; white-space: pre-wrap; word-break: keep-all !important;&quot;&gt;&lt;code style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; border: 0px; box-sizing: border-box; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;gcloud container clusters get-credentials --zone us-central1-a standard-cluster-1&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-color: rgb(251, 251, 251) !important; border: 0px; box-sizing: border-box; font-size: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; hyphens: none; line-height: inherit; margin-bottom: 1em; margin-top: 1em; outline: 0px; overflow-wrap: initial !important; overflow: auto hidden; padding: 0px; vertical-align: baseline; white-space: pre-wrap; word-break: keep-all !important;&quot;&gt;&lt;code style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; border: 0px; box-sizing: border-box; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-color: rgb(251, 251, 251) !important; border: 0px; box-sizing: border-box; font-size: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; hyphens: none; line-height: inherit; margin-bottom: 1em; margin-top: 1em; outline: 0px; overflow-wrap: initial !important; overflow: auto hidden; padding: 0px; vertical-align: baseline; white-space: pre-wrap; word-break: keep-all !important;&quot;&gt;You can get a list of nodes in a cluster using the following command &lt;/pre&gt;
&lt;pre style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-color: rgb(251, 251, 251) !important; border: 0px; box-sizing: border-box; font-size: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; hyphens: none; line-height: inherit; margin-bottom: 1em; margin-top: 1em; outline: 0px; overflow-wrap: initial !important; overflow: auto hidden; padding: 0px; vertical-align: baseline; white-space: pre-wrap; word-break: keep-all !important;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-color: rgb(251, 251, 251) !important; border: 0px; box-sizing: border-box; font-size: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; hyphens: none; line-height: inherit; margin-bottom: 1em; margin-top: 1em; outline: 0px; overflow-wrap: initial !important; overflow: auto hidden; padding: 0px; vertical-align: baseline; white-space: pre-wrap; word-break: keep-all !important;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;kubectl get nodes&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webservices-testing.blogspot.com/feeds/7936126280477783129/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webservices-testing.blogspot.com/2020/06/managing-kubernetes-clusters.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/7936126280477783129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/7936126280477783129'/><link rel='alternate' type='text/html' href='http://webservices-testing.blogspot.com/2020/06/managing-kubernetes-clusters.html' title='Managing Kubernetes Clusters'/><author><name>Sureshkumar</name><uri>http://www.blogger.com/profile/16486205579229653742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlMAcsegiwecQWxWoE4_3IEOat73X1hmE74wGJsDhC_lrbHzrVo07llTnwXQi3FJCChxAYGNC4tq6vk6f-ZA8k6I1A5VNEsV9PbzE620wJbdH01ZOAk8b7Oh16NJzWQ1EFNM2uV4cl33M/s72-c/blogger1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2876525463809419491.post-4935080028250350630</id><published>2017-06-30T17:06:00.000-07:00</published><updated>2017-06-30T17:06:04.498-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="grails"/><category scheme="http://www.blogger.com/atom/ns#" term="Groovy"/><title type='text'>Grails ! Holy grails - Few tidbits about grails framework </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Here is the complete gradle dependencies for the spring spock framework for grails&lt;br /&gt;
&lt;br /&gt;
apply plugin:&#39;groovy&#39;&lt;br /&gt;apply plugin:&#39;eclipse&#39;&lt;br /&gt;
repositories {&lt;br /&gt;&amp;nbsp;mavenCentral()&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;
def springVersion = &#39;3.2.2.RELEASE&#39;&lt;br /&gt;def spockVersion = &#39;0.7-groovy-2.0&#39;&lt;br /&gt;
dependencies {&lt;br /&gt;&amp;nbsp;compile &quot;org.codehaus.groovy:groovy-all:2.1.5&quot;&lt;br /&gt;&amp;nbsp;compile &quot;org.springframework:spring-context:$springVersion&quot;&lt;br /&gt;&amp;nbsp;compile &quot;org.springframework:spring-jdbc:$springVersion&quot;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;runtime &quot;com.h2database:h2:1.3.172&quot;&lt;br /&gt;&amp;nbsp;testCompile &quot;commons-dbcp:commons-dbcp:1.4&quot;&lt;br /&gt;&amp;nbsp;runtime &quot;cglib:cglib:2.2&quot;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;runtime &quot;org.slf4j:slf4j-nop:1.5.8&quot;&lt;br /&gt;&amp;nbsp;runtime &quot;org.slf4j:slf4j-api:1.5.8&quot;&lt;br /&gt;&amp;nbsp;testCompile &quot;org.grails:grails-spring:2.2.2&quot;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;compile &quot;aopalliance:aopalliance:1.0&quot;&lt;br /&gt;&amp;nbsp;compile &quot;org.aspectj:aspectjrt:1.6.10&quot;&lt;br /&gt;&amp;nbsp;compile &quot;org.aspectj:aspectjweaver:1.6.10&quot;&lt;br /&gt;
&amp;nbsp;testCompile &quot;org.springframework:spring-test:$springVersion&quot;&lt;br /&gt;&amp;nbsp;testCompile &quot;org.spockframework:spock-core:$spockVersion&quot;&lt;br /&gt;&amp;nbsp;testCompile &quot;org.spockframework:spock-spring:$spockVersion&quot;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;
The Beanbuilder is a class provided by an open source project. Open source projects by definition make their source code available. While browsing through the implementation of an open source is certainly useful, But it is an often overlooked resource. The better open source projects are loaded with test cases. Because noone is really fond of writing documentation. Sometimes it is hard to figure out exactly how to use a particularly capability in a project. If you re lucky whoever wrote the feature you want also wrote test cases for it. &lt;br /&gt;
In the case of the Grails BeanBuilder, there s a test case called grails.spring.BeanBuilderTests which has a couple of very nice properties: &lt;br /&gt;&amp;nbsp;It was originally authored by Graeme Rocher, The head of the grails project &lt;br /&gt;
&amp;nbsp;The test cas has merely 30 different tests in it, demonstrating everthing you might want to do with this class. &lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webservices-testing.blogspot.com/feeds/4935080028250350630/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webservices-testing.blogspot.com/2017/06/grails-holy-grails-few-tidbits-about.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/4935080028250350630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/4935080028250350630'/><link rel='alternate' type='text/html' href='http://webservices-testing.blogspot.com/2017/06/grails-holy-grails-few-tidbits-about.html' title='Grails ! Holy grails - Few tidbits about grails framework '/><author><name>Sureshkumar</name><uri>http://www.blogger.com/profile/16486205579229653742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2876525463809419491.post-4013351204359340027</id><published>2017-06-29T14:32:00.001-07:00</published><updated>2017-06-29T14:32:25.051-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ALM"/><category scheme="http://www.blogger.com/atom/ns#" term="automation"/><category scheme="http://www.blogger.com/atom/ns#" term="Groovy"/><category scheme="http://www.blogger.com/atom/ns#" term="qc"/><category scheme="http://www.blogger.com/atom/ns#" term="soapui"/><title type='text'>Generic Script to update all the test cases, test steps, validations, expected, actual results / response For SOAPUI - Pro (ready API ) </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Sorry for the long title, I just wanted people to find this script. One of the biggest issue with SOAPUI and SOAPUI pro (Ready API ) adoption is the rather poor integration with the HP QC, ALM&lt;br /&gt;
&lt;br /&gt;
I know that the popularity of the ALM (HP Quality Center ) is on the decline, Still for a team with lot of manual QA, This test management system still provides tremendous value&lt;br /&gt;
&lt;br /&gt;
So in the blog, I will take you guys in a journey of how to build a generic script which will update all the test steps of certain type ( Rest / SOAP / HTTP ) of a test case, it will update the status, expected result, and actual response to the test case in Test Lab of QC !&lt;br /&gt;
&lt;br /&gt;
Here is the script in the entirety, feel free to copy paste and use it.&lt;br /&gt;
&lt;br /&gt;
Important information -&lt;br /&gt;
&lt;br /&gt;
This solution only works with 32 bit of Java Version - or 32 Bit SOAPUI installation, This works with both pro and free version of SOAPUI&lt;br /&gt;
&lt;br /&gt;
There are some jar files and DLLs that you need to have in your %SOAPUI%../bin/ext folder&lt;br /&gt;
&lt;br /&gt;
They are as follows&lt;br /&gt;
&lt;br /&gt;
- jacob-1.18-x64.dll&lt;br /&gt;
- jacob.jar&lt;br /&gt;
- jacob-1.18-x86.dll&lt;br /&gt;
- scriptom-1.6.0.jar &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Once you copy these files to the folder, restart your soapui , let me please know in comments if you face any issues &lt;br /&gt;
--------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;
-------------------------------------------------------------------------------------------------------------------------- &lt;br /&gt;
&lt;br /&gt;
import org.codehaus.groovy.scriptom.*&lt;br /&gt;import com.jacob.activeX.ActiveXComponent&lt;br /&gt;import com.jacob.com.*&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;def testCaseList = testRunner.getTestCase().getTestSuite().getTestCaseList()&lt;br /&gt;def testStepType = testRunner.getTestCase().getTestSuite().getTestCaseByName(&lt;span style=&quot;color: red;&quot;&gt;&lt;testcasename&gt;&lt;/testcasename&gt;&lt;/span&gt;).getTestStepByName(&lt;span style=&quot;color: red;&quot;&gt;&lt;teststepname&gt;&lt;/teststepname&gt;&lt;/span&gt;).class&lt;br /&gt;def repCol = [:]&lt;br /&gt;def testCaseCol = [:]&lt;br /&gt;testCaseList.each{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def testCaseName = it.getTestStepsOfType(testStepType).name&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (testCaseName.toString()!=&#39;[]&#39;){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; repCol = it.getTestStepsOfType(testStepType)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; def repCObj = repCol&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;testCaseCol &amp;lt;&amp;lt;[&quot;${it.name}&quot;:repCObj]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;def qcserver1 = &lt;span style=&quot;background-color: red;&quot;&gt;&lt;yourqc server=&quot;&quot;&gt;&lt;/yourqc&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;def tdc = new ActiveXObject(&#39;TDApiOle80.TDConnection.1&#39;)&lt;br /&gt;tdc.InitConnection(qcserver1)&lt;br /&gt;tdc.login(&lt;span style=&quot;color: red;&quot;&gt;&lt;yourqc userid=&quot;&quot;&gt;&lt;/yourqc&gt;&lt;/span&gt;,&lt;span style=&quot;color: red;&quot;&gt;&lt;your password=&quot;&quot; qc=&quot;&quot;&gt;&lt;/your&gt;&lt;/span&gt;)&lt;br /&gt;tdc.connect(&lt;span style=&quot;color: red;&quot;&gt;&lt;your project=&quot;&quot; qc=&quot;&quot;&gt;,&lt;your module=&quot;&quot; qc=&quot;&quot;&gt;&lt;/your&gt;&lt;/your&gt;&lt;/span&gt;)&lt;br /&gt;testFolder = /Root\Folder1\Folder2/&lt;br /&gt;testSetName =&lt;span style=&quot;color: red;&quot;&gt; &lt;your qc=&quot;&quot; testsetname=&quot;&quot;&gt;&lt;/your&gt;&lt;/span&gt;&lt;br /&gt;def tsTreeMgr = tdc.TestSetTreeManager;&lt;br /&gt;def tsFolder = tsTreeMgr.NodeByPath(testFolder);&lt;br /&gt;def tsList = tsFolder.FindTestSets(testSetName, false, null);&lt;br /&gt;&lt;br /&gt;returnV = updateTestCaseTestStepQC(testCaseCol,tsList)&lt;br /&gt;public&amp;nbsp; updateTestCaseTestStepQC (colObject, tsList ) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; colObject.each{ &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; def testCaseName_this = it.key &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; def testCaseColObj_this = testRunner.testCase.testSuite.getTestCaseByName(testCaseName_this)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; testStepType = testRunner.getTestCase().getTestSuite().getTestCaseByName(&lt;span style=&quot;color: red;&quot;&gt;&lt;testcasename&gt;&lt;/testcasename&gt;&lt;/span&gt;).getTestStepByName(&lt;span style=&quot;color: red;&quot;&gt;&lt;teststepname&gt;&lt;/teststepname&gt;&lt;/span&gt;).class&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; log.info testCaseName_this&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; repColObj = testCaseColObj_this.getTestStepsOfType(testStepType)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //repColObj.each{log.info it.getClass()}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; tsList.each{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; tsFactory = it.TSTestFactory&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; tsTestList =tsFactory.NewList(&quot;&quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; tsTestList.each{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (it.name.toString().contains(testCaseName_this)){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; runFactory = it.RunFactory &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; def date = new Date()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; date1 = date.format(&#39;yyyyMMddhhmmss&#39;).toString()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; log.info &quot;I was here &quot;+it.getClass()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; log.info &quot;I was here &quot;+it &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; it.getClass()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; run = runFactory.AddItem(&quot;Run&quot;+date1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; oStep = run.StepFactory&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; repColObj.each{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; oStep.AddItem(it.name.toString())&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; stepDetails =oStep.NewList(&quot;&quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; stepID = stepDetails.Count &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; statusThis = it.getAssertionStatus().toString()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; valueStatus =(statusThis==&quot;VALID&quot;)?&quot;Passed&quot;:&quot;Failed&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; stepDetails.Item(stepID)._setField(&quot;ST_STATUS&quot;,valueStatus)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; stepDetails.Item(stepID)._setField(&quot;ST_DESCRIPTION&quot;,&quot;Test validation Description &quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; assertionNames = &quot;&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; valueExpected = it.getAssertionList()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; log.info valueExpected.getClass()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; valueExpected1=valueExpected.collect(){it1-&amp;gt;it1.getLabel().toString()+it1.getStatus().toString()}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; stepDetails.Item(stepID)._setField(&quot;ST_EXPECTED&quot;,valueExpected1.toString())&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; valueResponse = it.getAssertableContentAsXml().toString()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; stepDetails.Item(stepID)._setField(&quot;ST_ACTUAL&quot;,valueResponse)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; run.Status = valueStatus&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; stepDetails.Post()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; run.Post()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;--------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;
--------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webservices-testing.blogspot.com/feeds/4013351204359340027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webservices-testing.blogspot.com/2017/06/generic-script-to-update-all-test-cases.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/4013351204359340027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/4013351204359340027'/><link rel='alternate' type='text/html' href='http://webservices-testing.blogspot.com/2017/06/generic-script-to-update-all-test-cases.html' title='Generic Script to update all the test cases, test steps, validations, expected, actual results / response For SOAPUI - Pro (ready API ) '/><author><name>Sureshkumar</name><uri>http://www.blogger.com/profile/16486205579229653742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2876525463809419491.post-6192887472114120179</id><published>2017-06-21T13:00:00.000-07:00</published><updated>2017-06-21T13:35:54.550-07:00</updated><title type='text'>How to create automation testing dashboards - Using React framework for reporting - Creating dashboard Series - Blog2</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;u&gt;What is Grunt -&lt;/u&gt; 
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
Grunt is basically a build management
solution, Used for React solutions Tasks are specified in Code ! They
resemble a large configuration file 
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;u&gt;What is Gulp&lt;/u&gt; 
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
Gulp is a streaming pipelining solution
for build management  or build task system 
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;u&gt;What is CommonJS&lt;/u&gt; 
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
CommonJS and AMD (Asynchronous Module
Definition ) are both modular strategies. AMD is preffered because of
the Asynchronous loading of modules and CommonJS is preffered because
how close it is to nodeJS &lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;What is WebPack&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
Webpack is a scaffolding tool. What do you mean by that ? it is kind of like a tool which will package everything into a folders and have them available as resources for your code base &lt;br /&gt;
&amp;nbsp;It s got a pluggable interface &lt;br /&gt;
&amp;nbsp;It s got a project build specification mechanism ! (cool ) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;

&lt;/div&gt;
&lt;b&gt;&lt;/b&gt;&lt;i&gt;&lt;/i&gt;&lt;u&gt;&lt;/u&gt;&lt;sub&gt;&lt;/sub&gt;&lt;sup&gt;&lt;/sup&gt;&lt;strike&gt;&lt;/strike&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webservices-testing.blogspot.com/feeds/6192887472114120179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webservices-testing.blogspot.com/2017/06/how-to-create-automation-testing_21.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/6192887472114120179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/6192887472114120179'/><link rel='alternate' type='text/html' href='http://webservices-testing.blogspot.com/2017/06/how-to-create-automation-testing_21.html' title='How to create automation testing dashboards - Using React framework for reporting - Creating dashboard Series - Blog2'/><author><name>Sureshkumar</name><uri>http://www.blogger.com/profile/16486205579229653742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2876525463809419491.post-6062912646325899059</id><published>2017-06-21T11:28:00.000-07:00</published><updated>2017-06-21T11:28:33.064-07:00</updated><title type='text'>How to create automation testing dashboards - Using React framework for reporting - Creating dashboard Series - Blog1 </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Creating Animated Dashboards &lt;br /&gt;
&lt;br /&gt;
Dashboards are immensely useful. They help us understand situation and represent metrics in a very precise way. Testing is also about reporting. To make issues more visible and understandable. In that sense I really like Dashing the animated widget dashboard. you get to create wonderful widgets with very interesting information with Dashing.io. Which is of late called as Slasing.io &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;http://dashing.io/&lt;br /&gt;
&lt;br /&gt;
It is a wonderful dashboard framework which is immensely useful to QA , Prod support and mainly DevOps &lt;br /&gt;
&lt;br /&gt;
Here in this series we will explore using the ReactFramwork &lt;br /&gt;
&lt;br /&gt;
I am going to take you guys to a journey , publish daily about using the React framework for creating interesting dashboards&lt;br /&gt;
&lt;br /&gt;
We will build a SPA or Single page application for our test report dashboard - Keep subscribed &lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webservices-testing.blogspot.com/feeds/6062912646325899059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webservices-testing.blogspot.com/2017/06/how-to-create-automation-testing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/6062912646325899059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/6062912646325899059'/><link rel='alternate' type='text/html' href='http://webservices-testing.blogspot.com/2017/06/how-to-create-automation-testing.html' title='How to create automation testing dashboards - Using React framework for reporting - Creating dashboard Series - Blog1 '/><author><name>Sureshkumar</name><uri>http://www.blogger.com/profile/16486205579229653742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2876525463809419491.post-476736336879474951</id><published>2016-04-04T06:18:00.000-07:00</published><updated>2016-04-04T06:18:43.358-07:00</updated><title type='text'>Create VBScript function for Reading / Writing from environment variables for QTP / UFT </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Often enough we need to write variables and access them through a big automation framework&lt;br /&gt;
&lt;br /&gt;
One of the most easy ways to create variables and access them throughout framework across tests is to store them as environment variables and particularly user environment variables&lt;br /&gt;
&lt;br /&gt;
Here is a function which will let you do that&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Public Function GetEnvVariable (varName )&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Set WshShell = CreateObject(&quot;WScript.Shell&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Set WshSystemEnv = Wsh.Shell.Environment(&quot;USER&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;GetEnvVariable = WshSystemEnv(varName)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Set WshShell = Nothing&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Set WshSystemEnv = Nothing&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;End Function&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is what happens&lt;br /&gt;
&lt;br /&gt;
First you create a function called GetEnvVariable&lt;br /&gt;
&lt;br /&gt;
You create a Wsh Shell object and WshSystemEnv object from the Wsh Shell object&lt;br /&gt;
&lt;br /&gt;
You call the WshSystemEnv method for the input variable and assign it to the function return !! thats it .. YOu can try this for your Automation framework as well&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webservices-testing.blogspot.com/feeds/476736336879474951/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webservices-testing.blogspot.com/2016/04/create-vbscript-function-for-reading.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/476736336879474951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/476736336879474951'/><link rel='alternate' type='text/html' href='http://webservices-testing.blogspot.com/2016/04/create-vbscript-function-for-reading.html' title='Create VBScript function for Reading / Writing from environment variables for QTP / UFT '/><author><name>Sureshkumar</name><uri>http://www.blogger.com/profile/16486205579229653742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2876525463809419491.post-6275955987704127091</id><published>2016-02-10T11:09:00.001-08:00</published><updated>2016-02-10T11:09:30.276-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="=Tidbits-Learn as you grow and grow as you learn"/><title type='text'>Popular Shortcut queries - Art of Retrieving Records </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
How to Count the number of rows for a particular search criteria&lt;/h3&gt;
&lt;div&gt;
&lt;div&gt;
-&amp;nbsp;&lt;span style=&quot;background-color: #f9f9fb; font-family: &amp;quot;menlo&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , &amp;quot;mono&amp;quot; , serif; font-size: 13px; line-height: 1.615;&quot;&gt;SELECT COUNT(*) &quot;Total&quot; FROM employees;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: #f9f9fb; font-family: &amp;quot;menlo&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , &amp;quot;mono&amp;quot; , serif; font-size: 13px; line-height: 1.615;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: #f9f9fb; font-family: &amp;quot;menlo&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , &amp;quot;mono&amp;quot; , serif; font-size: 13px; line-height: 1.615;&quot;&gt;If you have any specific search criteria&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: #f9f9fb; font-family: &amp;quot;menlo&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , &amp;quot;mono&amp;quot; , serif; font-size: 13px; line-height: 1.615;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: #f9f9fb; font-family: &amp;quot;menlo&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , &amp;quot;mono&amp;quot; , serif; font-size: 13px; line-height: 1.615;&quot;&gt;- SELECT COUNT(*) &quot;Total&quot; FROM employees WHERE SALARY&amp;gt;100000&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: #f9f9fb; font-family: &amp;quot;menlo&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , &amp;quot;mono&amp;quot; , serif; font-size: 13px; line-height: 1.615;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: #f9f9fb; font-family: &amp;quot;menlo&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , &amp;quot;mono&amp;quot; , serif; font-size: 13px; line-height: 1.615;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: #f9f9fb; font-family: &amp;quot;menlo&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , &amp;quot;mono&amp;quot; , serif; font-size: 13px; line-height: 1.615;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: #f9f9fb; font-family: Verdana, sans-serif; font-size: small; line-height: 1.615;&quot;&gt;Retrieve all rows and columns from a Table&amp;nbsp;&lt;/span&gt;&lt;/h2&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: #f9f9fb; font-family: &amp;quot;menlo&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , &amp;quot;mono&amp;quot; , serif; font-size: 13px; line-height: 1.615;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
You have a table and would like to retrieve all the data from it&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: serif , &amp;quot;dejavuserif&amp;quot;; font-size: 18.8799991607666px; line-height: 31.1519985198975px;&quot;&gt;Use the special “*” character and issue a SELECT against the table:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: serif , &amp;quot;dejavuserif&amp;quot;; font-size: 18.8799991607666px; line-height: 31.1519985198975px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre class=&quot;programlisting&quot; style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; box-sizing: border-box; color: #4a3c31; font-family: &#39;Ubuntu Mono&#39;, monospace; font-size: 15.1040000915527px; line-height: 1.5em !important; margin-bottom: 25px; margin-left: 20px; margin-top: 25px; outline: 0px; overflow-x: auto; overflow-y: hidden; padding: 0px; vertical-align: baseline; white-space: pre-wrap; word-break: keep-all !important; word-wrap: initial !important;&quot;&gt;1 select *
 2   from emp&lt;/pre&gt;
&lt;pre class=&quot;programlisting&quot; style=&quot;border: 0px; box-sizing: border-box; margin-bottom: 25px; margin-left: 20px; margin-top: 25px; outline: 0px; overflow-x: auto; overflow-y: hidden; padding: 0px; vertical-align: baseline; word-break: keep-all;&quot;&gt;&lt;span style=&quot;color: #4a3c31; font-family: ubuntu mono, monospace;&quot;&gt;&lt;span style=&quot;font-size: 15.1040000915527px; line-height: 22.6560001373291px; white-space: pre-wrap;&quot;&gt;Using the charector &#39;*&#39; returns every column for the table specified. Since there is no WHERE condition specified, every row will be returned &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;programlisting&quot; style=&quot;border: 0px; box-sizing: border-box; margin-bottom: 25px; margin-left: 20px; margin-top: 25px; outline: 0px; overflow-x: auto; overflow-y: hidden; padding: 0px; vertical-align: baseline; word-break: keep-all;&quot;&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;Retrieving a Sub set of the rows from the Table &lt;/span&gt;&lt;/h2&gt;
&lt;/pre&gt;
&lt;pre class=&quot;programlisting&quot; style=&quot;border: 0px; box-sizing: border-box; margin-bottom: 25px; margin-left: 20px; margin-top: 25px; outline: 0px; overflow-x: auto; overflow-y: hidden; padding: 0px; vertical-align: baseline; word-break: keep-all;&quot;&gt;Here we have a table and want to see only the rows that satisfy a specific condition 

Use the where clause to specifiy which rows to keep

For eg :- 

Select * 
 From employee 
  Where deptNom = 31

The where clause allows to retrieve only rows that you are interested in. 

Most Vendors out there help you with different operators such as 

= 
&amp;lt;
&amp;gt;
&amp;lt;=
&amp;gt;=
!
&amp;lt;&amp;gt;&lt;/pre&gt;
&lt;pre class=&quot;programlisting&quot; style=&quot;border: 0px; box-sizing: border-box; margin-bottom: 25px; margin-left: 20px; margin-top: 25px; outline: 0px; overflow-x: auto; overflow-y: hidden; padding: 0px; vertical-align: baseline; word-break: keep-all;&quot;&gt;&lt;span style=&quot;color: #4a3c31;&quot;&gt;&lt;span style=&quot;font-size: 15.1040000915527px; line-height: 22.6560001373291px; white-space: pre-wrap;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Find Rows which satisfy multiple condition &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: ubuntu mono, monospace;&quot;&gt;

Here we want to return rows that satisfy multiple conditions

We can use the WHERE clause along with the OR and AND clauses. If you would like to find all the employees in  deparment 10, along iwth any employees who earn a commision, along with employees in department 30 who earn at most Rupee 3000

Select * 
 from employee
  Where deparmentNum = 30
   or commision is not null
   or salary &amp;lt;=3000 and deparmentNum = 30&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;programlisting&quot; style=&quot;border: 0px; box-sizing: border-box; margin-bottom: 25px; margin-left: 20px; margin-top: 25px; outline: 0px; overflow-x: auto; overflow-y: hidden; padding: 0px; vertical-align: baseline; word-break: keep-all;&quot;&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;
Retrieve a subset of columns from a Table &lt;/h3&gt;
&lt;/pre&gt;
&lt;pre class=&quot;programlisting&quot; style=&quot;border: 0px; box-sizing: border-box; margin-bottom: 25px; margin-left: 20px; margin-top: 25px; outline: 0px; overflow-x: auto; overflow-y: hidden; padding: 0px; vertical-align: baseline; word-break: keep-all;&quot;&gt;Here we want to see values for specific columns rather than for all the columns 

Select name, deparmentNum, salary 
 from employee &lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
By specifying the columns in the SELECT clause, you ensure that no extraneous data is returned. This can be especially important when retrieving data across network, as it helps not to waste time inherent in retrieving data that you do not need&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webservices-testing.blogspot.com/feeds/6275955987704127091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webservices-testing.blogspot.com/2016/02/popular-shortcut-queries-art-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/6275955987704127091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/6275955987704127091'/><link rel='alternate' type='text/html' href='http://webservices-testing.blogspot.com/2016/02/popular-shortcut-queries-art-of.html' title='Popular Shortcut queries - Art of Retrieving Records '/><author><name>Sureshkumar</name><uri>http://www.blogger.com/profile/16486205579229653742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2876525463809419491.post-5898112822053368129</id><published>2015-09-14T07:26:00.002-07:00</published><updated>2015-09-14T07:26:38.467-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="=Tidbits-Learn as you grow and grow as you learn"/><category scheme="http://www.blogger.com/atom/ns#" term="Automation testing"/><category scheme="http://www.blogger.com/atom/ns#" term="QTP"/><title type='text'>QTP  - Object Model </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
QTP uses a test object to represent an object in AUT.&lt;br /&gt;
&lt;br /&gt;
Each test object has one or more methods and properties that are used to perform operations and retrieve values for that object.&lt;br /&gt;
&lt;br /&gt;
Each test object has a number of identification properties that describe the object.&lt;br /&gt;
&lt;br /&gt;
Object identification properties can be used in the&lt;br /&gt;
&lt;br /&gt;
A - &amp;nbsp;Object repository description,&lt;br /&gt;
B - &amp;nbsp;Programmatic descriptions,&lt;br /&gt;
C - Checkpoints,&lt;br /&gt;
D - Output values,&lt;br /&gt;
E - Test steps,&lt;br /&gt;
F - Passed as argument values for GetTOProperty and GetROProperty methods.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A runtime object is the actual object in AUT on which methods are performed during the run session.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Object repositories&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
A &lt;b&gt;shared object repository&lt;/b&gt; contains test objects that can be used across multiple actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A&lt;b&gt; local object repository s&lt;/b&gt;tores test objects that can only be used in one specific action and not in any other action.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Basically QTP uses the Test Object Model - TOM ! when you record a step, following are the things which are bound to happen&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;QTP identifies the test Object and the operation performed on that object&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;It stores the test object in a local repository on which the user performed the action&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;It provides a logical name to a test object which makes the object name readable&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Create a test step also&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
How to develop the scripts in QTP - Following steps can be performed to develop scripts in QTP&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
The steps for script development are as follows:&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Analyze Application Under Test.&lt;/li&gt;
&lt;li&gt;Create OR (add a test object manually).&lt;/li&gt;
&lt;li&gt;Add test steps.&lt;/li&gt;
&lt;li&gt;Enhance scripts by adding checkpoints, synchronization points, and so on.&lt;/li&gt;
&lt;li&gt;Create a structure by inserting functions, actions, loops, and control statements.&lt;/li&gt;
&lt;li&gt;Run and debug the test.&lt;/li&gt;
&lt;li&gt;Analyze results and report defects.&lt;/li&gt;
&lt;li&gt;Drag-and-drop object from OR to expert view.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webservices-testing.blogspot.com/feeds/5898112822053368129/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webservices-testing.blogspot.com/2015/09/qtp-object-model.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/5898112822053368129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/5898112822053368129'/><link rel='alternate' type='text/html' href='http://webservices-testing.blogspot.com/2015/09/qtp-object-model.html' title='QTP  - Object Model '/><author><name>Sureshkumar</name><uri>http://www.blogger.com/profile/16486205579229653742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2876525463809419491.post-7466050294883624632</id><published>2015-07-30T13:46:00.003-07:00</published><updated>2015-07-30T13:46:53.334-07:00</updated><title type='text'>SOAPUI Automation - How to write an email report </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Often when you want to create an automation framework it is important that you send an email notification regarding the status of test execution. Many times if you have an test automation tool, By default you will have the features to automatically send the email. however, with the help of Groovyscript we can create our our custom email reports. with Google Graphs as well&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First step is to have an Excel sheet with following tabs, Input and Email. You can have sample fields in the Email Tab&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgw555rlByvwOt77QCSZ9ncQQRz3i_9B8SfwdjkuxUzJQoAS88glW426-IOE1ifQLZvZ6skj0B6WLoo0_RcTlDt4QwvhJaz93qknILX-mxXadorzmo04_rSpl214JzWm7LQZZlDJWQxhwY/s1600/BlogPic1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;198&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgw555rlByvwOt77QCSZ9ncQQRz3i_9B8SfwdjkuxUzJQoAS88glW426-IOE1ifQLZvZ6skj0B6WLoo0_RcTlDt4QwvhJaz93qknILX-mxXadorzmo04_rSpl214JzWm7LQZZlDJWQxhwY/s640/BlogPic1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
We have used the following configuration parameters in the excel sheet&lt;br /&gt;
&lt;br /&gt;
- Enabled -- This field has a boolean value which basically confirms if this email module is enabled or disabled&lt;br /&gt;
&lt;br /&gt;
- Subject -- This is a subject of the email. Now this is a tricky thing, It achieves one neat thing by using excel sheet function for calculating the date . The following is the formula used in the excel sheet to calculate the current date which goes into the email subject itself&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbjqN8C-Q3QS3Uq9fn2_W0AfDWt-OpONP4xFP159-SXLyOrjb6nGjXn1X3XxZfJdpcUXNSSD30DIfOaX4xzKxBg0EjCtAPh2bj7FOxwroB1J1cIfXWT29YN5tbcErer43iePEeNn8L1d0/s1600/BlogPic2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;88&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbjqN8C-Q3QS3Uq9fn2_W0AfDWt-OpONP4xFP159-SXLyOrjb6nGjXn1X3XxZfJdpcUXNSSD30DIfOaX4xzKxBg0EjCtAPh2bj7FOxwroB1J1cIfXWT29YN5tbcErer43iePEeNn8L1d0/s640/BlogPic2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
- From, To , Cc, Bcc - This field is used to have this email appear that it has been sent from a particular person or group , Then the usual To, Cc, Bcc fields&lt;br /&gt;
- Result URL - If you are running this from Jenkins, You can have links to the report in your email. Reports are generated in a folder relative to the position of where the framework is located. If this folders are located in the usercontent folder of Jenkins, This would be accessible through the Jenkins server. Are you wondering how is this possible ? Will publish that in a separate post :) &lt;br /&gt;
&lt;br /&gt;
- Email Content - This is the most important field of all. Basically what we are doing is that , we are tokenizing certain values with special charector # (hash) these values are derived during runtime and real values are substituted in the html which will be handling the email format&lt;br /&gt;
&lt;br /&gt;
Here is the entire HTML content&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;html&gt;&lt;br /&gt;&amp;nbsp;&lt;body&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&amp;nbsp; &lt;table align=&quot;center&quot; border=&quot;1&quot; cellpadding=&quot;5&quot; cellspacing=&quot;1&quot; style=&quot;color: #4c4c4c; font-family: tahoma; font-size: 8pt; font-weight: bold;&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;tbody&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;tr&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;td colspan=&quot;2&quot; style=&quot;font-size: 12pt; text-align: center;&quot;&gt;Sample Email Content Regression Execution Summary&lt;/td&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/tr&gt;
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;tr&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot;&gt;#RESULTGRAPH#&lt;/td&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/tr&gt;
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;tr&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;td colspan=&quot;2&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/td&gt;&lt;/tr&gt;
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;tr&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;td width=&quot;50%&quot;&gt;START TIME&lt;/td&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;td width=&quot;50%&quot;&gt;#STARTTIME#&lt;/td&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/tr&gt;
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;tr&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;td&gt;END TIME&lt;/td&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;td&gt;#ENDTIME#&lt;/td&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/tr&gt;
&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;tr&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;td&gt;DURATION&lt;/td&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;td&gt;#DURATION#&lt;/td&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/tr&gt;
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;tr&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;td colspan=&quot;2&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/td&gt;&lt;/tr&gt;
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;tr&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;td&gt;TOTAL TESTCASES&lt;/td&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;td&gt;#TOTAL#&lt;/td&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/tr&gt;
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;tr style=&quot;color: green;&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;td&gt;PASSED&lt;/td&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;td&gt;#PASS#&lt;/td&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/tr&gt;
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;tr style=&quot;color: green;&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;td&gt;PASS %&lt;/td&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;td&gt;#PASSPERCENT#&lt;/td&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/tr&gt;
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;tr style=&quot;color: red;&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;td&gt;FAILED&lt;/td&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;td&gt;#FAIL#&lt;/td&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/tr&gt;
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;tr style=&quot;color: red;&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;td&gt;FAIL%&lt;/td&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;td&gt;#FAILPERCENT#&lt;/td&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/tr&gt;
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;tr&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;td&gt;ERROR&lt;/td&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;td&gt;#ERROR#&lt;/td&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/tr&gt;
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;tr&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;td&gt;ERROR%&lt;/td&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;td&gt;#ERRORPERCENT#&lt;/td&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/tr&gt;
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;tr&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;td colspan=&quot;2&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/td&gt;&lt;/tr&gt;
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #RESULTFILESLINK#&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;/tbody&gt;&lt;br /&gt;&amp;nbsp; &lt;/table&gt;
&lt;br /&gt;&amp;nbsp; &amp;lt;!--&lt;br /&gt;&amp;nbsp; Host : #CANONICALHOSTNAME#&lt;br /&gt;&amp;nbsp; Host IP : #IPADDRESS#&lt;br /&gt;&amp;nbsp; User : #USERNAME#&lt;br /&gt;&amp;nbsp; &lt;/body&gt;&lt;/html&gt;&lt;br /&gt;&amp;nbsp; &lt;div 12px=&quot;&quot; 6pt=&quot;&quot; align=&quot;&amp;quot;center&amp;quot;&quot; c4c4c=&quot;&quot; font-family:=&quot;&quot; font-size:=&quot;&quot; margin-top:=&quot;&quot; quot=&quot;&quot; tahoma=&quot;&quot;&gt;
&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;b&gt;Disclaimer:&lt;/b&gt; This is a system generated email. Please do not reply to this mail.&lt;br /&gt;For any queries, contact &lt;a href=&quot;https://www.blogger.com/%22mailto:Sureshkumar.Subburaman@gmail.com%22&quot;&gt;SQM Automation Team&lt;/a&gt;.&lt;br /&gt;&amp;nbsp; &lt;/div&gt;
&lt;br /&gt;&amp;nbsp;&lt;/div&gt;
--&amp;gt;&lt;br /&gt;&lt;br /&gt;
-Now that we have seen the various parameters that we would have in the excel sheet, we will look into the coding that is required so that SoapUI, will give us the metrics that we would want to represent in the email &lt;br /&gt;
&lt;br /&gt;
You can create a Groovy script test step in SoapUI, I will let you in on each functions. But before that, make sure that you have java jxl jar file imported and available in your //bin/ext folder&lt;br /&gt;
&lt;br /&gt;
Here is the link to the file - &lt;a href=&quot;http://sourceforge.net/projects/jxl/&quot;&gt;http://sourceforge.net/projects/jxl/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;i&gt;&lt;b&gt;First function - GetEmailConfig&lt;/b&gt;&lt;/i&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
GetEmailConfig. This function is aimed at getting the configuration for sending the email&lt;br /&gt;
&lt;br /&gt;
public GetEmailConfig( datasource,emailconfigSheet)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (datasource[1] !=&quot;:&quot;){&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datasource = context.expand(&#39;${projectDir}&#39;)+&#39;\\&#39;+datasource&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datasourceFile = findFileRecursive(datasource,~/^.*.xls$/).toString()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; jxl.Workbook wb = jxl.Workbook.getWorkbook(new File(datasourceFile))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; jxl.Sheet sh = wb.getSheet(emailConfigSheet)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;def curRow = 0 // Here I am initiating the variable called curRow to value 0&lt;br /&gt;
&lt;br /&gt;
def emailConfig = [:] // An key pair - array value called emailConfig is instantiated&lt;br /&gt;
&lt;br /&gt;
while (1)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; curRow++&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (sh.getRows().toInteger() &amp;gt; curRow) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prop = sh.getCell(0,curRow).getContents();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (prop?.trim()) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; val = sh.getCell(1,curRow).getContents();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; emailConfig[prop]=val&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
else&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {break&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
return emailConfig&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
If you notice we might have used a function called Find file recursive, this is used to find the any file with an .xls extension in the particular folder that we are interested in&lt;br /&gt;
&lt;u&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/u&gt;
&lt;u&gt;&lt;i&gt;&lt;b&gt;Here is Function number 2 - findFileRecursive&amp;nbsp;&lt;/b&gt;&lt;/i&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
Find File recursive will usually loop in the folder to find the files that we interested in finding&lt;br /&gt;
&lt;br /&gt;
public findFileRecursive(directoryName,filePattern) {&lt;br /&gt;
&lt;br /&gt;
def fileFound&lt;br /&gt;
def directory = new File(directoryName)&lt;br /&gt;
if(directory.isDirectory()) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; def findFileNameClosure ={ if ( filePattern.matcher(it.name).find()) {fileFound = it}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; directory.eachFileRecurse(findFileNameClosure)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
return fileFound&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;u&gt;&lt;b&gt;Function 3 - ExpandTokens &amp;nbsp;&lt;/b&gt;&lt;/u&gt;&lt;/i&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
As we have seen earlier, a good number of the parameters in the report email html has been parametrized&lt;br /&gt;
&lt;br /&gt;
Here is how we expand the tokens in the parametrized html input&lt;br /&gt;
&lt;br /&gt;
public string ExpandTokens(Message, ReportParams) {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ReportParams.each {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; k,v --&amp;gt;&lt;br /&gt;
try {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Message = Message.replaceAll(&quot;(?i)#&quot;+k+&quot;#&quot;,v.toString();&lt;br /&gt;
} catch (e) {}&lt;br /&gt;
&lt;br /&gt;
return Message&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
to be continued ........................................................&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://webservices-testing.blogspot.com/feeds/7466050294883624632/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webservices-testing.blogspot.com/2015/07/soapui-automation-how-to-write-email.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/7466050294883624632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/7466050294883624632'/><link rel='alternate' type='text/html' href='http://webservices-testing.blogspot.com/2015/07/soapui-automation-how-to-write-email.html' title='SOAPUI Automation - How to write an email report '/><author><name>Sureshkumar</name><uri>http://www.blogger.com/profile/16486205579229653742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgw555rlByvwOt77QCSZ9ncQQRz3i_9B8SfwdjkuxUzJQoAS88glW426-IOE1ifQLZvZ6skj0B6WLoo0_RcTlDt4QwvhJaz93qknILX-mxXadorzmo04_rSpl214JzWm7LQZZlDJWQxhwY/s72-c/BlogPic1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2876525463809419491.post-1885401638048490617</id><published>2014-07-23T06:43:00.001-07:00</published><updated>2014-07-23T06:43:07.012-07:00</updated><title type='text'>Understanding Web Services 20140722 1458 1</title><content type='html'>&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;344&quot; src=&quot;//www.youtube.com/embed/aFZW07BQfYA&quot; width=&quot;459&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://webservices-testing.blogspot.com/feeds/1885401638048490617/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webservices-testing.blogspot.com/2014/07/understanding-web-services-20140722.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/1885401638048490617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/1885401638048490617'/><link rel='alternate' type='text/html' href='http://webservices-testing.blogspot.com/2014/07/understanding-web-services-20140722.html' title='Understanding Web Services 20140722 1458 1'/><author><name>Sureshkumar</name><uri>http://www.blogger.com/profile/16486205579229653742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2876525463809419491.post-7606048451395717908</id><published>2014-06-23T23:33:00.002-07:00</published><updated>2014-06-23T23:33:49.708-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="capybara"/><category scheme="http://www.blogger.com/atom/ns#" term="cucumber"/><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><category scheme="http://www.blogger.com/atom/ns#" term="selenium"/><title type='text'>Using Capybara, Cucumber, and Selenium WebDriver in Ruby</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;epub__titlepage&quot; style=&quot;background-color: white; font-family: sans-serif; font-size: 15px;&quot;&gt;
&lt;h1 class=&quot;epub__title&quot; style=&quot;clear: both; color: #ff9b2f; margin-bottom: 0.66em; margin-top: 0px;&quot;&gt;
Using Capybara, Cucumber, and Selenium WebDriver in Ruby&lt;/h1&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; clear: both; font-family: sans-serif; font-size: 15px; margin-bottom: 1em; margin-top: 16px; padding: 0px; z-index: 100;&quot;&gt;
Capybara&lt;a class=&quot;epub__indexterm&quot; href=&quot;https://www.blogger.com/null&quot; id=&quot;id1048&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;is an&quot;&gt;&lt;/a&gt;&amp;nbsp;is an acceptance test framework for web applications in Ruby. It integrates with Ruby-based BDD frameworks such as Cucumber and RSpec along with Selenium WebDriver for web testing capabilities. Capybara is widely used in testing Rails applications.&lt;/div&gt;
&lt;div style=&quot;background-color: white; clear: both; font-family: sans-serif; font-size: 15px; margin-bottom: 1em; margin-top: 16px; padding: 0px; z-index: 100;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;see&quot;&gt;&lt;/a&gt;In this recipe, we will see&amp;nbsp;&lt;a class=&quot;epub__indexterm&quot; href=&quot;https://www.blogger.com/null&quot; id=&quot;id1049&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;BMI Calculator&quot;&gt;&lt;/a&gt;how to use Capybara, Cucumber, and Selenium to test BMI Calculator application.&lt;/div&gt;
&lt;div class=&quot;epub__section&quot; style=&quot;background-color: white; font-family: sans-serif; font-size: 15px;&quot; title=&quot;Getting ready&quot;&gt;
&lt;div class=&quot;epub__titlepage&quot;&gt;
&lt;h2 class=&quot;epub__title&quot; style=&quot;clear: both; color: green; font-size: 1.6em; margin: 0px 0px 0.66em; padding: 0px;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;ch11lvl2sec320&quot;&gt;&lt;/a&gt;Getting ready&lt;/h2&gt;
&lt;/div&gt;
&lt;div class=&quot;epub__orderedlist&quot;&gt;
&lt;ol class=&quot;epub__orderedlist epub__arabic&quot; style=&quot;margin-bottom: 1em;&quot;&gt;
&lt;li class=&quot;epub__listitem&quot; style=&quot;list-style-type: decimal; margin-left: 25px;&quot;&gt;You need to install&amp;nbsp;&lt;a class=&quot;epub__indexterm&quot; href=&quot;https://www.blogger.com/null&quot; id=&quot;id1050&quot;&gt;&lt;/a&gt;Capybara Gem by using the following command:&lt;div class=&quot;epub__informalexample&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;pre class=&quot;epub__programlisting&quot; style=&quot;clear: both; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; margin: 0.5em 2em; overflow: auto; padding: 0.5em 2em; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;epub__strong&quot;&gt;&lt;span style=&quot;font-weight: 700;&quot;&gt;gem install capybara&lt;/span&gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;epub__listitem&quot; style=&quot;list-style-type: decimal; margin-left: 25px;&quot;&gt;Additionally, you also need to install Cucumber and RSpec Gem on a fresh Ruby installation, as follows:&lt;div class=&quot;epub__informalexample&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;pre class=&quot;epub__programlisting&quot; style=&quot;clear: both; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; margin: 0.5em 2em; overflow: auto; padding: 0.5em 2em; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;epub__strong&quot;&gt;&lt;span style=&quot;font-weight: 700;&quot;&gt;gem install cucumber&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;epub__strong&quot;&gt;&lt;span style=&quot;font-weight: 700;&quot;&gt;gem install rspec&lt;/span&gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;epub__section&quot; style=&quot;background-color: white; font-family: sans-serif; font-size: 15px;&quot; title=&quot;How to do it...&quot;&gt;
&lt;div class=&quot;epub__titlepage&quot;&gt;
&lt;h2 class=&quot;epub__title&quot; style=&quot;clear: both; color: green; font-size: 1.6em; margin: 0px 0px 0.66em; padding: 0px;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;ch11lvl2sec321&quot;&gt;&lt;/a&gt;How to do it...&lt;/h2&gt;
&lt;/div&gt;
&lt;div style=&quot;clear: both; margin-bottom: 1em; margin-top: 16px; padding: 0px; z-index: 100;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;file for&quot;&gt;&lt;/a&gt;In Capybara, we need to create a features file for the stories under test. These stories are written in Gherkin language with the&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;Given&lt;/code&gt;,&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;When&lt;/code&gt;, and&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;Then&lt;/code&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;following steps&quot;&gt;&lt;/a&gt;&amp;nbsp;structures in Cucumber format. Perform the following steps to create a feature and step definition file with Capybara:&lt;/div&gt;
&lt;div class=&quot;epub__orderedlist&quot;&gt;
&lt;ol class=&quot;epub__orderedlist epub__arabic&quot; style=&quot;margin-bottom: 1em;&quot;&gt;
&lt;li class=&quot;epub__listitem&quot; style=&quot;list-style-type: decimal; margin-left: 25px;&quot;&gt;Create a plain text file named&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;BmiCalculate.feature&lt;/code&gt;, as follows:&lt;div class=&quot;epub__informalexample&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;pre class=&quot;epub__programlisting&quot; style=&quot;clear: both; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; margin: 0.5em 2em; overflow: auto; padding: 0.5em 2em; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Feature: BMI Calculator has a Calculate Function

Scenario: Calculate BMI
 Given I am on BMI Calculator
 When I fill in the following:
 | heightCMS | 181 |
 | weightKg | 80 |
 When I press &quot;Calculate&quot;
 Then I should see following:
 | bmi | 24.4 |
 | bmi_category | Normal |&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;epub__listitem&quot; style=&quot;list-style-type: decimal; margin-left: 25px;&quot;&gt;Next, we need to create a step file for the feature file created earlier. This file maps each step&lt;a class=&quot;epub__indexterm&quot; href=&quot;https://www.blogger.com/null&quot; id=&quot;id1051&quot;&gt;&lt;/a&gt;&amp;nbsp;from the feature file to a Capybara function to work on UI. Create a Ruby file with the following code and name it&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;BmiCalculate.rb&lt;/code&gt;:&lt;div class=&quot;epub__informalexample&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;pre class=&quot;epub__programlisting&quot; style=&quot;clear: both; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; margin: 0.5em 2em; overflow: auto; padding: 0.5em 2em; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Given /^I am on BMI Calculator$/ do
  visit &quot;http://dl.dropbox.com/u/55228056/bmicalculator.html&quot;
end

When /^I fill in the following:$/ do |table|
 table.rows_hash.each {|field, value| fill_in field, :with =&amp;gt; value }
end

When /^I press &quot;([^&quot;]*)&quot;$/ do |button|
  click_button(button)
end

Then /^I should see following:$/ do |table|
 table.rows_hash.each {|field, value| find_field(field).value.should == value }
end&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;epub__listitem&quot; style=&quot;list-style-type: decimal; margin-left: 25px;&quot;&gt;Finally, we need to create a configuration file that provides required support to run the features with Cucumber. Create a new file with the following code and name it&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;env.rb&lt;/code&gt;:&lt;div class=&quot;epub__informalexample&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;pre class=&quot;epub__programlisting&quot; style=&quot;clear: both; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; margin: 0.5em 2em; overflow: auto; padding: 0.5em 2em; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;require &#39;capybara&#39;
require &#39;capybara/cucumber&#39;
require &#39;selenium/webdriver&#39;
 
Capybara.default_driver = :selenium
Capybara.register_driver :selenium do |app|
  Capybara::Selenium::Driver.new(app, :browser =&amp;gt; :firefox)
end&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;epub__section&quot; style=&quot;background-color: white; font-family: sans-serif; font-size: 15px;&quot; title=&quot;How it works...&quot;&gt;
&lt;div class=&quot;epub__titlepage&quot;&gt;
&lt;h2 class=&quot;epub__title&quot; style=&quot;clear: both; color: green; font-size: 1.6em; margin: 0px 0px 0.66em; padding: 0px;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;ch11lvl2sec322&quot;&gt;&lt;/a&gt;How it works...&lt;/h2&gt;
&lt;/div&gt;
&lt;div style=&quot;clear: both; margin-bottom: 1em; margin-top: 16px; padding: 0px; z-index: 100;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;of these&quot;&gt;&lt;/a&gt;We need to copy all of these files together in a directory named&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;features&lt;/code&gt;&amp;nbsp;and use the cucumber command as follows:&lt;/div&gt;
&lt;div class=&quot;epub__informalexample&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;pre class=&quot;epub__programlisting&quot; style=&quot;clear: both; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; margin: 0.5em 2em; overflow: auto; padding: 0.5em 2em; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;epub__strong&quot;&gt;&lt;span style=&quot;font-weight: 700;&quot;&gt;cucumber&lt;/span&gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;clear: both; margin-bottom: 1em; margin-top: 16px; padding: 0px; z-index: 100;&quot;&gt;
Since we are using&amp;nbsp;&lt;a class=&quot;epub__indexterm&quot; href=&quot;https://www.blogger.com/null&quot; id=&quot;id1052&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;plain English&quot;&gt;&lt;/a&gt;Cucumber along with Capybara, it first needs feature files written in plain English. Cucumber allows defining feature files to enter data in web forms using a table-like format.&amp;nbsp;&lt;a class=&quot;epub__indexterm&quot; href=&quot;https://www.blogger.com/null&quot; id=&quot;id1053&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;following example&quot;&gt;&lt;/a&gt;In the following example, we have a step which will populate the&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;height&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;weight&lt;/code&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;BMI Calculator&quot;&gt;&lt;/a&gt;&amp;nbsp;fields in the BMI Calculator application:&lt;/div&gt;
&lt;div class=&quot;epub__informalexample&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;pre class=&quot;epub__programlisting&quot; style=&quot;clear: both; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; margin: 0.5em 2em; overflow: auto; padding: 0.5em 2em; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;When I fill in the following:
 | heightCMS | 181 |
 | weightKg | 80 |&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;clear: both; margin-bottom: 1em; margin-top: 16px; padding: 0px; z-index: 100;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;are then&quot;&gt;&lt;/a&gt;The steps from a feature file are then mapped to Capybara commands using a step file written in Ruby. In the following example, the previously mentioned table format is mapped to a Capybara command,&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;fill_in&lt;/code&gt;:&lt;/div&gt;
&lt;div class=&quot;epub__informalexample&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;pre class=&quot;epub__programlisting&quot; style=&quot;clear: both; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; margin: 0.5em 2em; overflow: auto; padding: 0.5em 2em; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;When /^I fill in the following:$/ do |table|
 table.rows_hash.each {|field, value| fill_in field, :with =&amp;gt; value }
end&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;clear: both; margin-bottom: 1em; margin-top: 16px; padding: 0px; z-index: 100;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;To run&quot;&gt;&lt;/a&gt;To run these features with Cucumber we need a configuration file that will tell Capybara to use Selenium as a driver:&lt;/div&gt;
&lt;div class=&quot;epub__informalexample&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;pre class=&quot;epub__programlisting&quot; style=&quot;clear: both; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; margin: 0.5em 2em; overflow: auto; padding: 0.5em 2em; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;require &#39;capybara&#39;
require &#39;capybara/cucumber&#39;
require &#39;selenium/webdriver&#39;
 
Capybara.default_driver = :selenium
Capybara.register_driver :selenium do |app|
  Capybara::Selenium::Driver.new(app, :browser =&amp;gt; :firefox)
end&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;clear: both; margin-bottom: 1em; margin-top: 16px; padding: 0px; z-index: 100;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;a default&quot;&gt;&lt;/a&gt;When Cucumber runs the features, a default report is generated in the following format:&lt;/div&gt;
&lt;div class=&quot;epub__mediaobject&quot; style=&quot;margin-bottom: 1em; margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;
&lt;img alt=&quot;How it works...&quot; src=&quot;http://my.safaribooksonline.com/getfile?item=YTRkN3BtZS9zYTl0c2lncjU4LzlzMTA0NzE1Yy84LmplL2Nwcmg1Z2Fpc180LzNzMHAxNzIxdGdf&quot; style=&quot;margin-left: auto; margin-right: auto; max-width: 100%;&quot; /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webservices-testing.blogspot.com/feeds/7606048451395717908/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webservices-testing.blogspot.com/2014/06/using-capybara-cucumber-and-selenium.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/7606048451395717908'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/7606048451395717908'/><link rel='alternate' type='text/html' href='http://webservices-testing.blogspot.com/2014/06/using-capybara-cucumber-and-selenium.html' title='Using Capybara, Cucumber, and Selenium WebDriver in Ruby'/><author><name>Sureshkumar</name><uri>http://www.blogger.com/profile/16486205579229653742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2876525463809419491.post-2470553813584233640</id><published>2014-06-23T21:38:00.001-07:00</published><updated>2014-06-23T21:38:15.843-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="BDD"/><category scheme="http://www.blogger.com/atom/ns#" term="jbehave"/><category scheme="http://www.blogger.com/atom/ns#" term="selenium"/><title type='text'>BDD Concepts </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;background-color: #ffcd13; color: #555555; font-family: &#39;Lucida Grande&#39;, Arial, Helvetica, Verdana, sans-serif; margin-bottom: 10px; opacity: 0.75; padding: 5px 10px;&quot;&gt;
A definition of BDD&lt;/h2&gt;
&lt;span class=&quot;followup&quot; style=&quot;background-color: #99ff99; border: 2px solid rgb(57, 145, 43); display: table; font-family: &#39;Lucida Grande&#39;, Arial, Helvetica, Verdana, sans-serif; font-size: 13px; margin: 10px; overflow: visible; padding: 4px; visibility: visible;&quot;&gt;Behaviour-Driven Development (BDD) is about implementing an application by describing it from the point of view of its stakeholders&lt;/span&gt;&lt;br /&gt;
&lt;h2 style=&quot;background-color: #ffcd13; color: #555555; font-family: &#39;Lucida Grande&#39;, Arial, Helvetica, Verdana, sans-serif; margin-bottom: 10px; opacity: 0.75; padding: 5px 10px;&quot;&gt;
Stories, scenarios and steps&lt;/h2&gt;
&lt;div style=&quot;color: #555555; font-family: &#39;Lucida Grande&#39;, Arial, Helvetica, Verdana, sans-serif; font-size: 13px;&quot;&gt;
BDD revolves around the concept of a&amp;nbsp;&lt;b style=&quot;color: #333333;&quot;&gt;Story&lt;/b&gt;, which represents an&amp;nbsp;&lt;b style=&quot;color: #333333;&quot;&gt;automatically executable increment of business functionality&lt;/b&gt;. At its core a Story comprises of one or more&lt;b style=&quot;color: #333333;&quot;&gt;Scenarios&lt;/b&gt;, each of which represents a concrete example of the behaviour of the system. Each Scenario comprises of a number of executable steps. These&amp;nbsp;&lt;b style=&quot;color: #333333;&quot;&gt;Steps&lt;/b&gt;&amp;nbsp;can be of three types:&lt;/div&gt;
&lt;div style=&quot;color: #555555; font-family: &#39;Lucida Grande&#39;, Arial, Helvetica, Verdana, sans-serif; font-size: 13px;&quot;&gt;
&lt;div class=&quot;syntaxhighlighter nogutter  bdd&quot; id=&quot;highlighter_809392&quot; style=&quot;background-color: rgb(27, 36, 38) !important; font-size: 1em !important; margin: 1em 0px !important; overflow: auto !important; position: relative !important; width: 1099px;&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 1099px;&quot;&gt;&lt;tbody style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;code&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 1099px;&quot;&gt;&lt;div class=&quot;container&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;bdd plain&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(185, 189, 182) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;A story is a collection of scenarios&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;bdd keyword&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(91, 161, 207) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;Narrative&lt;/code&gt;&lt;code class=&quot;bdd plain&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(185, 189, 182) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;:&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;bdd plain&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(185, 189, 182) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;In order to communicate effectively to the business some functionality&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;bdd plain&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(185, 189, 182) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;As a development team&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;bdd plain&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(185, 189, 182) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;I want to use Behaviour-Driven Development&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number7 index6 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;bdd spaces&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;line number8 index7 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;bdd keyword&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(91, 161, 207) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;Scenario&lt;/code&gt;&lt;code class=&quot;bdd plain&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(185, 189, 182) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;:&amp;nbsp; A scenario is a collection of executable steps of different type&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number9 index8 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;line number10 index9 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;bdd keyword&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(91, 161, 207) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;Given&lt;/code&gt; &lt;code class=&quot;bdd plain&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(185, 189, 182) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;step represents a precondition to an event&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number11 index10 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;bdd keyword&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(91, 161, 207) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;When&lt;/code&gt; &lt;code class=&quot;bdd plain&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(185, 189, 182) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;step represents the occurrence of the event&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number12 index11 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;bdd keyword&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(91, 161, 207) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;Then&lt;/code&gt; &lt;code class=&quot;bdd plain&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(185, 189, 182) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;step represents the outcome of the event&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number13 index12 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;line number14 index13 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;bdd keyword&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(91, 161, 207) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;Scenario&lt;/code&gt;&lt;code class=&quot;bdd plain&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(185, 189, 182) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;:&amp;nbsp; Another scenario exploring different combination of events&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number15 index14 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;line number16 index15 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;bdd keyword&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(91, 161, 207) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;Given&lt;/code&gt; &lt;code class=&quot;bdd plain&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(185, 189, 182) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;a precondition&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number17 index16 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;bdd keyword&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(91, 161, 207) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;When&lt;/code&gt; &lt;code class=&quot;bdd plain&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(185, 189, 182) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;a negative event occurs&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number18 index17 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;bdd keyword&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(91, 161, 207) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;Then&lt;/code&gt; &lt;code class=&quot;bdd plain&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(185, 189, 182) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;a the outcome should be captured&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #555555; font-family: &#39;Lucida Grande&#39;, Arial, Helvetica, Verdana, sans-serif; font-size: 13px;&quot;&gt;
&lt;b style=&quot;color: #333333;&quot;&gt;Given&lt;/b&gt;,&amp;nbsp;&lt;b style=&quot;color: #333333;&quot;&gt;When&lt;/b&gt;&amp;nbsp;and&amp;nbsp;&lt;b style=&quot;color: #333333;&quot;&gt;Then&lt;/b&gt;&amp;nbsp;are also called&amp;nbsp;&lt;b style=&quot;color: #333333;&quot;&gt;BDD Keywords&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: #555555; font-family: &#39;Lucida Grande&#39;, Arial, Helvetica, Verdana, sans-serif; font-size: 13px;&quot;&gt;
A scenario can contain any number of steps, and steps of the same type can follow each other:&lt;/div&gt;
&lt;div style=&quot;color: #555555; font-family: &#39;Lucida Grande&#39;, Arial, Helvetica, Verdana, sans-serif; font-size: 13px;&quot;&gt;
&lt;div class=&quot;syntaxhighlighter nogutter  bdd&quot; id=&quot;highlighter_993693&quot; style=&quot;background-color: rgb(27, 36, 38) !important; font-size: 1em !important; margin: 1em 0px !important; overflow: auto !important; position: relative !important; width: 1099px;&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 1099px;&quot;&gt;&lt;tbody style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;code&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 1099px;&quot;&gt;&lt;div class=&quot;container&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;bdd keyword&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(91, 161, 207) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;Given&lt;/code&gt; &lt;code class=&quot;bdd plain&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(185, 189, 182) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;a wizard named Harry&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;bdd keyword&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(91, 161, 207) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;Given&lt;/code&gt; &lt;code class=&quot;bdd plain&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(185, 189, 182) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;a wizard named Hermione&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;bdd keyword&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(91, 161, 207) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;When&lt;/code&gt; &lt;code class=&quot;bdd plain&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(185, 189, 182) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;the wizards meet&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;bdd keyword&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(91, 161, 207) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;Then&lt;/code&gt; &lt;code class=&quot;bdd plain&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(185, 189, 182) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;a spark should occur&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #555555; font-family: &#39;Lucida Grande&#39;, Arial, Helvetica, Verdana, sans-serif; font-size: 13px;&quot;&gt;
This scenario signals that there are two preconditions to the event of the wizards meeting. As such, it may be expressed in an equivalent way:&lt;/div&gt;
&lt;div style=&quot;color: #555555; font-family: &#39;Lucida Grande&#39;, Arial, Helvetica, Verdana, sans-serif; font-size: 13px;&quot;&gt;
&lt;div class=&quot;syntaxhighlighter nogutter  bdd&quot; id=&quot;highlighter_792596&quot; style=&quot;background-color: rgb(27, 36, 38) !important; font-size: 1em !important; margin: 1em 0px !important; overflow: auto !important; position: relative !important; width: 1099px;&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 1099px;&quot;&gt;&lt;tbody style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;code&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 1099px;&quot;&gt;&lt;div class=&quot;container&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;bdd keyword&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(91, 161, 207) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;Given&lt;/code&gt; &lt;code class=&quot;bdd plain&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(185, 189, 182) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;a wizard named Harry&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;bdd keyword&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(91, 161, 207) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;And&lt;/code&gt; &lt;code class=&quot;bdd plain&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(185, 189, 182) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;a wizard named Hermione&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;bdd keyword&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(91, 161, 207) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;When&lt;/code&gt; &lt;code class=&quot;bdd plain&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(185, 189, 182) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;the wizards meet&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;bdd keyword&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(91, 161, 207) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;Then&lt;/code&gt; &lt;code class=&quot;bdd plain&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(185, 189, 182) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;a spark should occur&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #555555; font-family: &#39;Lucida Grande&#39;, Arial, Helvetica, Verdana, sans-serif; font-size: 13px;&quot;&gt;
We can then introduce another keyword:&lt;/div&gt;
&lt;div style=&quot;color: #555555; font-family: &#39;Lucida Grande&#39;, Arial, Helvetica, Verdana, sans-serif; font-size: 13px;&quot;&gt;
&lt;div class=&quot;syntaxhighlighter nogutter  bdd&quot; id=&quot;highlighter_224434&quot; style=&quot;background-color: rgb(27, 36, 38) !important; font-size: 1em !important; margin: 1em 0px !important; overflow: auto !important; position: relative !important; width: 1099px;&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 1099px;&quot;&gt;&lt;tbody style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;code&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 1099px;&quot;&gt;&lt;div class=&quot;container&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;bdd plain&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(185, 189, 182) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;A step starting with &lt;/code&gt;&lt;code class=&quot;bdd keyword&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(91, 161, 207) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;And&lt;/code&gt; &lt;code class=&quot;bdd plain&quot; style=&quot;background: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(185, 189, 182) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;assumes the same meaning of the previous step&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h2 style=&quot;background-color: #ffcd13; color: #555555; font-family: &#39;Lucida Grande&#39;, Arial, Helvetica, Verdana, sans-serif; margin-bottom: 10px; opacity: 0.75; padding: 5px 10px;&quot;&gt;
Communication is the key&lt;/h2&gt;
&lt;div style=&quot;color: #555555; font-family: &#39;Lucida Grande&#39;, Arial, Helvetica, Verdana, sans-serif; font-size: 13px;&quot;&gt;
aims to provide an&amp;nbsp;&lt;b style=&quot;color: #333333;&quot;&gt;automatable&lt;/b&gt;&amp;nbsp;description of the behaviour of the system, from the point of view of the stakeholders. As such, it is essential that the language used in the description reflects the language used by the business users. The language and its grammar represents the shared understanding of the behaviour between the business users and the development team. And as any language it evolves with the evolution of this shared understanding. BDD provides the grammar, but the language is agreed between the business and the team.&lt;/div&gt;
&lt;div style=&quot;color: #555555; font-family: &#39;Lucida Grande&#39;, Arial, Helvetica, Verdana, sans-serif; font-size: 13px;&quot;&gt;
The emphasis should be placed on concepts relevant to the business, shielding away issues of technical implementation. A good rule of thumb is that if details of the technical implementation can be changed without affecting the overall behaviour, as visible by the business user, then it should not appear in the scenario.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webservices-testing.blogspot.com/feeds/2470553813584233640/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webservices-testing.blogspot.com/2014/06/bdd-concepts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/2470553813584233640'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/2470553813584233640'/><link rel='alternate' type='text/html' href='http://webservices-testing.blogspot.com/2014/06/bdd-concepts.html' title='BDD Concepts '/><author><name>Sureshkumar</name><uri>http://www.blogger.com/profile/16486205579229653742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2876525463809419491.post-1277226143471801284</id><published>2014-06-23T21:35:00.001-07:00</published><updated>2014-06-23T21:35:22.365-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="automated testing"/><category scheme="http://www.blogger.com/atom/ns#" term="jbehave"/><category scheme="http://www.blogger.com/atom/ns#" term="selenium"/><title type='text'>Using J Behave with Selenium Web driver </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
J Behave is an extension of the JUnit testing framework. It uses many principles of JUnit in testing Java classes and deriving report. But by default it is used for testing Unit testing of Java classes. Can we use it to test User interface or GUI of an application. With conjunction with Selenium web driver you can do it&lt;br /&gt;
&lt;br /&gt;
Here is how&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; clear: both; font-family: sans-serif; font-size: 15px; margin-bottom: 1em; margin-top: 16px; padding: 0px; z-index: 100;&quot;&gt;
&lt;span class=&quot;epub__strong&quot;&gt;&lt;span style=&quot;font-weight: 700;&quot;&gt;&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;JBehave&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;a class=&quot;epub__indexterm&quot; href=&quot;https://www.blogger.com/null&quot; id=&quot;id1031&quot;&gt;&lt;/a&gt;is another famous framework for BDD/ATDD in Java. Similar to Cucumber-JVM,&amp;nbsp;&lt;a class=&quot;epub__indexterm&quot; href=&quot;https://www.blogger.com/null&quot; id=&quot;id1032&quot;&gt;&lt;/a&gt;&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;JBehave&lt;/span&gt;&amp;nbsp;allows the writing of features as stories in the Gherkin language. Steps from the scenarios are later implemented in a step definition file.&lt;/div&gt;
&lt;div style=&quot;background-color: white; clear: both; font-family: sans-serif; font-size: 15px; margin-bottom: 1em; margin-top: 16px; padding: 0px; z-index: 100;&quot;&gt;
In this recipe, we will explore&lt;a class=&quot;epub__indexterm&quot; href=&quot;https://www.blogger.com/null&quot; id=&quot;id1033&quot;&gt;&lt;/a&gt;&amp;nbsp;using&amp;nbsp;&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;JBehave&lt;/span&gt;&amp;nbsp;and Selenium WebDriver together for creating tests on a BMI calculator application.&lt;/div&gt;
&lt;div style=&quot;background-color: white; clear: both; font-family: sans-serif; font-size: 15px; margin-bottom: 1em; margin-top: 16px; padding: 0px; z-index: 100;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;epub__titlepage&quot; style=&quot;background-color: white; font-family: sans-serif; font-size: 15px;&quot;&gt;
&lt;h2 class=&quot;epub__title&quot; style=&quot;clear: both; color: green; font-size: 1.6em; margin: 0px 0px 0.66em; padding: 0px;&quot;&gt;
Getting ready&lt;/h2&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; clear: both; font-family: sans-serif; font-size: 15px; margin-bottom: 1em; margin-top: 16px; padding: 0px; z-index: 100;&quot;&gt;
You need to download and set up the&amp;nbsp;&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;JBehave&lt;/span&gt;&amp;nbsp;Web extension,&lt;a class=&quot;epub__indexterm&quot; href=&quot;https://www.blogger.com/null&quot; id=&quot;id1034&quot;&gt;&lt;/a&gt;&amp;nbsp;which is based on&amp;nbsp;&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;JBehave&lt;/span&gt;&amp;nbsp;Core. It provides support for web-related access or functionality, including Selenium/WebDriver support.&lt;/div&gt;
&lt;div style=&quot;background-color: white; clear: both; font-family: sans-serif; font-size: 15px; margin-bottom: 1em; margin-top: 16px; padding: 0px; z-index: 100;&quot;&gt;
The latest release of&amp;nbsp;&lt;a class=&quot;epub__indexterm&quot; href=&quot;https://www.blogger.com/null&quot; id=&quot;id1035&quot;&gt;&lt;/a&gt;&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;JBehave&lt;/span&gt;&amp;nbsp;Web Distribution&lt;a class=&quot;epub__indexterm&quot; href=&quot;https://www.blogger.com/null&quot; id=&quot;id1036&quot;&gt;&lt;/a&gt;&amp;nbsp;is available in&amp;nbsp;&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;JBehave&#39;s&lt;/span&gt;&amp;nbsp;repository at Codehaus Nexus. You need to download the latest&amp;nbsp;&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;jbehave&lt;/span&gt;-web-distribution from&amp;nbsp;&lt;a class=&quot;epub__ulink&quot; href=&quot;https://nexus.codehaus.org/content/repositories/releases/org/jbehave/web/jbehave-web-distribution/&quot; style=&quot;color: #00467f; outline: none; text-decoration: none;&quot;&gt;https://nexus.codehaus.org/content/repositories/releases/org/&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;jbehave/web/jbehave&lt;/span&gt;-web-distribution/&lt;/a&gt;.&lt;/div&gt;
&lt;div style=&quot;background-color: white; clear: both; font-family: sans-serif; font-size: 15px; margin-bottom: 1em; margin-top: 16px; padding: 0px; z-index: 100;&quot;&gt;
Download the complete zip archive from the previously mentioned location. For this recipe,&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;jbehave&lt;/span&gt;-web-distribution-3.5-bin.zip&lt;/code&gt;&amp;nbsp;is used.&lt;/div&gt;
&lt;div style=&quot;background-color: white; clear: both; font-family: sans-serif; font-size: 15px; margin-bottom: 1em; margin-top: 16px; padding: 0px; z-index: 100;&quot;&gt;
After downloading the&amp;nbsp;&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;JBehave&lt;/span&gt;&amp;nbsp;Web, unzip the contents of this file on your machine. Locate the&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;lib&lt;/code&gt;&amp;nbsp;subdirectory; this directory contains all JAR files needed to create and run the following examples.&lt;/div&gt;
&lt;div style=&quot;background-color: white; clear: both; font-family: sans-serif; font-size: 15px; margin-bottom: 1em; margin-top: 16px; padding: 0px; z-index: 100;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;epub__section&quot; style=&quot;background-color: white; font-family: sans-serif; font-size: 15px;&quot; title=&quot;How to do it...&quot;&gt;
&lt;div class=&quot;epub__titlepage&quot;&gt;
&lt;h2 class=&quot;epub__title&quot; style=&quot;clear: both; color: green; font-size: 1.6em; margin: 0px 0px 0.66em; padding: 0px;&quot;&gt;
How to do it...&lt;/h2&gt;
&lt;/div&gt;
&lt;div class=&quot;epub__orderedlist&quot;&gt;
&lt;ol class=&quot;epub__orderedlist epub__arabic&quot; style=&quot;margin-bottom: 1em;&quot;&gt;
&lt;li class=&quot;epub__listitem&quot; style=&quot;list-style-type: decimal; margin-left: 25px;&quot;&gt;Create a new Java project and add all the JAR files to build a path from the&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;lib&lt;/code&gt;&amp;nbsp;subdirectory from the&amp;nbsp;&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;JBehave&lt;/span&gt;&amp;nbsp;Web directory extracted earlier. This will add&amp;nbsp;&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;JBehave&lt;/span&gt;&amp;nbsp;and Selenium support to the project. Also, add JUnit Library to this project.&lt;/li&gt;
&lt;li class=&quot;epub__listitem&quot; style=&quot;list-style-type: decimal; margin-left: 25px;&quot;&gt;We now need to prepare a story file, which will contain acceptance criteria for a user story written in the Given, When and Then structure. We will create a simple story file for the BMI Calculator Application; let&#39;s call this&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;Bmi.story&lt;/code&gt;. Create this using the with following steps, in the source folder of your project.&lt;div class=&quot;epub__informalexample&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;pre class=&quot;epub__programlisting&quot; style=&quot;clear: both; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; margin: 0.5em 2em; overflow: auto; padding: 0.5em 2em; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Narrative: I should be able to Calculate my Body Mass Index

Scenario: I should see my BMI after entering Height and Weight

When I open BMI Calculator Home Page
When I enter height as &#39;181&#39;
When I enter weight as &#39;80&#39;
When I click on the Calculate button 
Then I should see bmi as &#39;24.4&#39; and category as &#39;Normal&#39;&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;epub__listitem&quot; style=&quot;list-style-type: decimal; margin-left: 25px;&quot;&gt;Next, we need to&amp;nbsp;&lt;a class=&quot;epub__indexterm&quot; href=&quot;https://www.blogger.com/null&quot; id=&quot;id1037&quot;&gt;&lt;/a&gt;map&lt;a class=&quot;epub__indexterm&quot; href=&quot;https://www.blogger.com/null&quot; id=&quot;id1038&quot;&gt;&lt;/a&gt;&amp;nbsp;steps from this story and create a step definition class. We will create a plain Java class that will extend the&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;StoryBase&lt;/code&gt;&amp;nbsp;class, which we will create shortly. For each step we will create a method with the&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;@When&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;@Then&lt;/code&gt;&amp;nbsp;annotations from the&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;JBehave&lt;/span&gt;&amp;nbsp;framework:&lt;div class=&quot;epub__informalexample&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;pre class=&quot;epub__programlisting&quot; style=&quot;clear: both; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; margin: 0.5em 2em; overflow: auto; padding: 0.5em 2em; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;import junit.framework.Assert;
import org.&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;jbehave&lt;/span&gt;.core.annotations.Then;
import org.&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;jbehave&lt;/span&gt;.core.annotations.When;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;

public class Bmi extends StoryBase {
 
 @When(&quot;I open BMI Calculator Home Page&quot;)
 public void IOpen()
 {    
  driver.get(&quot;http://dl.dropbox.com/u/55228056/bmicalculator.html&quot;);
 }
 
 @When(&quot;I enter height as &#39;$height&#39;&quot;)
 public void IEnterHeight(String height) 
 {         
  WebElement heightCMS = driver.findElement(By.id(&quot;heightCMS&quot;));
  heightCMS.sendKeys(height);
 }
 
 @When(&quot;I enter weight as &#39;$weight&#39;&quot;)
 public void IEnterWeight(String weight) 
 {         
  WebElement weightKg = driver.findElement(By.id(&quot;weightKg&quot;));
  weightKg.sendKeys(weight);
 }
 
 @When(&quot;I click on the Calculate button&quot;)
 public void IClickOnTheButton() 
 {         
  WebElement button = driver.findElement(By.id(&quot;Calculate&quot;));
  button.click();
 }
 
 @Then(&quot;I should see bmi as &#39;$bmi_exp&#39; and category as &#39;$bmi_category_exp&#39;&quot;) 
 public void IShouldBmiAndCategory(String bmi_exp, String bmi_category_exp)
 {
  WebElement bmi = driver.findElement(By.id(&quot;bmi&quot;));
  Assert.assertEquals(bmi_exp, bmi.getAttribute(&quot;value&quot;));
  
  WebElement bmi_category = driver.findElement(By.id(&quot;bmi_category&quot;));
  Assert.assertEquals(bmi_category_exp, bmi_category.getAttribute(&quot;value&quot;));
  driver.quit();
 
 }
}&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;epub__listitem&quot; style=&quot;list-style-type: decimal; margin-left: 25px;&quot;&gt;Finally, we will&amp;nbsp;&lt;a class=&quot;epub__indexterm&quot; href=&quot;https://www.blogger.com/null&quot; id=&quot;id1039&quot;&gt;&lt;/a&gt;create a&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;Configuration&lt;/code&gt;&amp;nbsp;class that will be used by the step definition classes.&amp;nbsp;&lt;a class=&quot;epub__indexterm&quot; href=&quot;https://www.blogger.com/null&quot; id=&quot;id1040&quot;&gt;&lt;/a&gt;In this class, we set up necessary configurations to execute the stories using&amp;nbsp;&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;JBehave&lt;/span&gt;&amp;nbsp;and Selenium. We will name this class&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;StoryBase&lt;/code&gt;&amp;nbsp;and this will be extended from the&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;JUnitStory&lt;/code&gt;&amp;nbsp;class in the&amp;nbsp;&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;JBehave&lt;/span&gt;&amp;nbsp;framework:&lt;div class=&quot;epub__informalexample&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;pre class=&quot;epub__programlisting&quot; style=&quot;clear: both; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; margin: 0.5em 2em; overflow: auto; padding: 0.5em 2em; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;import java.util.List;

import org.&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;jbehave&lt;/span&gt;.core.configuration.Configuration;
import org.&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;jbehave&lt;/span&gt;.core.configuration.MostUsefulConfiguration;
import org.&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;jbehave&lt;/span&gt;.core.io.LoadFromClasspath;
import org.&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;jbehave&lt;/span&gt;.core.junit.JUnitStory;
import org.&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;jbehave&lt;/span&gt;.core.reporters.Format;
import org.&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;jbehave&lt;/span&gt;.core.reporters.StoryReporterBuilder;
import org.&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;jbehave&lt;/span&gt;.core.steps.InstanceStepsFactory;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public abstract class StoryBase extends JUnitStory { 
 
 protected final static WebDriver driver = new FirefoxDriver();
 
 @Override    
 public Configuration configuration() {
  return new MostUsefulConfiguration()
  .useStoryLoader(new LoadFromClasspath(this.getClass().getClassLoader()))
  .useStoryReporterBuilder(
     new StoryReporterBuilder()
     .withDefaultFormats()
     .withFormats(Format.HTML, Format.CONSOLE)
     .withRelativeDirectory(&quot;&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;jbehave&lt;/span&gt;-report&quot;)
     );
  }
 
 @Override    
 public List candidateSteps() {
  return new InstanceStepsFactory(configuration(), this).createCandidateSteps(); 
  
 }
}&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;epub__section&quot; style=&quot;background-color: white; font-family: sans-serif; font-size: 15px;&quot; title=&quot;How it works...&quot;&gt;
&lt;div class=&quot;epub__titlepage&quot;&gt;
&lt;h2 class=&quot;epub__title&quot; style=&quot;clear: both; color: green; font-size: 1.6em; margin: 0px 0px 0.66em; padding: 0px;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;ch11lvl2sec318&quot;&gt;&lt;/a&gt;How it works...&lt;/h2&gt;
&lt;/div&gt;
&lt;div style=&quot;clear: both; margin-bottom: 1em; margin-top: 16px; padding: 0px; z-index: 100;&quot;&gt;
For creating tests in&amp;nbsp;&lt;a class=&quot;epub__indexterm&quot; href=&quot;https://www.blogger.com/null&quot; id=&quot;id1041&quot;&gt;&lt;/a&gt;&lt;a class=&quot;epub__indexterm&quot; href=&quot;https://www.blogger.com/null&quot; id=&quot;id1042&quot;&gt;&lt;/a&gt;&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;JBehave&lt;/span&gt;, we will need to first implement stories as the&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;.story&lt;/code&gt;&amp;nbsp;file using the&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;Given&lt;/code&gt;,&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;When&lt;/code&gt;, and&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;Then&lt;/code&gt;&amp;nbsp;structures. We need to add the&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;Narrative&lt;/code&gt;&amp;nbsp;section to describe the purpose of the story and the&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;Scenario&lt;/code&gt;&amp;nbsp;section, which contains the actual steps. We also pass the required test data from these steps:&lt;/div&gt;
&lt;div class=&quot;epub__informalexample&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;pre class=&quot;epub__programlisting&quot; style=&quot;clear: both; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; margin: 0.5em 2em; overflow: auto; padding: 0.5em 2em; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Narrative: I should be able to Calculate my Body Mass Index

Scenario: I should see my BMI after entering Height and Weight

When I open BMI Calculator Home Page
When I enter height as &#39;181&#39;
...
Then I should see bmi as &#39;24.4&#39; and category as &#39;Normal&#39;&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;clear: both; margin-bottom: 1em; margin-top: 16px; padding: 0px; z-index: 100;&quot;&gt;
Next, we map these steps using a step definition class. This class extends the&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;StoryBase&lt;/code&gt;&amp;nbsp;class, which will provide the necessary support to run the story in the&amp;nbsp;&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;JBehave&lt;/span&gt;&amp;nbsp;framework, including an instance of WebDriver:&lt;/div&gt;
&lt;div class=&quot;epub__informalexample&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;pre class=&quot;epub__programlisting&quot; style=&quot;clear: both; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; margin: 0.5em 2em; overflow: auto; padding: 0.5em 2em; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;public class Bmi extends StoryBase &lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;clear: both; margin-bottom: 1em; margin-top: 16px; padding: 0px; z-index: 100;&quot;&gt;
For each step, we use an annotation and implement a method to run that step. For example, for the step&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;When I enter height as &#39;181&#39;&lt;/code&gt;&amp;nbsp;we have defined the&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;IEnterHeight()&lt;/code&gt;&amp;nbsp;method&lt;a class=&quot;epub__indexterm&quot; href=&quot;https://www.blogger.com/null&quot; id=&quot;id1043&quot;&gt;&lt;/a&gt;&amp;nbsp;as follows:&lt;/div&gt;
&lt;div class=&quot;epub__informalexample&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;pre class=&quot;epub__programlisting&quot; style=&quot;clear: both; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; margin: 0.5em 2em; overflow: auto; padding: 0.5em 2em; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;@When(&quot;I enter height as &#39;$height&#39;&quot;)
 public void IEnterHeight(String height) 
 {         
  WebElement heightCMS = driver.findElement(By.id(&quot;heightCMS&quot;));
  heightCMS.sendKeys(height);
 }&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;clear: both; margin-bottom: 1em; margin-top: 16px; padding: 0px; z-index: 100;&quot;&gt;
We used the&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;@When&lt;/code&gt;&amp;nbsp;annotation here and also used&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;&#39;$height&#39;&lt;/code&gt;&amp;nbsp;for extracting the value mentioned in the&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;.story&lt;/code&gt;&amp;nbsp;file&amp;nbsp;&lt;a class=&quot;epub__indexterm&quot; href=&quot;https://www.blogger.com/null&quot; id=&quot;id1044&quot;&gt;&lt;/a&gt;and passed this value to the&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;IEnterHeight()&lt;/code&gt;&amp;nbsp;method&lt;a class=&quot;epub__indexterm&quot; href=&quot;https://www.blogger.com/null&quot; id=&quot;id1045&quot;&gt;&lt;/a&gt;. In this method, we created an instance of WebElement for the&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;height&lt;/code&gt;&amp;nbsp;textbox and called its&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;sendKeys()&lt;/code&gt;&amp;nbsp;method, passing the value.&lt;/div&gt;
&lt;div style=&quot;clear: both; margin-bottom: 1em; margin-top: 16px; padding: 0px; z-index: 100;&quot;&gt;
Along with a story file and a step definition class, a&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;Configuration&lt;/code&gt;&amp;nbsp;class needs to be created, which will be based on the&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;JUnitStory&lt;/code&gt;&amp;nbsp;class&lt;a class=&quot;epub__indexterm&quot; href=&quot;https://www.blogger.com/null&quot; id=&quot;id1046&quot;&gt;&lt;/a&gt;from the&amp;nbsp;&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;JBehave&lt;/span&gt;&amp;nbsp;framework:&lt;/div&gt;
&lt;div class=&quot;epub__informalexample&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;pre class=&quot;epub__programlisting&quot; style=&quot;clear: both; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; margin: 0.5em 2em; overflow: auto; padding: 0.5em 2em; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;public abstract class StoryBase extends JUnitStory&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;clear: both; margin-bottom: 1em; margin-top: 16px; padding: 0px; z-index: 100;&quot;&gt;
The&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;StoryBase&lt;/code&gt;&amp;nbsp;class&lt;a class=&quot;epub__indexterm&quot; href=&quot;https://www.blogger.com/null&quot; id=&quot;id1047&quot;&gt;&lt;/a&gt;&amp;nbsp;provides an instance of WebDriver to all the story or step definition classes:&lt;/div&gt;
&lt;div class=&quot;epub__informalexample&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;pre class=&quot;epub__programlisting&quot; style=&quot;clear: both; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; margin: 0.5em 2em; overflow: auto; padding: 0.5em 2em; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;protected final static WebDriver driver = new FirefoxDriver();&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;clear: both; margin-bottom: 1em; margin-top: 16px; padding: 0px; z-index: 100;&quot;&gt;
It also provides other configuration information, like the location of the story files and report settings, and format the&amp;nbsp;&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;JBehave&lt;/span&gt;&amp;nbsp;framework. In this case, the&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;.story&lt;/code&gt;&amp;nbsp;files will be located using the path of the story or step definition classes:&lt;/div&gt;
&lt;div class=&quot;epub__informalexample&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;pre class=&quot;epub__programlisting&quot; style=&quot;clear: both; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; margin: 0.5em 2em; overflow: auto; padding: 0.5em 2em; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;@Override    
public Configuration configuration() {
 return new MostUsefulConfiguration()
 .useStoryLoader(new LoadFromClasspath(this.getClass().getClassLoader()))
 .useStoryReporterBuilder(
    new StoryReporterBuilder()
    .withDefaultFormats()
    .withFormats(Format.HTML, Format.CONSOLE)
    .withRelativeDirectory(&quot;&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;jbehave&lt;/span&gt;-report&quot;)
   );
}&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;clear: both; margin-bottom: 1em; margin-top: 16px; padding: 0px; z-index: 100;&quot;&gt;
We used the&amp;nbsp;&lt;code class=&quot;epub__literal&quot; style=&quot;color: blue;&quot;&gt;JUnitStory&lt;/code&gt;&amp;nbsp;class so that we can execute these tests with JUnit Test Runner. At the end of the execution,&amp;nbsp;&lt;span class=&quot;SearchHighlight&quot; style=&quot;background-color: #ffe298;&quot;&gt;JBehave&lt;/span&gt;&amp;nbsp;generates an HTML report with a detailed status of the stories executed, stories passed, or failed.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webservices-testing.blogspot.com/feeds/1277226143471801284/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webservices-testing.blogspot.com/2014/06/using-j-behave-with-selenium-web-driver.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/1277226143471801284'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/1277226143471801284'/><link rel='alternate' type='text/html' href='http://webservices-testing.blogspot.com/2014/06/using-j-behave-with-selenium-web-driver.html' title='Using J Behave with Selenium Web driver '/><author><name>Sureshkumar</name><uri>http://www.blogger.com/profile/16486205579229653742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2876525463809419491.post-9109242653198000128</id><published>2014-02-21T02:13:00.002-08:00</published><updated>2014-02-21T04:10:19.451-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="=Tidbits-Learn as you grow and grow as you learn"/><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>Android - Tidbits </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;epub__noindent&quot; style=&quot;background-color: white; font-family: verdana, sans-serif; font-size: 15px; margin: 0.5em 1.3em 0em; padding: 0px; text-align: justify;&quot;&gt;
An Android application is “stratified.” Its functionality is spelled out via Java code, its design via XML markup, and its privileges via the Android Manifest XML file in a way that is truly unique, modular, and powerful. This modularity adds a great deal of extensibility, or development flexibility, to applications.&lt;/div&gt;
&lt;div class=&quot;epub__noindent&quot; style=&quot;background-color: white; font-family: verdana, sans-serif; font-size: 15px; margin: 0.5em 1.3em 0em; padding: 0px; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=2876525463809419491&quot; name=&quot;language to&quot;&gt;&lt;/a&gt;Android makes heavy use of an XML-based markup language to define the basic component design of an application, especially its visual and user interface components. XML “markup” is not technically code, but rather consists of tags, similar to the HTML tags that web developers use to format their online documents. XML is used in Android to define everything from UIs to animation to data access, and even programmatic constructs such as Java object definitions and parameter configurations.&lt;/div&gt;
&lt;div class=&quot;epub__noindent&quot; style=&quot;background-color: white; margin: 0.5em 1.3em 0em; padding: 0px; text-align: justify;&quot;&gt;
&lt;div style=&quot;font-family: verdana, sans-serif; font-size: 15px;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=2876525463809419491&quot; name=&quot;to comprehend&quot;&gt;&lt;/a&gt;XML markup tags are easier for beginners to comprehend than a complex programming language like Java. For this reason, you’ll use XML whenever possible, as Google recommends. &amp;nbsp;XML makes this possible for the absolute beginner&lt;/div&gt;
&lt;div style=&quot;font-family: verdana, sans-serif; font-size: 15px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: verdana, sans-serif; font-size: 15px;&quot;&gt;
&lt;span style=&quot;font-size: 28px; font-weight: bold; text-align: left;&quot;&gt;Screen Layout Design&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: verdana, sans-serif; font-size: 15px;&quot;&gt;
&lt;span style=&quot;font-size: 28px; font-weight: bold; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: 28px; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: verdana, sans-serif;&quot;&gt;In Android everything is laid out with something called screen constructs. They are also called as Views or View groups(Grouped views). They are in other words flexible layout containers,which can be nested inside each other to create any custom UI for your application needs . The way most users interact with an Android application is handled in Android using a mixture of Java code and XML markup that controls the hierarchy of the View and ViewGroup objects and Layout containers. You can extend these Java classes by adding your own custom code to creat your own custom View Objects and Layout containers, when you need a complex design. These ViewGroup layout containers ultimately hold the other visual and UI content in your application in the corresponding place. Thus are the foundation to your application design.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 28px; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 28px;&quot;&gt;Intents&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;epub__noindent&quot; style=&quot;font-family: verdana, sans-serif; font-size: 15px; margin: 0.5em 1.3em 0em; padding: 0px;&quot;&gt;
&amp;nbsp;&lt;i&gt;Intents&lt;/i&gt;&amp;nbsp;are asynchronous messages (members of the&amp;nbsp;&lt;span class=&quot;epub__FontName1&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Intents&lt;/span&gt;&amp;nbsp;class&lt;a href=&quot;&quot; id=&quot;cXXX.72&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;cXXX.19h&quot;&gt;&lt;/a&gt;) that travel between Android’s activities, services, and broadcast receiver components.&amp;nbsp;&lt;i&gt;Asynchronous&lt;/i&gt;&lt;a href=&quot;&quot; name=&quot;can be&quot;&gt;&lt;/a&gt;means they are not synchronized; that is, the messages can be sent and received independently (not in sync, but without any pattern or order) from each other.&lt;/div&gt;
&lt;span style=&quot;font-size: 28px; text-align: left;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;epub__noindent&quot; style=&quot;font-family: verdana, sans-serif; font-size: 15px; margin: 0.5em 1.3em 0em; padding: 0px;&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;current Android&quot;&gt;&lt;/a&gt;Using intents allows you to take your current Android applications to an entirely new level of complexity.&lt;/div&gt;
&lt;div style=&quot;font-family: verdana, sans-serif; font-size: 15px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: verdana, sans-serif; font-size: 15px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webservices-testing.blogspot.com/feeds/9109242653198000128/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webservices-testing.blogspot.com/2014/02/android-tidbits.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/9109242653198000128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/9109242653198000128'/><link rel='alternate' type='text/html' href='http://webservices-testing.blogspot.com/2014/02/android-tidbits.html' title='Android - Tidbits '/><author><name>Sureshkumar</name><uri>http://www.blogger.com/profile/16486205579229653742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2876525463809419491.post-5360984817809917234</id><published>2014-02-19T06:52:00.001-08:00</published><updated>2014-02-19T06:52:23.275-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="=Tidbits-Learn as you grow and grow as you learn"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="technology"/><title type='text'>Stateful and Stateless Transfer What is it </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Often when we test technology, Restful APIs , SOA testing . We often hear about Stateful and Stateless. What is it ? Here is a good articled I got a chance to read&lt;br /&gt;
&lt;br /&gt;
http://whatis.techtarget.com/definition/stateless&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; font-family: Calibri, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 19.200000762939453px; margin-bottom: 20px;&quot;&gt;
Stateful and stateless are adjectives that describe whether a computer or computer program is designed to note and remember one or more preceding events in a given sequence of interactions with a user, another computer or program, a device, or other outside element. Stateful means the computer or program keeps track of the state of interaction, usually by setting values in a storage field designated for that purpose. Stateless means there is no record of previous interactions and each interaction request has to be handled based entirely on information that comes with it. Stateful and stateless are derived from the usage of&amp;nbsp;&lt;i&gt;state&lt;/i&gt;&amp;nbsp;as a set of conditions at a moment in time. (Computers are inherently stateful in operation, so these terms are used in the context of a particular set of interactions, not of how computers work in general.)&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Calibri, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 19.200000762939453px; margin-bottom: 20px;&quot;&gt;
The Internet&#39;s basic protocol, the Internet Protocol (&amp;nbsp;&lt;a href=&quot;http://searchunifiedcommunications.techtarget.com/definition/Internet-Protocol&quot; style=&quot;color: #663366; outline: 0px;&quot;&gt;IP&lt;/a&gt;&amp;nbsp;), is an example of a stateless interaction. Each&amp;nbsp;&lt;a href=&quot;http://searchnetworking.techtarget.com/definition/packet&quot; style=&quot;color: #663366; outline: 0px;&quot;&gt;packet&lt;/a&gt;&amp;nbsp;travels entirely on its own without reference to any other packet. When you request a Web page from a Web site, the request travels in one or more packets, each independent of the other as far as the Internet Protocol program itself is concerned. (The upper layer Transmission Control Protocol - TCP - does relate packets to each other, but uses the information within the packet rather than some external information to do this.) The term&amp;nbsp;&lt;i&gt;connectionless&lt;/i&gt;&amp;nbsp;is also used to describe communication in which a connection is made and terminated for each message that is sent. IP is connectionless as well as stateless.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Calibri, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 19.200000762939453px; margin-bottom: 20px;&quot;&gt;
The Web&#39;s Hypertext Transfer Protocol (&amp;nbsp;&lt;a href=&quot;http://searchwindevelopment.techtarget.com/definition/HTTP&quot; style=&quot;color: #663366; outline: 0px;&quot;&gt;HTTP&lt;/a&gt;&amp;nbsp;), an application layer above TCP/IP, is also stateless. Each request from a user for a Web page or URL results in the requested pages being served, but without the Web (HTTP) server remembering the request later. In other words, there is no recorded continuity. Each communication is discrete and unrelated to those that precede or follow. In order to have stateful communication, a site developer must furnish a special program that the server can call that can record and retrieve state information. Web browsers such as Netscape Explorer and Microsoft Internet Explorer provide an area in their subdirectories where state information can be stored and accessed. The area and the information that Web browsers and server applications put in this area is called a&amp;nbsp;&lt;a href=&quot;http://searchsoftwarequality.techtarget.com/definition/cookie&quot; style=&quot;color: #663366; outline: 0px;&quot;&gt;cookie&lt;/a&gt;&amp;nbsp;.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Calibri, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 19.200000762939453px; margin-bottom: 20px;&quot;&gt;
In formal protocol specifications, a&amp;nbsp;&lt;a href=&quot;http://searchcio-midmarket.techtarget.com/definition/finite-state-machine&quot; style=&quot;color: #663366; outline: 0px;&quot;&gt;finite state machine&lt;/a&gt;&amp;nbsp;is an abstract desciption of how a stateful system works that describes the action that follows each possible state.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Calibri, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 19.200000762939453px; margin-bottom: 20px;&quot;&gt;
The Internet (including the World Wide Web) can be thought of as a stateless system or machine. Most computers, human beings, and elephants are stateful.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webservices-testing.blogspot.com/feeds/5360984817809917234/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webservices-testing.blogspot.com/2014/02/stateful-and-stateless-transfer-what-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/5360984817809917234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/5360984817809917234'/><link rel='alternate' type='text/html' href='http://webservices-testing.blogspot.com/2014/02/stateful-and-stateless-transfer-what-is.html' title='Stateful and Stateless Transfer What is it '/><author><name>Sureshkumar</name><uri>http://www.blogger.com/profile/16486205579229653742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2876525463809419491.post-5650541461907526253</id><published>2014-02-13T23:15:00.003-08:00</published><updated>2014-02-13T23:15:27.449-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="=Tidbits-Learn as you grow and grow as you learn"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="Spring"/><title type='text'>All about spring - Java</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
All About Spring&lt;br /&gt;
&lt;br /&gt;
Spring started its life as a body of sample code that Rod Johnson featured in his 2002 Wrox Press book Expert One on One Java J2EE Design and Development(ISBN: 1861007841). The book was published during the height of J2EE popularity. Back in those days, the conventionally accepted way to create a serious enterprise Java application was to use Java 2 Enterprise Edition 1.3/1.4 and create complex software components called Enterprise JavaBeans (EJBs) following the then-current EJB 2.x specifications.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&quot;Spring and Java EE,&quot; provides more insight into how the Spring framework differs from and improves upon Java EE.&lt;br /&gt;
&lt;br /&gt;
Although popular, creating component-based Java server applications using J2EE was not a fun activity. Constructing EJBs and creating applications out of EJBs are complex processes that involve a lot of tedious coding and require the management of a large body of source code — even for small projects.&lt;br /&gt;
&lt;br /&gt;
Rod&#39;s description of a lightweight container that can minimize the complexity of a server-side application construction was a breath of fresh air to the stuffy J2EE development community. Spring — in conjunction with simple yet groundbreaking concepts such as dependency injection (discussed later in this chapter) — captured the imagination of many Java server developers.&lt;br /&gt;
&lt;br /&gt;
Around this body of code was born an active Internet-based development community. The community centered around Rod&#39;s company&#39;s website (interface21.com/), and the associated Spring framework website (springframework.org/).&lt;br /&gt;
&lt;br /&gt;
Adoption of the framework continues to rise worldwide as Rod and his group continue to develop the framework and as more and more developers discover this practical and lightweight open-source alternative to J2EE. The software framework itself has also grown considerably, supported by an industry of third-party software add-on components.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webservices-testing.blogspot.com/feeds/5650541461907526253/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webservices-testing.blogspot.com/2014/02/all-about-spring-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/5650541461907526253'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/5650541461907526253'/><link rel='alternate' type='text/html' href='http://webservices-testing.blogspot.com/2014/02/all-about-spring-java.html' title='All about spring - Java'/><author><name>Sureshkumar</name><uri>http://www.blogger.com/profile/16486205579229653742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2876525463809419491.post-6328047600230144569</id><published>2014-02-09T21:25:00.002-08:00</published><updated>2014-02-09T21:25:26.112-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="groovyscripting"/><category scheme="http://www.blogger.com/atom/ns#" term="properties"/><category scheme="http://www.blogger.com/atom/ns#" term="soapui"/><title type='text'>SOAP UI Properties low down </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;What is properties in SoapUI ?&lt;/b&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Properties in SoapUI is used to store and retrieve data. The data is stored as key,value format.&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;b style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;Default properties in SoapUI.&lt;/b&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SoapUI has properties at three levels by default.&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.&amp;nbsp;&amp;nbsp;&amp;nbsp; Project level default/custom properties.&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; User can add any number properties at project level and this can be accessed from any test steps from any test cases under any test suites.&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Test suite level default/custom properties.&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; User can add any number properties at test suite level and this can be accessed from any test steps from any test cases under this test suite.&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. Test Case level default/custom properties.&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; User can add any number properties at test case level and this can be accessed from any test steps from this test case.&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: #f9f9f9; clear: both; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3G88R9jIvRfoB3RrU34g3rBFi8KeS-m1synMFBhJZ5PfO_tHx_54M8TeSjTkYqd7zWqcpkREteoNq5mrgHU9-wAf3n9jpfUZiVSCYEWwfYKSoBCHtUpSD825J0GthsEZ8pscedsnBs4A/s1600/default+properties.png&quot; imageanchor=&quot;1&quot; itemprop=&quot;primaryImageOfPage&quot; itemscope=&quot;&quot; itemtype=&quot;http://schema.org/ImageObject&quot; rel=&quot;lightbox[p]&quot; style=&quot;color: #ab6f07; font-family: Georgia, &#39;Times New Roman&#39;, Times, serif; margin-left: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;img alt=&quot;SoapUI Properties&quot; border=&quot;0&quot; height=&quot;361&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3G88R9jIvRfoB3RrU34g3rBFi8KeS-m1synMFBhJZ5PfO_tHx_54M8TeSjTkYqd7zWqcpkREteoNq5mrgHU9-wAf3n9jpfUZiVSCYEWwfYKSoBCHtUpSD825J0GthsEZ8pscedsnBs4A/s400/default+properties.png&quot; style=&quot;border: 1px solid rgb(69, 58, 22); margin: 1em;&quot; title=&quot;SoapUI Properties&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;b style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;Where to use properties in SoapUI&lt;/b&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; We can read the property values into test step endpoint, Header values, username, password, domain, GET, POST, PUT and DELETE method properties.&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: #f9f9f9; clear: both; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglUE9HJFmI9zRxQ73xedbX7UKavuGcUA8Rls7Yw3WwvDmS_klcBNPAqrF9qyIekZPd5V4EG6YLqwDX6JogdYqGtjyZOdcOJufqL2yo9Bqz0pO-EVQmxcLspNeH1s_UYEjJ5YYnf9EvrNQ/s1600/Header+properties.png&quot; imageanchor=&quot;1&quot; itemscope=&quot;&quot; itemtype=&quot;http://schema.org/ImageObject&quot; rel=&quot;lightbox[p]&quot; style=&quot;color: #ab6f07; font-family: Georgia, &#39;Times New Roman&#39;, Times, serif; margin-left: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;img alt=&quot;Header properties&quot; border=&quot;0&quot; height=&quot;206&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglUE9HJFmI9zRxQ73xedbX7UKavuGcUA8Rls7Yw3WwvDmS_klcBNPAqrF9qyIekZPd5V4EG6YLqwDX6JogdYqGtjyZOdcOJufqL2yo9Bqz0pO-EVQmxcLspNeH1s_UYEjJ5YYnf9EvrNQ/s400/Header+properties.png&quot; style=&quot;border: 1px solid rgb(69, 58, 22); margin: 1em;&quot; title=&quot;Header properties&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The above image shows how to use the properties in Header or inside the Post request.&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;b style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;How to use default/custom properties.&lt;/b&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The default/custom values at three levels can be used for endpoint, Header values, username, password etc..&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The general format for reading the default/custom property value is &amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp;&amp;nbsp;&amp;nbsp; ${#levelname#key}&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ex :&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; To read test case level property&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp;&amp;nbsp;&amp;nbsp; ${#TestCase#param1}&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; To read test suite level property&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp;&amp;nbsp;&amp;nbsp; ${#TestSuite#param1}&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; To read&amp;nbsp; project level property&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp;&amp;nbsp;&amp;nbsp; ${#Project#param1}&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The above image shows how to use the property at test case level.&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;b style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;Read property using Groovy Script&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Reading property values from a script is straight-forward, to get a property value you first need to get hold of the containing object and then use the getPropertyValue(&quot;property name&quot;) method.&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Groovy script can be used in two places inside the SoapUI.&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 1.&amp;nbsp;&amp;nbsp;&amp;nbsp; Groovy script test step&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 2.&amp;nbsp;&amp;nbsp;&amp;nbsp; Script Assertion - within test step.&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The below code snippet can be used to read test case level property from Groovy script test step.&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-java prettyprinted&quot; style=&quot;background-color: #f9f9f9; border: 1px solid rgb(136, 136, 136); color: #262c2c; font-size: 13px; line-height: 22.75px; overflow: auto; padding: 2px;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;def param1 &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; context&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;testCase&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;getPropertyValue&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;param1&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
log&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;info param1&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: #f9f9f9; clear: both; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_wL8EFXUGm_KGyuYjgkQkMRE_gztyZmJvtVGj6TngYF9RsblHAx8MzAVB2p3hnYt6pZ-iXNVzgp-DDbvrCrTrIvTqG7-2wFso-JiVqd_fSPUNOlpPEoynC2tv7Qigs6x4RxZcZN8DyQQ/s1600/Read+Property.png&quot; imageanchor=&quot;1&quot; itemscope=&quot;&quot; itemtype=&quot;http://schema.org/ImageObject&quot; rel=&quot;lightbox[p]&quot; style=&quot;color: #ab6f07; font-family: Georgia, &#39;Times New Roman&#39;, Times, serif; margin-left: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;img alt=&quot;Read property&quot; border=&quot;0&quot; height=&quot;203&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_wL8EFXUGm_KGyuYjgkQkMRE_gztyZmJvtVGj6TngYF9RsblHAx8MzAVB2p3hnYt6pZ-iXNVzgp-DDbvrCrTrIvTqG7-2wFso-JiVqd_fSPUNOlpPEoynC2tv7Qigs6x4RxZcZN8DyQQ/s400/Read+Property.png&quot; style=&quot;border: 1px solid rgb(69, 58, 22); margin: 1em;&quot; title=&quot;Read property&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Similarly the below code snippet can be used to read test case level property from Script Assertion.&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-java prettyprinted&quot; style=&quot;background-color: #f9f9f9; border: 1px solid rgb(136, 136, 136); color: #262c2c; font-size: 13px; line-height: 22.75px; overflow: auto; padding: 2px;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;def param1 &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; testRunner&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;testCase&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;getPropertyValue&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;param1&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
log&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;info param1&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: #f9f9f9; clear: both; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuLP3qTuOWtQUlKn4EdQuQ_lspv84kYu6ymGFcqkP2DsFINKOSHzsptD5tUYzl8DAFcOd9DyRvmqE1RucoI_eFsJa_RA6w_qzb1_uycKnLL4B-NAgo4KVC9wUI39sm0KZ_eKgFKtJqr-M/s1600/Read+Property+Groovy.png&quot; imageanchor=&quot;1&quot; itemscope=&quot;&quot; itemtype=&quot;http://schema.org/ImageObject&quot; rel=&quot;lightbox[p]&quot; style=&quot;color: #ab6f07; font-family: Georgia, &#39;Times New Roman&#39;, Times, serif; margin-left: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;img alt=&quot;Read property using script&quot; border=&quot;0&quot; height=&quot;218&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuLP3qTuOWtQUlKn4EdQuQ_lspv84kYu6ymGFcqkP2DsFINKOSHzsptD5tUYzl8DAFcOd9DyRvmqE1RucoI_eFsJa_RA6w_qzb1_uycKnLL4B-NAgo4KVC9wUI39sm0KZ_eKgFKtJqr-M/s400/Read+Property+Groovy.png&quot; style=&quot;border: 1px solid rgb(69, 58, 22); margin: 1em;&quot; title=&quot;Read property using script&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; We can read the property value from test suite level as well as project level in similar way.&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Code snippet to read test suite level property&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-java prettyprinted&quot; style=&quot;background-color: #f9f9f9; border: 1px solid rgb(136, 136, 136); color: #262c2c; font-size: 13px; line-height: 22.75px; overflow: auto; padding: 2px;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;def param1 &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; testRunner&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;testCase&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;testSuite&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;getPropertyValue&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;param1&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
log&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;info param1&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Code snippet to read project level property&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-java prettyprinted&quot; style=&quot;background-color: #f9f9f9; border: 1px solid rgb(136, 136, 136); color: #262c2c; font-size: 13px; line-height: 22.75px; overflow: auto; padding: 2px;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;def param1 &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; testRunner&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;testCase&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;testSuite&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;project&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;getPropertyValue&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;param1&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
log&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;info param1&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;b style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;Set/Add property using Groovy Script&lt;/b&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; As like reading property value, writing property values from a script is also straight-forward. we need to call setPropertyValue(&quot;property name&quot;,&quot;property value&quot;) method. If the property is not exist already then it will be created and the value will be assigned. If the property is already exist then its value will be updated.&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Code snippet to write test case level property&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-java prettyprinted&quot; style=&quot;background-color: #f9f9f9; border: 1px solid rgb(136, 136, 136); color: #262c2c; font-size: 13px; line-height: 22.75px; overflow: auto; padding: 2px;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;context&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;testCase&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;setPropertyValue&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;param1&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;88&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Similarly the code snippet to write values for testsuite and project level property are&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-java prettyprinted&quot; style=&quot;background-color: #f9f9f9; border: 1px solid rgb(136, 136, 136); color: #262c2c; font-size: 13px; line-height: 22.75px; overflow: auto; padding: 2px;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;context&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;testCase&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;testSuite&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;setPropertyValue&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;param1&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;88&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
context&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;testCase&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;testSuite&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;project&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;setPropertyValue&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;param1&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;88&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;/pre&gt;
&lt;b style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;Delete property using Groovy Script&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; We can manually add any number of default or custom properties at all three levels. But the tool doesn&#39;t have the option to delete the properties manually. we need to use the script to delete the property.&lt;/span&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: #f9f9f9; clear: both; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px; text-align: center;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOpkqb-eWWdkaDUuA__fwxEND61qILt4bqRKf19nOtuciterET9Gmv1JsqaemtMPB8xVeD3gE_jZW0BIq03NGP5HJp7LUL3tTz5-iYrus1VDhvupkiiWchhVVMjbNfpI5CncdAOTfpOSk/s1600/Delete+Property.png&quot; imageanchor=&quot;1&quot; itemscope=&quot;&quot; itemtype=&quot;http://schema.org/ImageObject&quot; rel=&quot;lightbox[p]&quot; style=&quot;color: #ab6f07; font-family: Georgia, &#39;Times New Roman&#39;, Times, serif; margin-left: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;img alt=&quot;SoapUI Delete property&quot; border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOpkqb-eWWdkaDUuA__fwxEND61qILt4bqRKf19nOtuciterET9Gmv1JsqaemtMPB8xVeD3gE_jZW0BIq03NGP5HJp7LUL3tTz5-iYrus1VDhvupkiiWchhVVMjbNfpI5CncdAOTfpOSk/s400/Delete+Property.png&quot; style=&quot;border: 1px solid rgb(69, 58, 22); margin: 1em;&quot; title=&quot;SoapUI Delete property&quot; width=&quot;373&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; using the below script we can delete the property.&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-java prettyprinted&quot; style=&quot;background-color: #f9f9f9; border: 1px solid rgb(136, 136, 136); color: #262c2c; font-size: 13px; line-height: 22.75px; overflow: auto; padding: 2px;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;context&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;testCase&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;removeProperty&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;param1&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; similarly we can delete the properties in testsuite and project level&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-java prettyprinted&quot; style=&quot;background-color: #f9f9f9; border: 1px solid rgb(136, 136, 136); color: #262c2c; font-size: 13px; line-height: 22.75px; overflow: auto; padding: 2px;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;context&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;testCase&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;testSuite&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;removeProperty&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;param1&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
context&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;testCase&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;testSuite&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;project&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;removeProperty&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;param1&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;/pre&gt;
&lt;b style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;Delete/Remove all custom properties using Groovy Script.&lt;/b&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;br style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot; /&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The below code snippet can be used to delete all the properties available in test suite level.&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-java prettyprinted&quot; style=&quot;background-color: #f9f9f9; border: 1px solid rgb(136, 136, 136); color: #262c2c; font-size: 13px; line-height: 22.75px; overflow: auto; padding: 2px;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;context&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;testCase&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;properties&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;each
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
    k&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;v &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
    context&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;testCase&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;removeProperty&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;k&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; we can modify the above code to delete all the properties at different levels as discussed above.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #f9f9f9; color: #262c2c; font-family: Helvetica, Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 13px; line-height: 22.75px;&quot;&gt;This was shared from the link -&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #262c2c; font-family: Helvetica, Georgia, Times New Roman, Times, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 22.75px;&quot;&gt;http://www.techinterviewpuzzles.com/2013/07/how-to-use-properties-in-soapui.html&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #262c2c; font-family: Helvetica, Georgia, Times New Roman, Times, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 22.75px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webservices-testing.blogspot.com/feeds/6328047600230144569/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webservices-testing.blogspot.com/2014/02/soap-ui-properties-low-down.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/6328047600230144569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/6328047600230144569'/><link rel='alternate' type='text/html' href='http://webservices-testing.blogspot.com/2014/02/soap-ui-properties-low-down.html' title='SOAP UI Properties low down '/><author><name>Sureshkumar</name><uri>http://www.blogger.com/profile/16486205579229653742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3G88R9jIvRfoB3RrU34g3rBFi8KeS-m1synMFBhJZ5PfO_tHx_54M8TeSjTkYqd7zWqcpkREteoNq5mrgHU9-wAf3n9jpfUZiVSCYEWwfYKSoBCHtUpSD825J0GthsEZ8pscedsnBs4A/s72-c/default+properties.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2876525463809419491.post-7833881647274573527</id><published>2014-02-07T03:02:00.000-08:00</published><updated>2014-02-07T03:02:20.729-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="=Tidbits-Learn as you grow and grow as you learn"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><title type='text'>Some interesting Java Array =Tidbits - Learn as you grow and grow as you learn </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I did nt think to post this as a post, But there were some things which I thought should be shared. They dont have any particular meaning. Some of them are even copied from materials that I go through and search on a daily basis. But I know that it might make sense to some when they might look up ! So here it goes. Please dont read if you look for something structured. Just these are Tidbits&lt;br /&gt;
&lt;br /&gt;
1-&amp;nbsp;&lt;span style=&quot;background-color: white; font-family: &#39;Times New Roman&#39;, serif; font-size: 15px; text-align: justify;&quot;&gt;An array is implemented as a special Java object whose read-only&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;background-color: white; font-size: 15px; text-align: justify;&quot;&gt;length&lt;/code&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Times New Roman&#39;, serif; font-size: 15px; text-align: justify;&quot;&gt;&amp;nbsp;field contains the array’s size (the number of elements)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Times New Roman&#39;, serif; font-size: 15px; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Times New Roman&#39;, serif; font-size: 15px; text-align: justify;&quot;&gt;2-&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;When creating an array, Specify new followed by name that identifies the type of value that are being stored in the array. Follow up with one or more pair of square bracket that signify the number of dimensions occupied by array&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;3-&amp;nbsp;You can use string concatenation when you are defining array object. For example here, you can define String concatenation operator in a loop context&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;for (int i=0;i&lt;imarray .length=&quot;&quot; i=&quot;&quot; span=&quot;&quot;&gt;&lt;/imarray&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp;imArray[i]=new Image(&quot;image&quot;+i+&quot;.png&quot;);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;4-&amp;nbsp;You can define two dimensional arrays with primitive type values (Eg - Integers or double precision floating point numbers ) but using double square brackets as given below&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;double[][] temperatures = new double[3][2];&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;5-&amp;nbsp;If you want you can combine array initializer syntax.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;For example Image[] imArray = new Image[] {new Image(&quot;image1.jpg&quot;), new image(&quot;image2.jpg&quot;)};&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;This will create a pair of images objects and two element Image array object initialized to th eimage object references and assigns the array reference to imArray&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webservices-testing.blogspot.com/feeds/7833881647274573527/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webservices-testing.blogspot.com/2014/02/some-interesting-java-array-tidbits.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/7833881647274573527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/7833881647274573527'/><link rel='alternate' type='text/html' href='http://webservices-testing.blogspot.com/2014/02/some-interesting-java-array-tidbits.html' title='Some interesting Java Array =Tidbits - Learn as you grow and grow as you learn '/><author><name>Sureshkumar</name><uri>http://www.blogger.com/profile/16486205579229653742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2876525463809419491.post-1992776943966795439</id><published>2013-10-08T21:00:00.000-07:00</published><updated>2013-10-08T21:00:08.999-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ITKO LISA"/><category scheme="http://www.blogger.com/atom/ns#" term="JUNIT testing"/><title type='text'>Running LISA Tests as JUnit Tests</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Running LISA Tests as JUnit Tests&lt;br /&gt;
&lt;br /&gt;
A unique feature of ITKO LISA SOA testing tool is that you can run LISA tests as JUnit tests&lt;br /&gt;
&lt;br /&gt;
The JUnit Step will support JUnit3 and JUnit4 test cases and test suites.&lt;br /&gt;
&lt;br /&gt;
Do the following steps&lt;br /&gt;
&lt;br /&gt;
To execute LISA tests as JUnit tests and have them report as native JUnit tests&lt;br /&gt;
Make sure both Ant and JUnit are available on your PC and ANT_HOME /bin is set in your PATH.&lt;br /&gt;
Copy junit.jar from your JUnit installation into ANT_HOME/lib.&lt;br /&gt;
&lt;br /&gt;
1.Define the system property LISA_HOME and set its value to the LISA install directory.&lt;br /&gt;
&lt;br /&gt;
2.Use the junitlisatest task to execute LISA tests as JUnit tests.&lt;br /&gt;
&lt;br /&gt;
3.Optionally use the junitlisareport task to create HTML reports from the JUnit XML output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Logging output is written to a file junitlisa_log.log in the user.home/lisatmp directory.&lt;br /&gt;
The logging level used is the same as that set in LISA_HOME/logging.properties.&lt;br /&gt;
To change the logging level&lt;br /&gt;
Edit the first line of this file, from:&lt;br /&gt;
log4j.rootCategory=INFO,A1&lt;br /&gt;
to&lt;br /&gt;
log4j.rootCategory=DEBUG,A1&lt;br /&gt;
The Standard JUnit output is available at user.home/lisatmp/junit/index.html&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webservices-testing.blogspot.com/feeds/1992776943966795439/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webservices-testing.blogspot.com/2013/10/running-lisa-tests-as-junit-tests.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/1992776943966795439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/1992776943966795439'/><link rel='alternate' type='text/html' href='http://webservices-testing.blogspot.com/2013/10/running-lisa-tests-as-junit-tests.html' title='Running LISA Tests as JUnit Tests'/><author><name>Sureshkumar</name><uri>http://www.blogger.com/profile/16486205579229653742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2876525463809419491.post-8165827605978976479</id><published>2013-10-07T23:51:00.000-07:00</published><updated>2013-10-07T23:51:10.338-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ITKO LISA"/><category scheme="http://www.blogger.com/atom/ns#" term="SOA testing"/><category scheme="http://www.blogger.com/atom/ns#" term="SOAP UI"/><title type='text'>ITKO LISA Secutiry - Using SSL to Secure communication between components</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Using SSL to Secure Communication Between Components&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
By default, an unencrypted protocol is used to communicate between components. If required, the Secure Sockets&lt;br /&gt;
Layer (SSL) can be used to encrypt the network traffic. For example, if you are running a lab in a public cloud and&lt;br /&gt;
you want to help ensure the traffic from your workstation transmitted through the internet is encrypted.&lt;br /&gt;
The easiest way to enable SSL is to set a LISA property.&lt;br /&gt;
&lt;br /&gt;
lisa.net.default.protocol=ssl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You cannot specify this property in site.properties; that is too late in the bootstrap phase. It needs to be in local.pr&lt;br /&gt;
operties (or on the command line).&lt;br /&gt;
If you then start a registry with no extra parameters, for example, it will be listening on port 2010 (the usual port, not&lt;br /&gt;
a different port) but expects clients to use the SSL protocol.&lt;br /&gt;
&lt;br /&gt;
The Service Name for the registry is ssl://hostname:20&lt;br /&gt;
10/Registry.&lt;br /&gt;
If you want to connect to that registry from LISA Workstation, use ssl://hostname:2010/Registry instead of the&lt;br /&gt;
usual tcp://hostname:2010/Registry. If you start a simulator on the same computer, it will be available on ssl://hos&lt;br /&gt;
tname:2014/Simulator and it will automatically connect to the registry at ssl://hostname:2010/Registry with no&lt;br /&gt;
property changes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can also mix and match SSL and normal TCP protocols. If you leave the lisa.net.default.protocol property at&lt;br /&gt;
its default setting (tcp), you can enable specific services for SSL by specifying the name of the individual service&lt;br /&gt;
with the &quot;ssl:&quot; protocol prefix, instead of the default &quot;tcp:&quot; prefix. For example, to start a registry in SSL mode:&lt;br /&gt;
Registry --name=ssl://reghost.company.com:2010/Registry&lt;br /&gt;
To connect a simulator to this registry, start the simulator with the fully qualified registry address:&lt;br /&gt;
Simulator --registry=ssl://reghost.company.com:2010/Registry&lt;br /&gt;
This tells the simulator to use SSL to talk to the registry but the simulator itself is unsecured, because we have not&lt;br /&gt;
specified the SSL in the primary name. To do so:&lt;br /&gt;
Simulator&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--name=ssl://simhost.company.com:2014/Simulator --registry=ssl://reghost.company.com&lt;br /&gt;
:2010/Registry&lt;br /&gt;
1.&lt;br /&gt;
Mixing secured and unsecured servers is not common. However, you may want to have unsecured servers inside&lt;br /&gt;
your firewall and secured servers in a public cloud. There is a degree of overhead using SSL encryption, which&lt;br /&gt;
varies considerably depending on the hardware.&lt;br /&gt;
SSL Certificates&lt;br /&gt;
By default, our own self-signed certificate is used to encrypt and decrypt the messages between components. This&lt;br /&gt;
certificate is also used by VSE when recording https:// style web traffic. The certificate is contained in the LISA_HO&lt;br /&gt;
ME/webreckeys.ks file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you set the default protocol to SSL and do not change anything else, you are using an &quot;internal LISA&quot;&lt;br /&gt;
certificate that is shared by all LISA users (not just your organization). Using this certificate will encrypt the network&lt;br /&gt;
traffic, but it would not prevent an unauthorized user from connecting to your simulator on a public cloud (for&lt;br /&gt;
example). You must use your own certificate to prevent that happening (or you can continue to use the &quot;well knownLISA certificate but enable access control).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want to use your own certificate, the certificate keystore can be overridden by specifying two properties:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
lisa.net.keyStore=/path/to/keystore.ks&lt;br /&gt;
lisa.net.keyStore.password=plaintextPassword&lt;br /&gt;
The first time the plain text password is read by LISA, it is converted into an encrypted property:&lt;br /&gt;
lisa.net.keyStore.password_enc=33aa310aa4e18c114dacf86a33cee898&lt;br /&gt;
Creating Your Own Self-Signed Certificate&lt;br /&gt;
This example uses the keytool utility, which is included with the Java Runtime Environment (JRE).&lt;br /&gt;
To create your own self-signed certificate&lt;br /&gt;
Enter the appropriate responses to the prompts.&lt;br /&gt;
&lt;br /&gt;
prompt&amp;gt;keytool -genkey -alias serverA -keyalg RSA -validity 365 -keystore&lt;br /&gt;
keystore.ks&lt;br /&gt;
Enter keystore password: MyNewSecretPassword &lt;the actual=&quot;&quot; be=&quot;&quot; p=&quot;&quot; plaintext=&quot;&quot; t=&quot;&quot; won=&quot;&quot;&gt;shown&amp;gt;&lt;br /&gt;
Re-enter new password: MyNewSecretPassword&lt;br /&gt;
What is your first and last name?&lt;br /&gt;
[Unknown]: serverA&lt;br /&gt;
What is the name of your organizational unit?&lt;br /&gt;
[Unknown]: dev&lt;br /&gt;
What is the name of your organization?&lt;br /&gt;
[Unknown]: ITKO&lt;br /&gt;
What is the name of your City or Locality?&lt;br /&gt;
[Unknown]: Dallas&lt;br /&gt;
What is the name of your State or Province?&lt;br /&gt;
[Unknown]: TX&lt;br /&gt;
What is the two-letter country code for this unit?&lt;br /&gt;
[Unknown]: US&lt;br /&gt;
Is CN=serverA, OU=dev, O=ITKO, L=Dallas, ST=TX, C=US correct?&lt;br /&gt;
[no]: yes&lt;br /&gt;
Enter key password for &lt;servera&gt;&lt;/servera&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(RETURN if same as keystore password) &lt;just hit=&quot;&quot; return=&quot;&quot;&gt;&lt;/just&gt;&lt;br /&gt;
A file containing a certificate that is valid for 365 days is created.&lt;br /&gt;
Copy the file to LISA_HOME and update local.properties:&lt;br /&gt;
lisa.net.keyStore={{LISA_HOME}}keystore.ks&lt;br /&gt;
lisa.net.keyStore.password=MyNewSecretPassword&lt;br /&gt;
The first time the plain text password is read by LISA, it is converted into an encrypted property:&lt;br /&gt;
lisa.net.keyStore.password_enc=33aa310aa4e18c114dacf86a33cee898&lt;br /&gt;
and the server side of the connection configuration is complete.&lt;br /&gt;
Configure the client. Because this certificate is self-signed, you must explicitly tell the clients to trust the&lt;br /&gt;
certificate. Typically when you connect to a SSL service (for example, using a browser to https://www.MyBan&lt;br /&gt;
k.com) the certificate on the server side has been certified by a trusted Certification Authority. Self-signed&lt;br /&gt;
certificates have not been certified by a trusted third party so you must add the certificate to a Trust Store:&lt;br /&gt;
lisa.net.trustStore={{LISA_HOME}}trustStore.ts&lt;br /&gt;
lisa.net.trustStore.password=MyNewSecretPassword&lt;br /&gt;
Trust stores are manipulated using the same keytool utility. In general, a keystore contains one certificate and&lt;br /&gt;
a trust store contains one or more certificates&lt;br /&gt;
Export the certificate from the server keystore:&lt;br /&gt;
&lt;br /&gt;
keytool -exportcert -rfc -alias serverA -keystore keyStore.ks -file&lt;br /&gt;
serverA.cer&lt;br /&gt;
The -rfc means to export the certificate as ASCII text rather than binary, to make it easier to copy and paste.&lt;br /&gt;
In our example, the resulting serverA.cerfile looks like this:&lt;br /&gt;
-----BEGIN CERTIFICATE-----&lt;br /&gt;
MIICEzCCAXygAwIBAgIEThZnYzANBgkqhkiG9w0BAQUFADBOMQswCQYDVQQGEwJDQjELMAkGA1UE&lt;br /&gt;
CBM420IxCzAJBgNVBAcTAkNCMQswCQYDVQQKEwJDQjELMAkGA1UECxMCQ0IxCzAJBgNVBAMTAkNC&lt;br /&gt;
MB4XDTExMDcwODAyMTE0N1oXDTEyMDcwNzAyMTE0N1owTJELMAkGA1UEBhMCQ0IxCzAJBgNVBAgT&lt;br /&gt;
AkNCMQswCQYDVQQHEwJDQjELMAkGA1UECDMCQ0IxCzAJBgNVBAsTAkNCMQswCQYDVQQDEwJDQjCB&lt;br /&gt;
nzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAhYfaN+dCrKQwYZ+KeaaPUI8DeXNiqQ/mS+KGnXnh&lt;br /&gt;
Pz08vdX/7HDLW4pzFhntjmkxxOi9dMwlO2thTD1cOxI571PotenMENo4nyiUAEnMK9MTiWEYr2cQ&lt;br /&gt;
b6/TUueBCjRJ9I0GPCI0WPS+0Na2Q/wq8gPCHmDRpw1Xgo4uZ1v6C/ECAwEAATANBgkqhkiG9w0B&lt;br /&gt;
AQUFAAOBgQByCsX9EoBFIGhcSwoRwEvapIrv8wTaqQPOKKyeIevSmbnERRu6+oi+cJftbdEfw6GG&lt;br /&gt;
CBddJH+dGZ9VeqLU8zBGasbU+JPzG5ElOgOXcUGeQQEaM1YMv6XWrIwNSljQk/MPZSt3ROtJOlae&lt;br /&gt;
JPKJXSQ610xof9+yLHH0ebUGhUjdlQ==&lt;br /&gt;
-----END CERTIFICATE-----&lt;br /&gt;
Add this certificate to the client&#39;s trust store. Because you are creating a new trust store file, you will be asked&lt;br /&gt;
for the password twice. If you add further certificates to this client&#39;s trust store, you will only be prompted&lt;br /&gt;
once.&lt;br /&gt;
prompt&amp;gt; keytool -importcert -file serverA.cer -keystore trustStore.ts&lt;br /&gt;
Enter keystore password:&lt;br /&gt;
Re-enter new password:&lt;br /&gt;
Owner: CN=serverA, OU=dev, O=itko, L=Dallas, ST=Texas, C=US&lt;br /&gt;
Issuer: CN=serverA, OU=dev, O=itko, L=Dallas, ST=Texas, C=US&lt;br /&gt;
Serial number: 4e155338&lt;br /&gt;
Valid from: Thu Jul 07 16:33:28 EST 2011 until: Wed Oct 05 17:33:28 EST 2011&lt;br /&gt;
Certificate fingerprints:&lt;br /&gt;
MD5: 5B:10:F6:C8:02:3E:36:F5:AA:6D:FC:10:EF:F5:7F:54&lt;br /&gt;
SHA1: 09:DA:8E:71:7C:D5:BB:44:89:14:13:07:F4:A1:C7:06:35:CD:BE:B1&lt;br /&gt;
Signature algorithm name: SHA1withRSA&lt;br /&gt;
Version: 3&lt;br /&gt;
Trust this certificate? [no]: yes&lt;br /&gt;
Certificate was added to keystore&lt;br /&gt;
&lt;br /&gt;
Now you have a cryptographically strong way of talking to your LISA servers in the public cloud. You must&lt;br /&gt;
have the certificate on both sides for two LISA components to talk to each other.&lt;br /&gt;
If your client needs to talk to more than one remote SSL server, you need to run the same keytool command&lt;br /&gt;
to import the certificate into the trust store.&lt;/the&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://webservices-testing.blogspot.com/feeds/8165827605978976479/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://webservices-testing.blogspot.com/2013/10/itko-lisa-secutiry-using-ssl-to-secure.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/8165827605978976479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2876525463809419491/posts/default/8165827605978976479'/><link rel='alternate' type='text/html' href='http://webservices-testing.blogspot.com/2013/10/itko-lisa-secutiry-using-ssl-to-secure.html' title='ITKO LISA Secutiry - Using SSL to Secure communication between components'/><author><name>Sureshkumar</name><uri>http://www.blogger.com/profile/16486205579229653742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>