CN106649094A - Test method based on EventViewer development process - Google Patents

Test method based on EventViewer development process Download PDF

Info

Publication number
CN106649094A
CN106649094A CN201610925067.5A CN201610925067A CN106649094A CN 106649094 A CN106649094 A CN 106649094A CN 201610925067 A CN201610925067 A CN 201610925067A CN 106649094 A CN106649094 A CN 106649094A
Authority
CN
China
Prior art keywords
test
testing
performance
tested
unit
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.)
Pending
Application number
CN201610925067.5A
Other languages
Chinese (zh)
Inventor
张介飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei Mdt Infotech Ltd
Original Assignee
Hefei Mdt Infotech Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hefei Mdt Infotech Ltd filed Critical Hefei Mdt Infotech Ltd
Priority to CN201610925067.5A priority Critical patent/CN106649094A/en
Publication of CN106649094A publication Critical patent/CN106649094A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a test method based on EventViewer development process. The method comprises the following steps: step 1, unit test: adopting an open source JUnit unit testing framework to perform test, and starting to compile a unit test case to test a core code after compiling a source code and passing the grammar inspection of a compiler; step 2, system test: after the encoding is completed and after the test in step 1, performing a smoke test; step 3, regression test: after software is modified, testing the system again; and step 4, performance test: testing the performance index of the system, and optimizing the system. According to the test method disclosed by the invention, a software development system is tested and verified based on the unit test, the system test, the regression test and the performance test so as to ensure high-quality yield in software development, effectively reduce the error rate of program development and reduce the software development period.

Description

A kind of method of testing in the Viewer development processes based on Event
Technical field
The invention belongs to technical field of software development, in more particularly to a kind of Viewer development processes based on Event Method of testing.
Background technology
It is well known that in traditional embedded development, for the host and the target for program performing of program compiling Machine is different development platforms.In general, host refers to PC ends, and target machine refers to Target Board.On stream, it is first First need to write the program suitable for target machine on host PC, and run the compiler of embedded system, produce embedded The executable image file of system-specific, then in the memory of image file programming to goal systems, just can finally run The embedded program write, completes embedded software developing.Here it is the embedded cross exploitation often said.
The content of the invention
It is an object of the invention to provide the method for testing in a kind of Viewer development processes based on Event, by being based on Unit testing, system testing, regression test and performance test carry out the test to software development system and checking.
The present invention is achieved by the following technical solutions:
The present invention is the method for testing in a kind of Viewer development processes based on Event, comprises the steps:
Step one, unit testing:Tested using the JUnit unit testing frameworks increased income, write source code simultaneously Examined after Check by the grammer of compiler, so that it may start to write unit testing use-case, core code is tested, for finding journey Mistake inside sequence;
Step 2, system testing:It is to be encoded to complete, and after the test of step one, carry out smoke test;
Step 3, regression test:After changing in software, system is retested, determine amended system Possess the function of setting;
Step 4, performance test:The performance indications of system are tested, whether checking system meets the performance of proposition will Ask, and carry out system optimization.
Preferably, the step 2, system testing:It is to be encoded to complete, and after the test of step one, carry out survey of smoldering In examination, the smoke test specifically by checking system basic function, it is ensured that the normal operation of function.
Preferably, the step 4, performance test:The performance indications of system are tested, whether checking system meets The performance requirement of proposition, and carry out in system optimization, the testing tool based on JConsole of employing.
Unit testing is a kind of white-box testing technology, focuses primarily upon the modules of inspection software.In general, compiling Write source code and examined after Check by the grammer of compiler, so that it may start to write unit testing use-case, core code is surveyed Examination, so as to the mistake inside discovery procedure as soon as possible.
JUnit is a Java test frame increased income, and belongs to and be used in unit testing frame system xunit Java language An example, be primarily adapted for use in white-box testing and regression test JUnit be integrated in Eclipse, it can be to one or many The single or multiple methods of individual class are tested, and different TestCase is combined into into TestSuit, are easy to test assignment certainly Dynamicization these characteristics are just applied to based on the EventViewer systems of Eclipse.
The invention has the advantages that:
The present invention based on unit testing, system testing, regression test and performance test by being carried out to software development system Test and checking, it is ensured that the high-quality output in software development, be effectively reduced the error rate of program development, reduce software and open The cycle sent out.
Certainly, the arbitrary product for implementing the present invention it is not absolutely required to while reaching all the above advantage.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, use required for describing to embodiment below Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for ability For the those of ordinary skill of domain, on the premise of not paying creative work, can be attached to obtain others according to these accompanying drawings Figure.
Fig. 1 is the method for testing flow chart in a kind of Viewer development processes based on Event of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, it is all other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
Refer to shown in Fig. 1, the present invention is the method for testing in a kind of Viewer development processes based on Event, including such as Lower step:
Step one, unit testing:Tested using the JUnit unit testing frameworks increased income, write source code simultaneously Examined after Check by the grammer of compiler, so that it may start to write unit testing use-case, core code is tested, for finding journey Mistake inside sequence;
Step 2, system testing:It is to be encoded to complete, and after the test of step one, carry out smoke test;
Step 3, regression test:After changing in software, system is retested, determine amended system Possess the function of setting;
Step 4, performance test:The performance indications of system are tested, whether checking system meets the performance of proposition will Ask, and carry out system optimization.
Wherein, step 2, system testing:It is to be encoded to complete, and after the test of step one, in carrying out smoke test, The smoke test specifically by checking system basic function, it is ensured that the normal operation of function.
Wherein, step 4, performance test:The performance indications of system are tested, whether checking system meets proposition Performance requirement, and carry out in system optimization, the testing tool based on JConsole of employing.
Unit testing is a kind of white-box testing technology, focuses primarily upon the modules of inspection software.In general, compiling Write source code and examined after Check by the grammer of compiler, so that it may start to write unit testing use-case, core code is surveyed Examination, so as to the mistake inside discovery procedure as soon as possible.
JUnit is a Java test frame increased income, and belongs to and be used in unit testing frame system xunit Java language An example, be primarily adapted for use in white-box testing and regression test JUnit be integrated in Eclipse, it can be to one or many The single or multiple methods of individual class are tested, and different TestCase is combined into into TestSuit, are easy to test assignment certainly Dynamicization these characteristics are just applied to based on the Event Viewer systems of Eclipse.
In order to ensure that Event Viewer systems can meet the environmental requirement that client specifies, before test, first-selection is needed Deployed environment, is that real test execution is prepared, and when the test case of Event Viewer systems is really performed, needs honor to follow Below some:
1>Record Event Viewer systems in detail actually enters output, by actual output and desired output valve Make comparisons, if finding inconsistent situation, find the position of error;If the problem of code, Bug is submitted to.
2) appearance of abnormal conditions.During test, there may be times when that some problems are occurred in that in certain operation, But do not occur again in next operation, if it is considered to be fortuitous phenomena, the past may be ignored, but in fact, this mistake It is probably and hides most deep mistake, therefore, to perform and should not let slip any little details during use-case, survey several times, to the greatest extent more The reason for putting the problem of finding out and occur, Bug is set to reappear;
3>Principle is understood as far as possible:During test, if it find that not getting a real idea of to the principle of some details, need To link up with related developer, or even also need to supplement use-case, only constantly query, constantly think deeply, constantly verify, Just can guarantee that the quality of test coverage and software.
It should be noted that in said system embodiment, included unit simply carries out drawing according to function logic Point, but above-mentioned division is not limited to, as long as corresponding function can be realized;In addition, each functional unit is concrete Title is also only to facilitate mutually differentiation, is not limited to protection scope of the present invention.
In addition, one of ordinary skill in the art will appreciate that realizing all or part of step in the various embodiments described above method Program be can be by instruct the hardware of correlation to complete, corresponding program can be stored in embodied on computer readable storage and be situated between In matter, described storage medium, such as ROM/RAM, disk or CD.
Present invention disclosed above preferred embodiment is only intended to help and illustrates the present invention.Preferred embodiment is not detailed All of details is described, it is only described specific embodiment also not limit the invention.Obviously, according to the content of this specification, Can make many modifications and variations.These embodiments are chosen and specifically described to this specification, is to preferably explain the present invention Principle and practical application so that skilled artisan can be best understood by and utilize the present invention.The present invention is only Limited by claims and its four corner and equivalent.

Claims (3)

1. the method for testing in a kind of Viewer development processes based on Event, it is characterised in that comprise the steps:
Step one, unit testing:Tested using the JUnit unit testing frameworks increased income, writing source code and passing through After the grammer inspection Check of compiler, so that it may start to write unit testing use-case, core code is tested, in discovery procedure The mistake in portion;
Step 2, system testing:It is to be encoded to complete, and after the test of step one, carry out smoke test;
Step 3, regression test:After changing in software, system is retested, determine that amended system possesses The function of setting;
Step 4, performance test:The performance indications of system are tested, whether checking system meets the performance requirement of proposition, And carry out system optimization.
2. the method for testing in a kind of Viewer development processes based on Event according to claim 1, it is characterised in that The step 2, system testing:It is to be encoded to complete, and after the test of step one, in carrying out smoke test, the survey of smoldering Try specifically by the basic function of checking system, it is ensured that the normal operation of function.
3. the method for testing in a kind of Viewer development processes based on Event according to claim 1, it is characterised in that The step 4, performance test:The performance indications of system are tested, whether checking system meets the performance requirement of proposition, And carry out in system optimization, the testing tool based on JConsole of employing.
CN201610925067.5A 2016-10-30 2016-10-30 Test method based on EventViewer development process Pending CN106649094A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610925067.5A CN106649094A (en) 2016-10-30 2016-10-30 Test method based on EventViewer development process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610925067.5A CN106649094A (en) 2016-10-30 2016-10-30 Test method based on EventViewer development process

Publications (1)

Publication Number Publication Date
CN106649094A true CN106649094A (en) 2017-05-10

Family

ID=58856755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610925067.5A Pending CN106649094A (en) 2016-10-30 2016-10-30 Test method based on EventViewer development process

Country Status (1)

Country Link
CN (1) CN106649094A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729255A (en) * 2017-11-10 2018-02-23 北京奇虎科技有限公司 Method for testing software, apparatus and system
CN109634865A (en) * 2018-12-13 2019-04-16 平安科技(深圳)有限公司 A kind of code turns to survey method, apparatus and turns to survey terminal
CN109976994A (en) * 2017-12-27 2019-07-05 航天信息股份有限公司 White-box testing method, apparatus, the computer equipment of Java project
CN110046099A (en) * 2019-04-11 2019-07-23 艾伯资讯(深圳)有限公司 Intelligent software test macro and method
CN110888801A (en) * 2019-10-23 2020-03-17 贝壳技术有限公司 Software program testing method and device, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102448098A (en) * 2010-09-30 2012-05-09 重庆重邮信科通信技术有限公司 Physical layer test system and method based on ARM (advanced RISC (reduced instruction set computer) machine) and DSP (digital signal processing) multi-core structure
CN102693183A (en) * 2012-05-30 2012-09-26 瑞斯康达科技发展股份有限公司 Method and system for realizing automatic software testing
US20160283353A1 (en) * 2015-03-23 2016-09-29 Tryon Solutions, Inc. Automated software testing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102448098A (en) * 2010-09-30 2012-05-09 重庆重邮信科通信技术有限公司 Physical layer test system and method based on ARM (advanced RISC (reduced instruction set computer) machine) and DSP (digital signal processing) multi-core structure
CN102693183A (en) * 2012-05-30 2012-09-26 瑞斯康达科技发展股份有限公司 Method and system for realizing automatic software testing
US20160283353A1 (en) * 2015-03-23 2016-09-29 Tryon Solutions, Inc. Automated software testing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李进: "基于Eclipse平台的实时软件研究与设计", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729255A (en) * 2017-11-10 2018-02-23 北京奇虎科技有限公司 Method for testing software, apparatus and system
CN107729255B (en) * 2017-11-10 2021-04-09 北京奇虎科技有限公司 Software testing method, device and system
CN109976994A (en) * 2017-12-27 2019-07-05 航天信息股份有限公司 White-box testing method, apparatus, the computer equipment of Java project
CN109634865A (en) * 2018-12-13 2019-04-16 平安科技(深圳)有限公司 A kind of code turns to survey method, apparatus and turns to survey terminal
CN109634865B (en) * 2018-12-13 2024-03-22 平安科技(深圳)有限公司 Code transfer testing method and device and transfer testing terminal
CN110046099A (en) * 2019-04-11 2019-07-23 艾伯资讯(深圳)有限公司 Intelligent software test macro and method
CN110888801A (en) * 2019-10-23 2020-03-17 贝壳技术有限公司 Software program testing method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN106649094A (en) Test method based on EventViewer development process
CN109726132B (en) Software testing method and software testing automatic management system
JP6307140B2 (en) System and method for safety critical software automatic requirement based test case generation
EP2245551B1 (en) Identification of elements of currently-executing component script
CN107797929B (en) Statistical method and device for programmable logic simulation test function coverage rate
US9317405B2 (en) Test double generation
Falke et al. The bounded model checker LLBMC
US7895575B2 (en) Apparatus and method for generating test driver
US11650799B2 (en) Remote application modernization
CN107015841B (en) Preprocessing method for program compiling and program compiling device
CN111950212A (en) Efficient multi-mode verification platform and method
CN104699523B (en) For the adjustment method and system of the application program that hardware platform is developed
CN115562982A (en) Reference model debugging method and device, electronic equipment and storage medium
US9117018B2 (en) Method of debugging software and corresponding computer program product
CN104102581B (en) A kind of method and device for realizing unit testing
CN107704389B (en) Page testing method and device
CN104915287A (en) Method and system for unit testing
CN108572892B (en) PowerPC multi-core processor-based offline test method and device
CN104199770B (en) A kind of automated testing method of mobile phone music APK
Aho et al. Making GUI testing practical: Bridging the gaps
CN109783837A (en) Emulator, analogue system, emulation mode and simulated program
US10481969B2 (en) Configurable system wide tests
US9489284B2 (en) Debugging method and computer program product
CN117597669A (en) Test method, system and device
CN109814852B (en) Partition configuration method of partition real-time operating system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170510

RJ01 Rejection of invention patent application after publication