Application program testing device, application program testing program, and application program testing method

The application program testing device and method address execution uncertainties in multi-package programs by monitoring and displaying error statuses, ensuring reliable usability feedback for computer devices.

JP7832521B2Active Publication Date: 2026-03-18TOSHIBA INFORMATION SYSTEMS (JAPAN) CORPORATION
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2026-03-18

AI Technical Summary

Technical Problem

Existing application programs composed of multiple packages face errors due to terminal differences and resource constraints, making it uncertain if they can be correctly executed on computer devices until actual testing, which is inefficient and lacks comprehensive error detection.

Method used

An application program testing device and method that monitors the execution status of each package and method within an application program, detecting error occurrences and displaying availability status through colored icons indicating 'all available', 'some available', or 'all unavailable' using error detection and display control means.

Benefits of technology

Enables accurate determination of an application program's usability by a computer device, providing clear feedback on package and method availability, thus ensuring reliable execution and reducing uncertainty in testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007832521000002
    Figure 0007832521000002
  • Figure 0007832521000003
    Figure 0007832521000003
  • Figure 0007832521000004
    Figure 0007832521000004
Patent Text Reader

Abstract

To discriminate whether or not an application program constituted of a plurality of developed packages can be used by computer equipment.SOLUTION: The apparatus includes a storage unit 33 that stores the developed application program, an error occurrence state detection unit 31 that monitors an execution state when the application program is executed in the computer device and detects an error occurrence state, and a display control unit 32 that converts information on the error occurrence state detected by the error occurrence state detection unit into display information on whether the application program is usable by the computer device and causes a display unit to display the display information.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to an inspection device for application programs, an inspection program for application programs, and an inspection method for application programs.

Background Art

[0002] This invention is for inspecting whether a developed application program, which is a multi-platform library used in application program (hereinafter sometimes referred to as an app) development and is composed of a plurality of packages by, for example, Flutter, can be used.

[0003] In the developed program as described above, although the packages are available in the documentation, there are cases where an error occurs when the app is executed. This is due to differences between terminals and the inability to handle updates.

[0004] Therefore, it was not known whether the developed app could actually be used until it was tested on the computer device (actual machine).

[0005] Patent Document 1 states that since executing these program modules in a device with resource constraints leads to an erroneous result, in the known art, there is a need for a language subset validity inspection method and device that facilitate the correct execution of an application in a device with resource constraints.

[0006] Patent Document 1 discloses a language subset validation method as follows: The language subset validation method includes a step of validating a number of program modules that constitute a program. Each program module contains a number of byte codes defined as a first computer language, the first computer language being a hardware-dependent subset of a second computer language. The validation step includes indicating an error state for each item in the number of program modules that are not defined as a first computer language, indicating an error state for each item in the number of program modules that are not supported by the execution environment of the first computer language, and indicating an error state for each item in a number of program modules that are defined as a first computer language but are used in a manner that does not conform to the first computer language. The language subset validation device comprises at least one memory having program instructions and at least one processor configured to validate a number of program modules that together form a program using the program instructions.

[0007] The processor is further configured to use the program instructions to indicate an error state for each item in a number of program modules that are not defined as a first computer language, to indicate an error state for each item in a number of program modules that are not supported by the execution environment of the first computer language, and to indicate an error state for each item in a number of program modules that are defined as a first computer language but are used in a manner that does not conform to the first computer language.

[0008] Patent Document 2 discloses technology relating to automated computer system testing systems in general. The invention of Patent Document 2 provides an improved system for performing automated computer software testing, including regression testing. According to the present invention, the automated computer software testing system comprises an interface device that communicates with the computer system to be tested, a memory device that stores inputs to be supplied to the computer system to be tested via the interface device and, in response to these inputs, stores expected outputs that should come from the system to be tested via the interface device, and a comparison device that points to the difference between the expected output and the actual output, and the interface device has a device that samples the contents of the frame buffer of the system to be tested.

[0009] Furthermore, according to the invention of Patent Document 2, an automated computer software testing system is provided which comprises an interface device that communicates with a computer system to be tested, a memory device that stores inputs to be supplied to the system to be tested via the interface device and also stores expected inputs to be received from the system to be tested via the interface device in response to these inputs, and a comparison device for showing the difference between these expected outputs and the actual outputs. [Prior art documents] [Patent Documents]

[0010] [Patent Document 1] Special Publication No. 2003-515857 [Patent Document 2] Japanese Patent Application Publication No. 06-139101 [Overview of the project] [Problems that the invention aims to solve]

[0011] An objective of the embodiments of the present invention is to enable the determination of whether a developed application program, composed of multiple packages, is usable by a computer device. [Means for solving the problem]

[0012] An application program testing apparatus according to an embodiment of the present invention, Each package consists of multiple methods. An application program testing device for testing whether an application program developed by a computer device is usable by a computer device, comprising: a storage means for storing the developed application program; and a device for monitoring the execution status when the application program is executed on the computer device and detecting the occurrence of errors. In addition, when the application program is executed on the computer device for each of the multiple methods, the execution status is monitored and the error status for each method is detected. Error Occurrence Detection Means The system includes an error detection means that investigates whether the availability of each method constituting the package is "all methods are available," "some methods are available," or "all methods are unavailable," and Based on the error status information detected by this error status detection means, the display control means converts this information into display information indicating whether the developed application program is usable by the computer equipment and displays it on the display means. The display control means displays the package availability icon in a first color if the investigation results in "all methods available," displays the package availability icon in a second color if "some methods are available," and displays the package availability icon in a third color if "all methods are unavailable." It is characterized by having the following features.

[0013] A test program for an application program according to an embodiment of the present invention is: Each package consists of multiple methods. An application program testing device, which checks whether an application program developed from multiple packages can be used by a computer device, is configured to monitor the execution status and detect error occurrences when the developed application program, stored in a storage means provided in the application program testing device, is executed on the computer device. In addition, when the application program is executed on the computer device for each of the multiple methods, the execution status is monitored and the error status for each method is detected. Error Occurrence Detection Means Error detection means that investigates whether the availability of each method constituting the package is "all methods available", "some methods available", or "all methods unavailable". Based on the error status information detected by this error status detection means, a display control means converts the information into display information indicating whether the developed application program can be used by the computer equipment and displays it on the display means. The display control means displays the package availability icon in a first color if the investigation results in "all methods available," displays the package availability icon in a second color if "some methods are available," and displays the package availability icon in a third color if "all methods are unavailable." It is characterized by being designed to function as such.

[0014] The method for testing an application program according to an embodiment of the present invention is: Each package consists of multiple methods. An application program testing method for testing whether a developed application program, composed of multiple packages, is usable by a computer device, using an application program testing device, wherein the developed application program stored in a storage means provided in the application program testing device is executed on the computer device, and the execution status is monitored and error occurrences are detected. In addition, when the application program is executed on the computer device for each of the multiple methods, the execution status is monitored and the error status for each method is detected. Error Occurrence Status Detection Step The error detection step involves investigating whether the availability of each method constituting the package is "all methods are available," "some methods are available," or "all methods are unavailable." Based on the error status information detected in this error status detection step, a display control step converts this information into display information indicating whether the developed application program can be used by the computer equipment and displays it on the display means. The display control step is as follows: If the results of the investigation show that "all methods are available," the package availability icon is displayed in the first color; if "some methods are available," the package availability icon is displayed in the second color; and if "all methods are unavailable," the package availability icon is displayed in the third color. It is characterized by having the following features. [Brief explanation of the drawing]

[0015] [Figure 1] A block diagram of an inspection apparatus for an application program according to an embodiment of the present invention, configured by a computer. [Figure 2] Functional block diagram of an application program testing device according to an embodiment of the present invention. [Figure 3] A diagram showing the start screen of an application program testing device according to an embodiment of the present invention. [Figure 4] A flowchart illustrating the operation of an application program testing apparatus according to an embodiment of the present invention. [Figure 5] This figure shows an example of a screen displaying the inspection results for a package, as determined by an application program inspection device according to an embodiment of the present invention. [Figure 6] This figure shows an example of a screen displaying the inspection results for methods constituting a package, as determined by an application program inspection device according to an embodiment of the present invention.

Best Mode for Carrying Out the Invention

[0016] Referring to the accompanying drawings below, an inspection apparatus for an application program according to an embodiment of the present invention, a program for inspecting an application program according to an embodiment of the present invention, and an inspection method for an application program according to an embodiment of the present invention will be described. In each figure, the same reference numerals are assigned to the same components, and redundant descriptions are omitted.

[0017] As shown in FIG. 1, the inspection apparatus for an application program according to an embodiment of the present invention can be configured using a computer including a mobile phone, a smartphone, or a personal digital assistant. That is, the CPU 10 constitutes an electronic device evaluation system using programs and data in the main memory 11. An external memory interface 13, an input interface 14, a display interface 15, a network interface 16, and an input / output interface 17 are connected to the CPU 10 via a bus 12.

[0018] An external storage device 23 is connected to the external storage interface 13. The external storage device 23 stores programs and data necessary for the system to operate, which the CPU 10 can read and use from the main memory 11 as needed. For this reason, the external storage device 23 stores programs that implement the error occurrence status detection means 31 and the display control means 32 shown in Figure 2. An input device 24, such as a keyboard or touch panel, is connected to the input interface 14. A display device 25, which is a display means having a screen such as an LCD, is connected to the display interface 15. A network 26 is connected to the network interface 16, and signals obtained from the network 26 are taken in by the network interface 16 to the necessary parts such as the CPU 10 and the display interface 15. The CPU 10 can also send information and data to the necessary parties on the network 26 via the network interface 16. A camera 27 is connected to the input / output interface 17, and the CPU 10 can send on / off and other necessary control commands to the camera 27 via the input / output interface 17. Furthermore, image data obtained by the camera 27 can be stored in the external storage device 23 via the external storage interface 13 under the control of the CPU 10, and can be sent to the required party on the network 26 via the network interface 16.

[0019] The external storage device 23 is equipped with a storage means 33 in which the developed application program is stored. The error occurrence status detection means 31 and the display control means 32 provided in the external storage device 23 are realized by installing and starting a test program for the application program according to the embodiment of the present invention.

[0020] In the application program testing device of this embodiment, the error occurrence status detection means 31 monitors the execution status when the developed application program, which is composed of multiple packages, is executed on a computer device, and detects the occurrence of an error. In this case, the display control means 32 converts the information on the error occurrence status detected by the error occurrence status detection means into display information regarding whether the application program is usable by the computer device, and displays it on the display device 25, which is a display means.

[0021] The developed application program stored in the storage means 33 of the external storage device 23 consists of multiple packages, which in this case consist of eight types: "camera", "image_picker", "speech_to_text", "network_info_plus", "geolocator", "device_info_plus", "local_auth", and "flutter_local_notification".

[0022] The functions of the eight packages mentioned above are: "camera" for camera, "image_picker" for photo, "speech_to_text" for microphone, "network_info_plus" for network (Wi-Fi) information, "geolocator" for location information, "device_info_plus" for device information, "local_auth" for biometric information, and "flutter_local_notification" for notifications. These can be summarized in Table 1 below. [Table 1]

[0023] As described above, the developed application program is composed of multiple packages. Therefore, the error occurrence detection means 31 monitors the execution status when the application program is executed on the computer device for each of the multiple packages, and detects the error occurrence status for each package. In response, the display control means 32 converts the error occurrence status information for each package detected by the error occurrence detection means 31 into display information for each package regarding whether the application program is usable by the computer device, and displays it on the display device 25, which is the display means.

[0024] Furthermore, packages typically consist of multiple methods. The methods that make up the aforementioned package "camera" include methods such as "availableCameras", "addLitener", "buildPreview", "debugCheckisDisposed", "dispose", "getExposureOffsetStepSize", "getMaxExposureOffset", and "getMaxZoomLevel". Packages exemplified in Table 1, as well as those not shown here, are also composed of multiple methods.

[0025] As described above, the package consists of multiple methods, and the error occurrence detection means 31 monitors the execution status when the application program is executed on the computer device for each of the multiple methods, and detects the error occurrence status for each method. In response, the display control means 32 converts the error occurrence status information for each method detected by the error occurrence detection means 31 into display information for each method regarding whether the application program is usable by the computer device, and displays it on the display device 25, which is the display means.

[0026] The computer, which is an application program testing device according to the embodiment of the present invention shown in Figure 1, is a computer device that attempts to test whether the developed application is usable or not. Therefore, the developed application is installed in the storage means 33 of the external storage device 23. Processing starts when the installed application is launched and an instruction input is given to test whether the developed application is usable or not.

[0027] This start screen is shown in Figure 3. The start screen displays a button 40 labeled "check" at the top of the screen to start the process, as well as the packages that make up the developed application. In Figure 3, six of the eight packages that make up the developed application are displayed: "camera," "image_picker," "speech_to_text," "network_info_plus," "geolocator," and "device_info_plus." "local_auth" and "flutter_local_notification" are not displayed. The remaining two packages that are not displayed may also be configured to be displayed by operations such as using the scroll key.

[0028] In the application program testing device according to the embodiment of the present invention, the process corresponding to the flowchart shown in Figure 4 is executed by operating the "check" button 40 on the start screen, which is displayed on the start screen to start the process. This will be explained below.

[0029] This flowchart repeats the process from step S11 to step S22 for each package that makes up the application being inspected. Similarly, the process from step S12 to step S17 is repeated for each method that makes up the package being inspected. Following step S12, the function of the step's method is executed (S13) to detect whether an error occurred (S14). For example, whether an error occurred is detected by the error code generated by the method or the exit code generated when the method finishes (S14). If no errors occur and the process finishes, the process proceeds to step S15, where information indicating that the method being inspected is unavailable is set (S15). On the other hand, if an error is detected in step S14 and the process finishes, the process proceeds to step S16, where information indicating that the method being inspected is available is set (S16). If, when step S15 or step S16 is completed, the inspection has not been completed up to the number of methods constituting the package being inspected, the process returns to step S13 to continue detecting whether the next method is available or unavailable. If, when step S15 or step S16 is completed, the inspection has been completed up to the number of methods constituting the package being inspected, the process proceeds to step S18.

[0030] In step S18, the availability of each method constituting the package is investigated to determine whether "all methods are available," "some methods are available," or "all methods are unavailable" (S18). If the investigation reveals that "all methods are available," the package availability icon F is displayed in green (S19). If "some methods are available," the package availability icon F is displayed in yellow (S20). If "all methods are unavailable," the package availability icon F is displayed in red (S21).

[0031] Steps S19, S20, and S21 are processes for one package. Once processing for one package is complete, the process returns from step S22 to step S11, and the steps between S11 and S22 are repeated until all packages are displayed with a package availability icon F of the color corresponding to the inspection result. Once this repetition is complete, the process is finished.

[0032] Figure 5 shows that for six of the eight packages that make up the developed application—"camera," "image_picker," "speech_to_text," "network_info_plus," "geolocator," and "device_info_plus"—package availability icons F of the corresponding colors for each package are displayed.

[0033] For the "camera" package, the package availability icon F is displayed in yellow to indicate that "partially available packages" are available. For the "image_picker" and "speech_to_text" packages, the package availability icon F is displayed in green to indicate that "packages are available" are available. For the "network_info_plus", "geolocator", and "device_info_plus" packages, the package availability icon F is displayed in red to indicate that "packages are unavailable" are not available.

[0034] In this embodiment, for packages where "partially available," the display control means 32 can be configured to display the availability / unavailability status of each method on the display device 25, which is the display means, based on the percentage of error occurrences for each method detected by the error occurrence status detection means 31.

[0035] For example, when a process corresponding to the flowchart shown in Figure 4 is performed, or when a display like the one shown in Figure 5 is displayed, and a command is entered to request the availability status of each method, the "available icon" PF will be displayed in green to indicate availability, or "available" No You may also display the "possible icon" (PF) in red to indicate that it is unavailable.

[0036] Figure 6 shows that for the methods that make up the package "camera", the "available icon" PF for each method, "availableCameras", "addLitener", "buildPreview", "dispose", and "getMaxZoomLevel", is displayed in green to indicate availability, while the "available icon" PF for each method, "debugCheckisDisposed", "getExposureOffsetStepSize", and "getMaxExposureOffset", is displayed in red to indicate unavailability.

[0037] In the example in Figure 6, the availability status of each method is displayed for packages where "partial availability" is indicated. However, it is also possible to display the availability status for packages where "package is fully available" or for packages where "package is unavailable." In this case, the availability status of all methods will be indicated, which is useful if there is a purpose such as checking the names of available and unavailable methods.

[0038] Thus, according to this embodiment of the present invention, it is possible to determine whether or not the developed application program, which is composed of multiple packages, can be used by the computer device. [Explanation of symbols]

[0039] 10 CPU 11 Main memory 12 buses 13 External storage interface 14 Input Interfaces 15 Display Interface 16 Network Interfaces 17 Input / Output Interfaces 23 External storage device 24 Input devices 25 Display device 26 Network 27 Cameras 31 Error Occurrence Detection Means 32 Display control means 33 Preservation means 40 buttons F Package Available Icon PF "Available Icon"

Claims

1. An application program testing device for testing whether an application program developed by a plurality of packages, each package comprising a plurality of methods, can be used by a computer device, A storage means on which the developed application program is stored, Error detection means for detecting errors when the application program is executed on the computer device, and for detecting errors when the application program is executed on the computer device for each of the multiple methods, the error detection means investigates whether the availability of each method constituting the package is "all methods are available", "some methods are available", or "all methods are unavailable", A display control means that, based on the error status information detected by the error status detection means, converts the information into display information regarding whether the developed application program can be used by the computer equipment and displays it on a display means, wherein, as a result of the investigation, if "all methods are available", the package availability icon is displayed in a first color; if "some methods are available", the package availability icon is displayed in a second color; and if "all methods are unavailable", the package availability icon is displayed in a third color. An application program testing device characterized by comprising the following:

2. The application program testing apparatus according to Claim 1, characterized in that the display control means displays the "available icon" for each method in a fourth color to indicate availability, and displays the "unavailable icon" for each method in a fifth color to indicate unavailability, based on the results of the investigation.

3. The application program testing apparatus according to claim 2, characterized in that the display control means displays the availability / unavailability status for each method on the display means based on the percentage of error occurrences for each method detected by the error occurrence status detection means.

4. A computer comprising an application program testing device that tests whether an application program developed by a plurality of packages, each consisting of a plurality of methods, can be used by a computer device, Error occurrence detection means for detecting errors when the developed application program stored in the storage means provided in the application program testing device is executed on the computer equipment, and for detecting errors when the application program is executed on the computer equipment for each of the multiple methods, wherein the error occurrence detection means investigates whether the availability of each method constituting the package is "all methods are available", "some methods are available", or "all methods are unavailable". A display control means that, based on the error status information detected by the error status detection means, converts the information into display information regarding whether the developed application program can be used by the computer equipment and displays it on a display means, wherein, as a result of the investigation, if "all methods are available", the package availability icon is displayed in a first color; if "some methods are available", the package availability icon is displayed in a second color; and if "all methods are unavailable", the package availability icon is displayed in a third color. A program for testing application programs, characterized by its ability to function as such.

5. The application program testing program according to claim 4, characterized in that the computer functions as a display control means to display the "available icon" for each method in a fourth color to indicate availability, and to display the "unavailable icon" for each method in a fifth color to indicate unavailability, based on the results of the investigation.

6. The computer is used as the display control means, The application program for testing an application program according to claim 5, characterized in that it is configured to display the availability status of each method on the display means based on the percentage of errors detected by the computer, which is the error occurrence status detection means.

7. An application program testing method for testing whether an application program developed by a plurality of packages, each consisting of a plurality of methods, can be used by a computer device, using an application program testing device, An error occurrence detection step that monitors the execution status and detects error occurrences when the developed application program stored in the storage means provided in the application program testing device is executed on the computer equipment, and also monitors the execution status and detects error occurrences for each of the multiple methods when the application program is executed on the computer equipment, wherein the error occurrence detection step investigates whether the availability result for each method constituting the package is "all methods are available", "some methods are available", or "all methods are unavailable", A display control step which, based on the error status information detected by this error status detection step, converts it into display information regarding whether the developed application program can be used by the computer equipment and displays it on a display means, wherein if the investigation results in "all methods are available", the package availability icon is displayed in a first color, if "some methods are available", the package availability icon is displayed in a second color, and if "all methods are unavailable", the package availability icon is displayed in a third color. A method for testing an application program, characterized by comprising the following:

8. The method for testing an application program according to claim 7, characterized in that the display control step displays the "available icon" for each method in a fourth color to indicate availability and the "unavailable icon" for each method in a fifth color to indicate unavailability, based on the results of the investigation.

9. The method for testing an application program according to claim 8, characterized in that the display control step displays the availability or unavailability status of each method on the display means based on the percentage of error occurrences for each method detected in the error occurrence status detection step.

Citation Information

Patent Citations

  • Automatic check system and method for computer software

    JP1994139101A

  • Language Subset Validation

    JP2003515857A

  • Device for supporting software development, method of supporting software development, and program for supporting software development

    JP2009134535A