Coverage rate acquisition method and device for Java program test
The invention relates to the technical field of program testing, and particularly discloses a coverage rate collection method and device for Java program testing, and the method comprises the steps: obtaining source code data of a target application; compiling the source code data of the target appl...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
container_end_page | |
---|---|
container_issue | |
container_start_page | |
container_title | |
container_volume | |
creator | GAO MENGJIE ZHOU CHAOXIN |
description | The invention relates to the technical field of program testing, and particularly discloses a coverage rate collection method and device for Java program testing, and the method comprises the steps: obtaining source code data of a target application; compiling the source code data of the target application to obtain byte code data of the target application; aiming at a target class in the byte code data of the target application, generating a corresponding brother class; the brother class comprises an auxiliary method for collecting the coverage rate; the operation of accessing and assigning the auxiliary method in the brother class is embedded in the target class; and collecting the coverage rate of the target application by using an auxiliary method, wherein the coverage rate refers to the ratio data of the operated code and the to-be-operated code. By means of the scheme, collection of the coverage rate of the target class is guaranteed, meanwhile, fields or methods are not injected into the target class, |
format | Patent |
fullrecord | <record><control><sourceid>epo_EVB</sourceid><recordid>TN_cdi_epo_espacenet_CN118567995A</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>CN118567995A</sourcerecordid><originalsourceid>FETCH-epo_espacenet_CN118567995A3</originalsourceid><addsrcrecordid>eNqNyjEOwjAMBdAsDAi4gzkAQ4UKdKwiEGJgYq-s5LdEonFITM7PwgGY3vKWprdSkXkCZVYQu_cnlKBBIs3Qp3ji6MmjBgcaJdONK1PKMmWeSVF0bRYjvwo2P1dmezk_7HWHJANKYocIHey9aU7t4dh1bb__53wB8MQxlA</addsrcrecordid><sourcetype>Open Access Repository</sourcetype><iscdi>true</iscdi><recordtype>patent</recordtype></control><display><type>patent</type><title>Coverage rate acquisition method and device for Java program test</title><source>esp@cenet</source><creator>GAO MENGJIE ; ZHOU CHAOXIN</creator><creatorcontrib>GAO MENGJIE ; ZHOU CHAOXIN</creatorcontrib><description>The invention relates to the technical field of program testing, and particularly discloses a coverage rate collection method and device for Java program testing, and the method comprises the steps: obtaining source code data of a target application; compiling the source code data of the target application to obtain byte code data of the target application; aiming at a target class in the byte code data of the target application, generating a corresponding brother class; the brother class comprises an auxiliary method for collecting the coverage rate; the operation of accessing and assigning the auxiliary method in the brother class is embedded in the target class; and collecting the coverage rate of the target application by using an auxiliary method, wherein the coverage rate refers to the ratio data of the operated code and the to-be-operated code. By means of the scheme, collection of the coverage rate of the target class is guaranteed, meanwhile, fields or methods are not injected into the target class,</description><language>chi ; eng</language><subject>CALCULATING ; COMPUTING ; COUNTING ; ELECTRIC DIGITAL DATA PROCESSING ; PHYSICS</subject><creationdate>2024</creationdate><oa>free_for_read</oa><woscitedreferencessubscribed>false</woscitedreferencessubscribed></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><linktohtml>$$Uhttps://worldwide.espacenet.com/publicationDetails/biblio?FT=D&date=20240830&DB=EPODOC&CC=CN&NR=118567995A$$EHTML$$P50$$Gepo$$Hfree_for_read</linktohtml><link.rule.ids>230,308,777,882,25545,76296</link.rule.ids><linktorsrc>$$Uhttps://worldwide.espacenet.com/publicationDetails/biblio?FT=D&date=20240830&DB=EPODOC&CC=CN&NR=118567995A$$EView_record_in_European_Patent_Office$$FView_record_in_$$GEuropean_Patent_Office$$Hfree_for_read</linktorsrc></links><search><creatorcontrib>GAO MENGJIE</creatorcontrib><creatorcontrib>ZHOU CHAOXIN</creatorcontrib><title>Coverage rate acquisition method and device for Java program test</title><description>The invention relates to the technical field of program testing, and particularly discloses a coverage rate collection method and device for Java program testing, and the method comprises the steps: obtaining source code data of a target application; compiling the source code data of the target application to obtain byte code data of the target application; aiming at a target class in the byte code data of the target application, generating a corresponding brother class; the brother class comprises an auxiliary method for collecting the coverage rate; the operation of accessing and assigning the auxiliary method in the brother class is embedded in the target class; and collecting the coverage rate of the target application by using an auxiliary method, wherein the coverage rate refers to the ratio data of the operated code and the to-be-operated code. By means of the scheme, collection of the coverage rate of the target class is guaranteed, meanwhile, fields or methods are not injected into the target class,</description><subject>CALCULATING</subject><subject>COMPUTING</subject><subject>COUNTING</subject><subject>ELECTRIC DIGITAL DATA PROCESSING</subject><subject>PHYSICS</subject><fulltext>true</fulltext><rsrctype>patent</rsrctype><creationdate>2024</creationdate><recordtype>patent</recordtype><sourceid>EVB</sourceid><recordid>eNqNyjEOwjAMBdAsDAi4gzkAQ4UKdKwiEGJgYq-s5LdEonFITM7PwgGY3vKWprdSkXkCZVYQu_cnlKBBIs3Qp3ji6MmjBgcaJdONK1PKMmWeSVF0bRYjvwo2P1dmezk_7HWHJANKYocIHey9aU7t4dh1bb__53wB8MQxlA</recordid><startdate>20240830</startdate><enddate>20240830</enddate><creator>GAO MENGJIE</creator><creator>ZHOU CHAOXIN</creator><scope>EVB</scope></search><sort><creationdate>20240830</creationdate><title>Coverage rate acquisition method and device for Java program test</title><author>GAO MENGJIE ; ZHOU CHAOXIN</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-epo_espacenet_CN118567995A3</frbrgroupid><rsrctype>patents</rsrctype><prefilter>patents</prefilter><language>chi ; eng</language><creationdate>2024</creationdate><topic>CALCULATING</topic><topic>COMPUTING</topic><topic>COUNTING</topic><topic>ELECTRIC DIGITAL DATA PROCESSING</topic><topic>PHYSICS</topic><toplevel>online_resources</toplevel><creatorcontrib>GAO MENGJIE</creatorcontrib><creatorcontrib>ZHOU CHAOXIN</creatorcontrib><collection>esp@cenet</collection></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext_linktorsrc</fulltext></delivery><addata><au>GAO MENGJIE</au><au>ZHOU CHAOXIN</au><format>patent</format><genre>patent</genre><ristype>GEN</ristype><title>Coverage rate acquisition method and device for Java program test</title><date>2024-08-30</date><risdate>2024</risdate><abstract>The invention relates to the technical field of program testing, and particularly discloses a coverage rate collection method and device for Java program testing, and the method comprises the steps: obtaining source code data of a target application; compiling the source code data of the target application to obtain byte code data of the target application; aiming at a target class in the byte code data of the target application, generating a corresponding brother class; the brother class comprises an auxiliary method for collecting the coverage rate; the operation of accessing and assigning the auxiliary method in the brother class is embedded in the target class; and collecting the coverage rate of the target application by using an auxiliary method, wherein the coverage rate refers to the ratio data of the operated code and the to-be-operated code. By means of the scheme, collection of the coverage rate of the target class is guaranteed, meanwhile, fields or methods are not injected into the target class,</abstract><oa>free_for_read</oa></addata></record> |
fulltext | fulltext_linktorsrc |
identifier | |
ispartof | |
issn | |
language | chi ; eng |
recordid | cdi_epo_espacenet_CN118567995A |
source | esp@cenet |
subjects | CALCULATING COMPUTING COUNTING ELECTRIC DIGITAL DATA PROCESSING PHYSICS |
title | Coverage rate acquisition method and device for Java program test |
url | https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-01-20T15%3A18%3A13IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-epo_EVB&rft_val_fmt=info:ofi/fmt:kev:mtx:patent&rft.genre=patent&rft.au=GAO%20MENGJIE&rft.date=2024-08-30&rft_id=info:doi/&rft_dat=%3Cepo_EVB%3ECN118567995A%3C/epo_EVB%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_id=info:pmid/&rfr_iscdi=true |