A testing method, device and system for graphical interface application
A graphical interface and testing method technology, applied in software testing/debugging, error detection/correction, instrumentation, etc., to solve problems such as inability to obtain the internal information of the software under test
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
test Embodiment 2
[0030] figure 1 The schematic structural diagram of the test system provided for the first embodiment of the present invention is represented by figure 1 It can be seen that in this embodiment, the test system provided by the present invention includes: a test device 1 and a test case 2. When the test device 1 detects that the application to be tested is working, it embeds the test case 2 into the application to be tested; in the application to be tested, Use the test case to capture and record the input events of the application under test; in the application under test, use the test case to play back the input event and monitor whether the application under test is abnormal.
[0031] Such as figure 1 As shown, in some embodiments, the test device 1 of the graphical interface application in the above-mentioned embodiments includes:
[0032] The embedding module 11 is configured to embed the test case into the application to be tested when it is detected that the application...
no. 2 example
[0040] figure 2 The flow chart of the testing method provided for the second embodiment of the present invention, by figure 2 It can be seen that in this embodiment, the test method for graphical interface applications provided by the present invention includes:
[0041] S201: Embedding a test case into the application to be tested when it is detected that the application to be tested is working;
[0042] S202: In the application to be tested, use a test case to capture and record input events of the application to be tested;
[0043] S203: In the application to be tested, use the test case to play back the input event, and monitor whether the application to be tested is abnormal.
[0044] In some embodiments, the application to be tested in the above embodiments is a Qt-based graphical interface application, and the operation events include events generated by the window system of the application to be tested or Qt itself for responding to user input operations.
[0045]...
no. 3 example
[0050] This embodiment provides a kind of tool of automatic testing to the software written based on Qt; The test of software graphical interface is a troublesome problem, because there are a lot of user's interactive operation wherein, the error that these operations cause can't be easy to repeat usually It needs multiple manual attempts to confirm, and it is not conducive to the automated testing of software. The present invention saves the records in a file by recording the events generated by the software window system, replays these event records when the software is run next time, and simultaneously tries to capture whether there is any abnormality and report it out, thus achieving the goal of GUI automatic testing Purpose.
[0051]Specifically, the present embodiment provides a C++ test module (library) as a test case, which can be embedded in an application program to record or replay a series of events. The event is generated by the window system or Qt itself to respo...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com