<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html lang=‘en’ xml:lang=‘en’ xmlns=‘www.w3.org/1999/xhtml’>

<head>
  <title>support/env.rb</title>
  <link href="./assets/0.2.3/screen.css" media="all" rel="stylesheet" type="text/css" />
  <link href="./assets/0.2.3/print.css" media="print" rel="stylesheet" type="text/css" />
  <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
  <script type="text/javascript" src="./assets/0.2.3/rcov.js"></script>
</head>
<body>
  <h1>Cukes C0 Coverage Information - Simploco - RCov</h1>
  <h2>support/env.rb</h2>
  <div class="report_table_wrapper">
    <table class='report' id='report_table'>
      <thead>
        <tr>
          <th class="left_align">Name</th>
          <th class="right_align">Total Lines</th>
          <th class="right_align">Lines of Code</th>
          <th class="left_align">Total Coverage</th>
          <th class="left_align">Code Coverage</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td class="left_align"><a href="support-env_rb.html">support/env.rb</a></td>
          <td class='right_align'><tt>61</tt></td>
          <td class='right_align'><tt>33</tt></td>
          <td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
    <div class="percent_graph">
      <div class="covered" style="width:100px"></div>
      <div class="uncovered" style="width:0px"></div>
    </div></td>
          <td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
    <div class="percent_graph">
      <div class="covered" style="width:100px"></div>
      <div class="uncovered" style="width:0px"></div>
    </div></td>
        </tr>
      </tbody>
    </table>
  </div>
  <h3>Key</h3>
  <div class="key"><pre><span class='marked'>Code reported as executed by Ruby looks like this...</span><span class='marked1'>and this: this line is also marked as covered.</span><span class='inferred'>Lines considered as run by rcov, but not reported by Ruby, look like this,</span><span class='inferred1'>and this: these lines were inferred by rcov (using simple heuristics).</span><span class='uncovered'>Finally, here's a line marked as not executed.</span></pre></div>
  <h3>Coverage Details</h3>
  <table class="details">
    <tbody>
      <tr class="inferred">
        <td><pre><a name="line2">2</a> =begin</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line3">3</a> *Name           : env.rb</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line4">4</a> *Description    : requires the important classes/modules for application execution</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line5">5</a> *Author         : Chandra sekaran</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line6">6</a> *Creation Date  : 24/04/2015</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line7">7</a> *Updation Date  :</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line8">8</a> =end</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line9">9</a> </pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line10">10</a> # Code Coverage report</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line11">11</a> # the cucumber run command should include the command line argument CODE_COVERAGE=yes (or true) in order to get code</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line12">12</a> # coverage report, which is a html report that pictorizes script LOC (Lines of COde) execution coverage</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line13">13</a> if !ENV[&quot;CODE_COVERAGE&quot;].nil? &amp;&amp; ([&quot;yes&quot;, &quot;true&quot;].include?(ENV[&quot;CODE_COVERAGE&quot;].downcase))</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line14">14</a>   require &quot;simplecov&quot;</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line15">15</a>   require &quot;simplecov-json&quot;</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line16">16</a>   require &quot;simplecov-rcov&quot;</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line17">17</a>   SimpleCov.formatters = [</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line18">18</a>       SimpleCov::Formatter::RcovFormatter</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line19">19</a>   ]</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line20">20</a>   #SimpleCov::Formatter::HTMLFormatter, SimpleCov::Formatter::JSONFormatter</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line21">21</a>   SimpleCov.start</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line22">22</a> end</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line23">23</a> </pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line24">24</a> require &quot;rubygems&quot;</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line25">25</a> require &quot;page-object&quot;</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line26">26</a> require &quot;watir-webdriver&quot;</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line27">27</a> require &quot;yaml&quot;</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line28">28</a> require &quot;logger&quot;</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line29">29</a> require &quot;fileutils&quot;</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line30">30</a> require &quot;time_difference&quot;</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line31">31</a> require &quot;data_magic&quot;</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line32">32</a> require &quot;require_all&quot;</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line33">33</a> require &quot;nokogiri&quot;</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line34">34</a> require &quot;open3&quot;    # for capturing STDOUT, STDERR messages</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line35">35</a> require &quot;json&quot;     # for json file manipulation in performance report</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line36">36</a> require &quot;dbi&quot; if ENV[&quot;PLATFORM&quot;].downcase == &quot;desktop&quot;  # for db Sybase - performance report data store</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line37">37</a> require &quot;appium_lib&quot; if ENV[&quot;PLATFORM&quot;].downcase == &quot;mobile&quot;  # for mobile automation</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line38">38</a> </pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line39">39</a> require_all &quot;library&quot;</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line40">40</a> require_all &quot;object_repository&quot;</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line41">41</a> </pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line42">42</a> World(PageObject::PageFactory)   # make PageObject available throughout the application</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line43">43</a> </pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line44">44</a> # environment variables moved to constants that is available throughout the application</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line45">45</a> PLATFORM = ENV[&quot;PLATFORM&quot;] || nil     # for platform if desktop/mobile</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line46">46</a> BROWSER = ENV[&quot;BROWSER&quot;] || nil       # for browser if firefox/chrome/internet_explorer/safari/android</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line47">47</a> BOX = ENV[&quot;BOX&quot;] || nil               # for box name having multiple profiles</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line48">48</a> DEVICE = ENV[&quot;DEVICE&quot;] || nil         # for mobile device if it is attached to the machine</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line49">49</a> </pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line50">50</a> # for resetting the profiles (in config.yml) the cucumber run command line argument should include RESET_CONFIG_VALUES=yes (or true)</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line51">51</a> # which will reset all the profiles</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line52">52</a> RESET_CONFIG_VALUES = ENV[&quot;RESET_CONFIG_VALUES&quot;] || nil</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line53">53</a> </pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line54">54</a> $REPORT_FILE_NAME = &quot;report_#{$$}&quot;    # name of the cucumber generated report file (appended with process id as unique value)</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line55">55</a> </pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line56">56</a> # validating command environment variables</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line57">57</a> raise &quot;Command Line Exception : PLATFORM can not be nil&quot; if PLATFORM.nil?</pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line58">58</a> raise &quot;Command Line Exception : BROWSER can not be nil&quot; if BROWSER.nil?</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line59">59</a> </pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line60">60</a> PageObject.javascript_framework = :jquery  # for handling AJAX</pre></td>
      </tr>
      <tr class="inferred">
        <td><pre><a name="line61">61</a> </pre></td>
      </tr>
      <tr class="marked">
        <td><pre><a name="line62">62</a> World(CUKES::PageUtils)  # make PageUtils methods global to entire TAF</pre></td>
      </tr>
    </tbody>
  </table>
  <p>Generated on 2015-05-08 10:40:30 +0530 with <a href="https://github.com/fguillen/simplecov-rcov">SimpleCov-RCov 0.2.3</a></p>
</body>

</html>