<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>However you run your Python application, use "coverage run" to
      run it instead.  If you usually do "python my_application.py",
      then do "coverage run my_application.py" instead.</p>
    <p>--Ned.<br>
    </p>
    <div class="moz-cite-prefix">On 4/9/19 1:26 PM, akhi 9195 wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAC6DuQFMOWEr84eDwBtGeMUg+VQMkpAgyXvC3Xhcv0NaSWPZmw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">first of all, Thank you very much Ned for your
        reply.
        <div><br>
        </div>
        <div>What language is the application written in? </div>
        <div>   - <b>The application is written in Python.</b></div>
        <div><br>
        </div>
        <div>What language are the tests written in? </div>
        <div>   -  <b>We have 28000 selenium test scripts written in
            Java.</b></div>
        <div><br>
        </div>
        <div>What part do you want to coverage-measure?  <br>
        </div>
        <div>- We need below information.  </div>
        <div>  1. <b>Need to measure how much % of the application has
            been covered by our 28000 selenium test scripts  written in
            java.</b></div>
        <div>  2. Is there any duplicate test script written in these
          28000 scripts, which we can identify, if any part of
          application code/statement invoked many times. </div>
        <div><br>
        </div>
        <div>So, I would like to measure which covers the above 2
          requirements that may be Statement coverage or branch
          Coverage.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>
          <p>Coverage.py can measure the coverage of any Python code you
            need to run.</p>
          <p>- What I understood is, we need to feed <b>only </b>"<b>python
              unit test scripts</b>" as input to "coverage run" and not
            java-selenium test scripts.</p>
          <p>How can I run "<b>28,000</b> <b>selenium test scripts
              written in java</b>" on a python instrumented build to
            measure the statement/branch coverage? </p>
          <p><br>
          </p>
          <p>Please let me know if you still need any information.</p>
          <p>I didn't expect response directly from Ned. Thank you very
            much for your response. :)</p>
          <p><br>
          </p>
          <p>Thanks</p>
          <p>Akhilesh B.</p>
          <br class="gmail-Apple-interchange-newline">
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Tue, Apr 9, 2019 at 10:34
          PM Ned Batchelder &lt;<a href="mailto:ned@nedbatchelder.com"
            moz-do-not-send="true">ned@nedbatchelder.com</a>&gt; wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div bgcolor="#FFFFFF">
            <p>It's not clear what you need.  What language is the
              application written in? What language are the tests
              written in? What part do you want to coverage-measure?</p>
            <p>Coverage.py can measure the coverage of any Python code
              you need to run.</p>
            <p>--Ned.<br>
            </p>
            <div class="gmail-m_3643688729028364958moz-cite-prefix">On
              4/8/19 3:30 PM, akhi 9195 wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="auto">
                <div class="gmail_quote" dir="auto">
                  <div dir="ltr"><br>
                  </div>
                  <br>
                  <div dir="ltr">Hello Team,
                    <div><br>
                    </div>
                    <div>This is Akhilesh Bashettiwar. I am not sure
                      this is the right platform to post my concern,
                      Please excuse me if it is not.</div>
                    <div><br>
                    </div>
                    <div>I have a requirement to do code coverage to a
                      python application based on Java-Selenium test
                      scripts.</div>
                    <div><br>
                    </div>
                    <div>By using "Coverage.py" tool, can I achieve my
                      goal?</div>
                    <div>If yes, Please help me out at least with basic
                      guidance or at least just YES/NO is also highly
                      appreciable.</div>
                    <div><br>
                    </div>
                    <div>At any cost, I have to reach this goal to keep
                      up my job. So, Please do reply me if you know the
                      1% information also is a big help for me.</div>
                    <div><br>
                    </div>
                    <div>Looking forward to hearing from you</div>
                    <div><br>
                    </div>
                    <div>Thank you in advance</div>
                    <div>Akhilesh B.</div>
                  </div>
                </div>
              </div>
              <br>
              <fieldset
                class="gmail-m_3643688729028364958mimeAttachmentHeader"></fieldset>
              <pre class="gmail-m_3643688729028364958moz-quote-pre">_______________________________________________
testing-in-python mailing list
<a class="gmail-m_3643688729028364958moz-txt-link-abbreviated" href="mailto:testing-in-python@lists.idyll.org" target="_blank" moz-do-not-send="true">testing-in-python@lists.idyll.org</a>
<a class="gmail-m_3643688729028364958moz-txt-link-freetext" href="http://lists.idyll.org/listinfo/testing-in-python" target="_blank" moz-do-not-send="true">http://lists.idyll.org/listinfo/testing-in-python</a>
</pre>
            </blockquote>
          </div>
          _______________________________________________<br>
          testing-in-python mailing list<br>
          <a href="mailto:testing-in-python@lists.idyll.org"
            target="_blank" moz-do-not-send="true">testing-in-python@lists.idyll.org</a><br>
          <a href="http://lists.idyll.org/listinfo/testing-in-python"
            rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.idyll.org/listinfo/testing-in-python</a><br>
        </blockquote>
      </div>
    </blockquote>
  </body>
</html>