JP7289334B2 - コードをテストするための方法及び装置、電子機器、記憶媒体並びにコンピュータプログラム - Google Patents
コードをテストするための方法及び装置、電子機器、記憶媒体並びにコンピュータプログラム Download PDFInfo
- Publication number
- JP7289334B2 JP7289334B2 JP2021107977A JP2021107977A JP7289334B2 JP 7289334 B2 JP7289334 B2 JP 7289334B2 JP 2021107977 A JP2021107977 A JP 2021107977A JP 2021107977 A JP2021107977 A JP 2021107977A JP 7289334 B2 JP7289334 B2 JP 7289334B2
- Authority
- JP
- Japan
- Prior art keywords
- error
- code
- error information
- determining
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3664—Environments for testing or debugging software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0751—Error or fault detection not based on redundancy
- G06F11/0754—Error or fault detection not based on redundancy by exceeding limits
- G06F11/076—Error or fault detection not based on redundancy by exceeding limits by exceeding a count or rate limit, e.g. word- or bit count limit
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0766—Error or fault reporting or storing
- G06F11/0772—Means for error signaling, e.g. using interrupts, exception flags, dedicated error registers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/324—Display of status information
- G06F11/327—Alarm or error message display
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0766—Error or fault reporting or storing
- G06F11/0778—Dumping, i.e. gathering error/state information after a fault for later diagnosis
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Debugging And Monitoring (AREA)
Description
Claims (11)
- コードをテストするための方法であって、前記方法はコンピュータによって実行され、
ユーザからのコード提出要求を受信したことに応答して、前記ユーザにより提出されたコードを確定するステップと、
前記コードに対して統合テストを行い、予め設定された少なくとも一つのテストタスクを実行するステップと、
前記少なくとも一つのテストタスクのエラー情報を取得するステップと、
前記エラー情報が予め設定された条件を満たすと判定されたことに応答して、前記エラー情報に基づいて、早期警報情報を生成するステップと、
前記早期警報情報を出力するステップと、
を含み、
前記エラー情報が示すテストタスクごとに、該テストタスクの実行回数を確定するステップと、
該テストタスクの実行回数が第1所定閾値よりも小さいと判定されたことに応答して、該テストタスクのエラータイプ及び各エラータイプに対応するエラーの数を確定するステップと、
前記エラータイプが所定タイプであることと、前記所定タイプに対応するエラーの数が第2所定閾値よりも小さいこととが判定されたことに応答して、前記エラー情報が予め設定された条件を満たすと判定するステップと、をさらに含む、
コードをテストするための方法。 - 前記の、前記エラー情報に基づいて、早期警報情報を生成するステップは、
前記エラー情報が示すエラータイプの統計回数を取得するステップと、
前記統計回数を更新するステップと、
更新後の統計回数及び前記エラータイプに基づいて、前記早期警報情報を生成するステップと、を含む請求項1に記載の方法。 - 前記エラー情報が予め設定された条件を満たすと判定されたことに応答して、前記エラー情報に基づいて、フォーマット化情報を生成するステップと、
前記フォーマット化情報を格納するステップと、をさらに含む請求項1に記載の方法。 - 前記エラー情報が予め設定された条件を満たさないと判定されたことに応答して、前記エラー情報を前記ユーザに出力するステップをさらに含む請求項1に記載の方法。
- ユーザからのコード提出要求を受信したことに応答して、前記ユーザにより提出されたコードを確定するように構成されるコード取得ユニットと、
前記コードに対して統合テストを行い、予め設定された少なくとも一つのテストタスクを実行するように構成されるコードテストユニットと、
前記少なくとも一つのテストタスクのエラー情報を取得するように構成されるエラー取得ユニットと、
前記エラー情報が予め設定された条件を満たすと判定されたことに応答して、前記エラー情報に基づいて、早期警報情報を生成するように構成される早期警報生成ユニットと、
前記早期警報情報を出力するように構成される早期警報出力ユニットと、
前記エラー情報が示すテストタスクごとに、該テストタスクの実行回数を確定し、該テストタスクの実行回数が第1所定閾値よりも小さいと判定されたことに応答して、該テストタスクのエラータイプ及び各エラータイプに対応するエラーの数を確定し、前記エラータイプが所定タイプであることと、前記所定タイプに対応するエラーの数が第2所定閾値よりも小さいこととが判定されたことに応答して、前記エラー情報が予め設定された条件を満たすと判定するように構成される条件判定ユニットと
を備える、コードをテストするための装置。 - 前記早期警報生成ユニットは、さらに
前記エラー情報が示すエラータイプの統計回数を取得し、
前記統計回数を更新し、
更新後の統計回数及び前記エラータイプに基づいて、前記早期警報情報を生成するように構成される請求項5に記載の装置。 - 前記エラー情報が予め設定された条件を満たすと判定されたことに応答して、前記エラー情報に基づいて、フォーマット化情報を生成し、
前記フォーマット化情報を格納する
ように構成される記憶ユニットをさらに備える請求項5に記載の装置。 - 前記エラー情報が予め設定された条件を満たさないと判定されたことに応答して、前記エラー情報を前記ユーザに出力するように構成されるエラー出力ユニットをさらに備える請求項5に記載の装置。
- 少なくとも一つのプロセッサと、前記少なくとも一つのプロセッサと通信可能に接続されたメモリとを備える、コードをテストするための電子機器であって、
前記メモリには、前記少なくとも一つのプロセッサによって実行可能な命令が格納されており、前記命令が前記少なくとも一つのプロセッサによって実行されると、前記少なくとも一つのプロセッサに請求項1~4のいずれか1項に記載の方法が実行される、電子機器。 - コンピュータ命令が格納されている非一時的コンピュータ可読記憶媒体であって、
前記コンピュータ命令はコンピュータに請求項1~4のいずれか1項に記載の方法を実行させるために用いられる非一時的コンピュータ可読記憶媒体。 - プロセッサによって実行されると、請求項1~4のいずれか1項に記載の方法が実行されるコンピュータプログラム。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011362254.X | 2020-11-27 | ||
CN202011362254.XA CN112486820B (zh) | 2020-11-27 | 2020-11-27 | 用于测试代码的方法、装置、设备以及存储介质 |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2022048088A JP2022048088A (ja) | 2022-03-25 |
JP7289334B2 true JP7289334B2 (ja) | 2023-06-09 |
Family
ID=74936656
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2021107977A Active JP7289334B2 (ja) | 2020-11-27 | 2021-06-29 | コードをテストするための方法及び装置、電子機器、記憶媒体並びにコンピュータプログラム |
Country Status (5)
Country | Link |
---|---|
US (1) | US20210326248A1 (ja) |
EP (1) | EP4006731B1 (ja) |
JP (1) | JP7289334B2 (ja) |
KR (1) | KR102528776B1 (ja) |
CN (1) | CN112486820B (ja) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113190432A (zh) * | 2021-03-16 | 2021-07-30 | Oppo广东移动通信有限公司 | 代码测试方法、装置、终端及存储介质 |
CN113114504B (zh) * | 2021-04-13 | 2022-08-30 | 百度在线网络技术(北京)有限公司 | 用于分配资源的方法、装置、设备、介质和产品 |
CN113704103B (zh) * | 2021-08-24 | 2023-08-04 | 网易(杭州)网络有限公司 | 测试用例推荐方法、装置、介质及电子设备 |
CN116383014B (zh) * | 2023-06-02 | 2023-08-01 | 北京集度科技有限公司 | 监控计算机、软件调试方法、软件调试系统、介质及产品 |
CN116578497A (zh) * | 2023-07-11 | 2023-08-11 | 苏州浪潮智能科技有限公司 | 一种接口自动化测试方法、系统、计算机设备及存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010152429A (ja) | 2008-12-24 | 2010-07-08 | Hitachi Ltd | Guiアプリケーションテスト支援装置及びテスト支援方法 |
WO2015189931A1 (ja) | 2014-06-11 | 2015-12-17 | 三菱電機株式会社 | プログラム編集装置、プログラム管理装置、プログラム編集プログラムおよびプログラム管理プログラム |
US20180081794A1 (en) | 2016-09-20 | 2018-03-22 | Bank Of America Corporation | Source code validation tool |
CN111611172A (zh) | 2020-05-26 | 2020-09-01 | 深圳壹账通智能科技有限公司 | 项目测试缺陷分析方法、装置、设备及存储介质 |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8843792B2 (en) * | 2012-02-03 | 2014-09-23 | Blackberry Limited | Method and apparatus for reducing false detection of control information |
US9792194B2 (en) * | 2013-10-18 | 2017-10-17 | International Business Machines Corporation | Performance regression manager for large scale systems |
US9383976B1 (en) * | 2015-01-15 | 2016-07-05 | Xerox Corporation | Methods and systems for crowdsourcing software development project |
US9928162B2 (en) * | 2015-03-27 | 2018-03-27 | International Business Machines Corporation | Identifying severity of test execution failures by analyzing test execution logs |
US10353809B2 (en) * | 2015-12-01 | 2019-07-16 | Tata Consultancy Services Limited | System and method for executing integration tests in multiuser environment |
CN105550113B (zh) * | 2015-12-18 | 2019-01-22 | 网易(杭州)网络有限公司 | Web测试方法与测试机 |
CN106897226A (zh) * | 2017-02-28 | 2017-06-27 | 郑州云海信息技术有限公司 | 一种持续集成测试的方法以及装置 |
US11586534B2 (en) * | 2017-06-13 | 2023-02-21 | Microsoft Technology Licensing, Llc | Identifying flaky tests |
CN107943684A (zh) * | 2017-10-30 | 2018-04-20 | 北京奇虎科技有限公司 | 一种测试失败的重试方法、装置、服务器及存储介质 |
CN111078567B (zh) * | 2019-12-19 | 2023-06-13 | 广州品唯软件有限公司 | 自动化测试平台的报告生成方法、终端和存储介质 |
CN111666217B (zh) * | 2020-06-05 | 2023-06-20 | 百度在线网络技术(北京)有限公司 | 用于测试代码的方法和装置 |
-
2020
- 2020-11-27 CN CN202011362254.XA patent/CN112486820B/zh active Active
-
2021
- 2021-06-29 KR KR1020210084450A patent/KR102528776B1/ko active IP Right Grant
- 2021-06-29 JP JP2021107977A patent/JP7289334B2/ja active Active
- 2021-06-29 EP EP21182344.8A patent/EP4006731B1/en active Active
- 2021-06-29 US US17/362,658 patent/US20210326248A1/en not_active Abandoned
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010152429A (ja) | 2008-12-24 | 2010-07-08 | Hitachi Ltd | Guiアプリケーションテスト支援装置及びテスト支援方法 |
WO2015189931A1 (ja) | 2014-06-11 | 2015-12-17 | 三菱電機株式会社 | プログラム編集装置、プログラム管理装置、プログラム編集プログラムおよびプログラム管理プログラム |
US20180081794A1 (en) | 2016-09-20 | 2018-03-22 | Bank Of America Corporation | Source code validation tool |
CN111611172A (zh) | 2020-05-26 | 2020-09-01 | 深圳壹账通智能科技有限公司 | 项目测试缺陷分析方法、装置、设备及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
US20210326248A1 (en) | 2021-10-21 |
CN112486820A (zh) | 2021-03-12 |
KR20210090575A (ko) | 2021-07-20 |
JP2022048088A (ja) | 2022-03-25 |
CN112486820B (zh) | 2022-04-01 |
KR102528776B1 (ko) | 2023-05-04 |
EP4006731A1 (en) | 2022-06-01 |
EP4006731B1 (en) | 2023-05-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7289334B2 (ja) | コードをテストするための方法及び装置、電子機器、記憶媒体並びにコンピュータプログラム | |
US11086766B1 (en) | Web services comparison tool | |
EP3859533A2 (en) | Method and apparatus for testing map service, electronic device, storage medium and computer program product | |
US11307948B2 (en) | Fault injection method and apparatus, electronic device and storage medium | |
CN112527748B (zh) | 用于分析用户操作行为的方法、装置、设备以及存储介质 | |
US20130339931A1 (en) | Application trace replay and simulation systems and methods | |
CN111813623B (zh) | 一种页面监控方法、装置、电子设备及存储介质 | |
CN111309343A (zh) | 一种开发部署方法及装置 | |
CN112491617B (zh) | 一种链路跟踪方法、装置、电子设备和介质 | |
CN113051043A (zh) | 微服务异常补偿方法和装置 | |
CN112182037B (zh) | 数据校验方法、装置、设备以及存储介质 | |
CN112395333A (zh) | 用于排查数据异常的方法、装置、电子设备及存储介质 | |
JP2021192214A (ja) | アプリケーションの動作状態を検証する方法および装置 | |
US9208058B2 (en) | Providing directional debugging breakpoints | |
CN105955838A (zh) | 一种系统死机的原因查看方法及装置 | |
CN109299124B (zh) | 用于更新模型的方法和装置 | |
CN108959508B (zh) | Sql数据生成方法及装置 | |
JP2021103544A (ja) | コード再利用処理方法、装置、電子機器、記憶媒体及びコンピュータプログラム製品 | |
CN113779117A (zh) | 一种数据监控方法、装置、存储介质和电子设备 | |
CN111949549A (zh) | 测试请求筛选方法、系统、电子设备和存储介质 | |
CN111694686A (zh) | 一种异常服务的处理方法、装置、电子设备及存储介质 | |
CN111930748B (zh) | 流式计算系统数据追踪方法、装置、设备以及存储介质 | |
CN117130945B (zh) | 一种测试方法和装置 | |
CN113722316A (zh) | 模型处理方法、装置、电子设备和计算机可读介质 | |
CN116909921A (zh) | 一种数据质量检测方法、设备、装置及存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20220201 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20230127 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20230131 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20230426 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20230523 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20230530 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 7289334 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |