[TIP] Need information on "Code coverage" for Java based selenium test scripts to a for Python web application.
Ned Batchelder
ned at nedbatchelder.com
Tue Apr 9 11:37:55 PDT 2019
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.
--Ned.
On 4/9/19 1:26 PM, akhi 9195 wrote:
> first of all, Thank you very much Ned for your reply.
>
> What language is the application written in?
> - *The application is written in Python.*
>
> What language are the tests written in?
> - *We have 28000 selenium test scripts written in Java.*
>
> What part do you want to coverage-measure?
> - We need below information.
> 1. *Need to measure how much % of the application has been covered
> by our 28000 selenium test scripts written in java.*
> 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.
>
> So, I would like to measure which covers the above 2 requirements that
> may be Statement coverage or branch Coverage.
>
>
> Coverage.py can measure the coverage of any Python code you need to run.
>
> - What I understood is, we need to feed *only *"*python unit test
> scripts*" as input to "coverage run" and not java-selenium test scripts.
>
> How can I run "*28,000* *selenium test scripts written in java*" on a
> python instrumented build to measure the statement/branch coverage?
>
>
> Please let me know if you still need any information.
>
> I didn't expect response directly from Ned. Thank you very much for
> your response. :)
>
>
> Thanks
>
> Akhilesh B.
>
>
>
>
>
>
>
>
> On Tue, Apr 9, 2019 at 10:34 PM Ned Batchelder <ned at nedbatchelder.com
> <mailto:ned at nedbatchelder.com>> wrote:
>
> 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?
>
> Coverage.py can measure the coverage of any Python code you need
> to run.
>
> --Ned.
>
> On 4/8/19 3:30 PM, akhi 9195 wrote:
>>
>>
>> Hello Team,
>>
>> This is Akhilesh Bashettiwar. I am not sure this is the right
>> platform to post my concern, Please excuse me if it is not.
>>
>> I have a requirement to do code coverage to a python application
>> based on Java-Selenium test scripts.
>>
>> By using "Coverage.py" tool, can I achieve my goal?
>> If yes, Please help me out at least with basic guidance or at
>> least just YES/NO is also highly appreciable.
>>
>> 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.
>>
>> Looking forward to hearing from you
>>
>> Thank you in advance
>> Akhilesh B.
>>
>> _______________________________________________
>> testing-in-python mailing list
>> testing-in-python at lists.idyll.org <mailto:testing-in-python at lists.idyll.org>
>> http://lists.idyll.org/listinfo/testing-in-python
> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> <mailto:testing-in-python at lists.idyll.org>
> http://lists.idyll.org/listinfo/testing-in-python
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20190409/c25d82cc/attachment-0001.htm>
More information about the testing-in-python
mailing list