CN112540921B - Detection method of application software and computing device - Google Patents

Detection method of application software and computing device Download PDF

Info

Publication number
CN112540921B
CN112540921B CN202011443853.4A CN202011443853A CN112540921B CN 112540921 B CN112540921 B CN 112540921B CN 202011443853 A CN202011443853 A CN 202011443853A CN 112540921 B CN112540921 B CN 112540921B
Authority
CN
China
Prior art keywords
application software
application
state
software
tray
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
Application number
CN202011443853.4A
Other languages
Chinese (zh)
Other versions
CN112540921A (en
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.)
Uniontech Software Technology Co Ltd
Original Assignee
Uniontech Software Technology Co 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 Uniontech Software Technology Co Ltd filed Critical Uniontech Software Technology Co Ltd
Priority to CN202011443853.4A priority Critical patent/CN112540921B/en
Publication of CN112540921A publication Critical patent/CN112540921A/en
Application granted granted Critical
Publication of CN112540921B publication Critical patent/CN112540921B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • G06F11/3072Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Physics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a detection method of application software, which is suitable for being executed in an operating system of a computing device, and comprises the following steps: installing the application software and recording the installation state of the application software; if the application software is successfully installed, the application software is operated, and an application window is created; acquiring the created application window attribute; determining the running state of the application software according to the created application window attribute and recording; unloading the application software and recording the unloading state of the application software; and storing the application software installation state, the application software running state and the application software uninstalling state as detection results of the application software. The invention also discloses corresponding computing equipment.

Description

Detection method of application software and computing device
The present invention is a divisional application of patent application 2020110463607 of invention applied in 9/29/2020.
Technical Field
The present invention relates to the field of operating systems, and in particular, to an execution method of application software and a computing device.
Background
Application software (Application) is a collection of various programming languages that can be used by users, as well as applications that are programmed in various programming languages. The application software can meet the application requirements of different fields and different problems, so that the application software is more and more widely used.
At present, whether application software of an application store in an operating system can be installed or not and whether the application software can realize a basic function are mainly verified in a manual mode, but because the number of the application software in the application store is large, the workload of manually traversing and detecting all the application software of the application store is large, the time consumption is long, and the condition of missed detection is easy to occur in manual detection. Therefore, the efficiency and accuracy of manually detecting the performance of application software in an application store are low at present.
For this reason, an automatic application software detection method is needed to solve the problems in the above technical solutions.
Disclosure of Invention
To this end, the present invention provides a method of executing application software in an effort to solve or at least alleviate the above-identified problems.
According to one aspect of the present invention, there is provided a method of detecting application software adapted to be executed in an operating system of a computing device, the method comprising:
installing the application software and recording the installation state of the application software;
if the application software is successfully installed, the application software is operated, and an application window is created;
acquiring the created application window attribute;
determining the running state of the application software according to the created application window attribute and recording;
unloading the application software and recording the unloading state of the application software;
and storing the application software installation state, the application software running state and the application software uninstalling state as detection results of the application software.
Optionally, the application software installation state, the application software running state and the application software uninstalling state respectively include: success or failure.
Optionally, the step of installing the application software and recording the installation state of the application software includes:
acquiring the state of an application software package corresponding to the downloaded application software in the operating system, and judging whether the application software is installed or not based on the state of the application software package;
if the application software is not installed, installing the application software through an installation command of a message bus system, and recording the installation state of the application software.
Optionally, the method further comprises:
if the application software is installed, judging whether the application software is default application software, wherein the default application software is the application software installed in an operating system of the computing equipment when the computing equipment leaves a factory;
if the application software is default application software, running the application software and creating an application window;
and if the application software is not the default application software, uninstalling the application software, installing the application software through an installation command of a message bus system, and recording the installation state of the application software.
Optionally, the method further comprises:
before acquiring the application window attribute, judging whether the application window is successfully opened or not in a preset time threshold, and if yes, acquiring the application window attribute which is currently created.
Optionally, before determining the running state of the application software according to the created application window attribute and recording, the method further comprises:
acquiring created application window attributes;
and determining the number of the opened application windows based on the created application window attribute.
Optionally, the step of determining the running state of the application software according to the created application window attribute includes:
acquiring the number of the opening of the application window from the currently created application window attribute;
judging whether the number of the opening number of the application window which is currently created is larger than the number of the opening number of the application window which is already created;
if the number of the opening number of the application window which is currently created is larger than the number of the opening number of the application window which is already created, the running state of the application software is successful, and if not, the running state of the application software is failed.
Optionally, during the running of the application software, the application software is placed in a tray, and the tray is used for displaying the started application software icon.
Optionally, the method further comprises:
and when the opening failure of the application window exceeds the preset time threshold, acquiring the latest displayed application software attribute in the tray through an acquisition command of the message bus system, and determining and recording the running state of the application software based on the latest displayed application software attribute in the tray.
Optionally, the determining the running state of the application software based on the application software attribute newly displayed in the tray includes:
determining an opening number of the application software which is newly displayed in the tray based on the application software attribute which is newly displayed in the tray;
acquiring the attribute of the application software existing in the tray through the acquisition command of the message bus system, and determining the opening number of the application software existing in the tray through the attribute of the application software existing in the tray;
judging whether the opening number of the application software which is newly displayed in the tray is larger than the opening number of the application software which exists in the tray, if so, judging that the running state of the application software is successful, and if not, judging that the running state of the application software is failed.
Optionally, the method further comprises:
closing the running application software;
and if the closing of the application software fails, closing the process where the application software is located.
Optionally, the method further comprises:
judging whether the application software successfully installed can be uninstalled, if so, executing the step of uninstalling the application software, recording the uninstalled state of the application software, and if not, recording the application software as uninstalled software.
Optionally, the method further comprises:
and if the application software fails to be installed, executing the step of uninstalling the application software and recording the uninstalling state of the application software.
Optionally, the method further comprises:
and acquiring the hardware information of the computing equipment, and associating the detection result of the application software with the hardware information of the computing equipment.
Optionally, the method further comprises:
detecting the application software in the application software list one by one, and associating the detection result of each application software in the application software list with the hardware information of the computing device.
Optionally, the method further comprises:
obtaining a list of application software from an application server communicatively coupled to the computing device;
and selecting application software from the application software list and downloading the selected application software from the application server.
According to one aspect of the present invention, there is provided a computing device comprising: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be adapted to be executed by the at least one processor, the program instructions comprising instructions for performing the method of processing page content as described above.
According to one aspect of the present invention, there is provided a readable storage medium storing program instructions which, when read and executed by a computing device, cause the computing device to perform a method as described above.
According to the technical scheme of the invention, the detection method of the application software is provided, and the method is used for automatically detecting whether the application software of an application store in an operating system can be normally installed, whether the basic function can be realized, whether the application software can be normally unloaded and the like. The method specifically comprises the following steps: installing the application software, recording the installation state of the application software, if the application software is successfully installed, operating the application software, creating an application window, acquiring the attribute of the created application window, determining the operation state of the application software according to the attribute of the created application window, recording, uninstalling the application software, recording the uninstalling state of the application software, and storing the installation state of the application software, the operation state of the application software and the uninstalling state of the application software as detection results of the application software.
The method realizes the automatic detection of whether the application software of the application store in the operating system can be normally installed, whether the basic function can be realized, whether the application software can be normally unloaded and the like, stores the detection results of all stages into the computing equipment, and can determine the performance of all the application software in the application store by only checking the detection results by a detector. Therefore, the method for automatically testing the application software can greatly reduce the detection time and improve the detection efficiency. The manual detection is easy to be influenced by the state, experience and the like of the detection personnel, and the situations of misjudgment and missing detection are easy to occur.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which set forth the various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to fall within the scope of the claimed subject matter. The above, as well as additional objects, features, and advantages of the present disclosure will become more apparent from the following detailed description when read in conjunction with the accompanying drawings. Like reference numerals generally refer to like parts or elements throughout the present disclosure.
FIG. 1 shows a schematic diagram of a computing device 100 according to one embodiment of the invention;
FIG. 2 illustrates an interface presentation effect diagram of test results 200 of application software according to one embodiment of the invention;
FIG. 3 illustrates a flow chart of a method 300 of testing application software according to one embodiment of the invention;
FIG. 4 shows a schematic diagram of a tray 400 according to one embodiment of the invention; and
FIG. 5 illustrates a complete flow chart of a method 500 for detecting application software according to one embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The unified trust operating system, also called UOS operating system, can only install application software in the application store, and therefore the UOS operating system needs to detect whether the application software in the application store can be installed or whether the application software can realize basic functions.
At present, whether application software of an application store in a UOS operating system can be installed or not and whether the application software can realize basic functions are mainly verified in a manual mode, but because the number of the application software in the application store is large, the workload of manually traversing and detecting all the application software of the application store is large, the time consumption is long, and the condition that the manual detection is easily influenced by the state, experience and the like of a detection person is easy to occur, and misjudgment and missing detection are easy to occur. Therefore, the efficiency and accuracy of manually detecting the performance of application software in an application store are low at present.
Therefore, the invention provides a detection method of application software, by which the performance of the application software is automatically detected, and the detection process does not need manual participation, in particular: the method comprises the steps of obtaining an application software list from an application server in communication connection with a computing device, selecting application software from the application software list, downloading the selected application software from the application server, installing the downloaded application software, recording the installation state of the application software, if the application software is successfully installed, operating the application software, creating an application window, obtaining the attribute of the application window which is currently created, determining the operation state of the application software through the attribute of the application window which is currently created, recording the operation state of the application software, unloading the application software, recording the unloading state of the application software, and finally taking the installation state, the operation state and the unloading state of the application software as detection results of the application software and storing the detection results of the application software into the computing device, wherein the installation state, the operation state and the unloading state comprise success and failure, the success is represented by using passed, the failure is represented by using failed, and therefore a detector can judge whether the application software can be normally installed, operated and unloaded according to the detection results. By the method for automatically detecting the application software, the detection time can be greatly reduced, the detection efficiency is improved, the detection accuracy can be improved without being influenced by the state, experience and the like of detection personnel, and the condition of missing detection can be effectively avoided.
Of course, the detection method of the application software of the present invention is also applied to other existing operating systems, such as Windows operating system, linux operating system, etc.
The above-mentioned detection method is merely a method for detecting the performance of one application software, and if there are multiple application software in the application software list, the above-mentioned method is executed multiple times, and multiple detection results are obtained. In the invention, the detection results of all the application software are stored in a statistical table, fig. 2 is a schematic diagram of the statistical table of the detection results of the application software, fig. 2 shows the detection results of part of the application software in an application store, and the meanings of fields in the table are shown in table 1:
TABLE 1
It should be noted that exec_cmd is an execution command, and a user can start corresponding application software by directly inputting the execution command into the operating system terminal. Desktop is a desktop path, which can be further understood as a path for displaying application icons on a desktop.
The inspector can determine the name of the application software according to the name field of the inspection result table, and determine the installation state, the running state and the uninstalled state of the corresponding application software through the instruments_status and the open_ status, remove _status. For example, as shown in fig. 2, the name corresponding to number2 is org.srhub.gitso, the status corresponding to the application software is passed, which indicates that the application software org.srhub.gitso is successfully installed, the open_status of the application software is passed, which indicates that the application software org.srhub.gitso is successfully operated, and the remove_status of the application software is passed, which indicates that the application software org.srhub.gitso is successfully unloaded, so that a inspector can determine that the application software org.srhub.gitso can be normally installed, operated and unloaded based on the status corresponding to the instruments_status and open_ status, remove _status in the contact result table, that is, a inspector can determine that the application software org.srhub.gitso can be normally used by inspecting the data of the result statistics table, and can normally Install the application software in the application store for users to download.
The detection method of application software provided by the invention is executed in an operating system of a computing device, and fig. 1 shows a block diagram of a computing device 100 according to one embodiment of the invention. A block diagram of a computing device 100 is shown in fig. 1. In a basic configuration 102, the computing device 100 typically includes a system memory 106 and one or more processors 104. The memory bus 108 may be used for communication between the processor 104 and the system memory 106.
Depending on the desired configuration, the processor 104 may be any type of processing including, but not limited to: a microprocessor (μp), a microcontroller (μc), a digital information processor (DSP), or any combination thereof. The processor 104 may include one or more levels of caches, such as a first level cache 110 and a second level cache 112, a processor core 114, and registers 116. The example processor core 114 may include an Arithmetic Logic Unit (ALU), a Floating Point Unit (FPU), a digital signal processing core (DSP core), or any combination thereof. The example memory controller 118 may be used with the processor 104, or in some implementations, the memory controller 118 may be an internal part of the processor 104.
Depending on the desired configuration, system memory 106 may be any type of memory including, but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. The system memory 106 may include an operating system 120, one or more applications 122, and program data 124. In some implementations, the application 122 may be arranged to operate on an operating system with program data 124. The program data 124 comprises instructions, in the computing device 100 according to the invention the program data 124 contains instructions for executing the detection method 300 with application software.
Computing device 100 also includes storage device 132, storage device 132 including removable storage 136 and non-removable storage 138, both removable storage 136 and non-removable storage 138 being connected to storage interface bus 134.
Computing device 100 may also include an interface bus 140 that facilitates communication from various interface devices (e.g., output devices 142, peripheral interfaces 144, and communication devices 146) to basic configuration 102 via bus/interface controller 130. The example output device 142 includes a graphics processing unit 148 and an audio processing unit 150. They may be configured to facilitate communication with various external devices such as a display or speakers via one or more a/V ports 152. Example peripheral interfaces 144 may include a serial interface controller 154 and a parallel interface controller 156, which may be configured to facilitate communication with external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.) via one or more I/O ports 158. An example communication device 146 may include a network controller 160, which may be arranged to facilitate communication with one or more other computing devices 162 via one or more communication ports 164 over a network communication link.
The network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, and may include any information delivery media in a modulated data signal, such as a carrier wave or other transport mechanism. A "modulated data signal" may be a signal that has one or more of its data set or changed in such a manner as to encode information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or special purpose network, and wireless media such as acoustic, radio Frequency (RF), microwave, infrared (IR) or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
Computing device 100 may be implemented as a server, such as a file server, a database server, an application server, a WEB server, etc., as part of a small-sized portable (or mobile) electronic device, such as a cellular telephone, a Personal Digital Assistant (PDA), a personal media player device, a wireless WEB-watch device, a personal headset device, an application-specific device, or a hybrid device that may include any of the above functions. Computing device 100 may also be implemented as a personal computer including desktop and notebook computer configurations. In some embodiments, the operating system 120 of the computing device 100 is configured to execute a method 300 of detection of application software in accordance with the present invention.
FIG. 3 illustrates a flow chart of a method 300 of detection of application software according to one embodiment of the invention. The method 300 is suitable for execution in the operating system 120 of a computing device 100 (e.g., the computing device 100 described previously).
It should be noted that, the method for detecting application software provided by the present invention is a complete method for detecting one application software, if there are multiple application software to be detected, the application software is detected one by using the method for detecting application software of the present invention, the detection result of each application software is stored in a statistics table, and a statistics table is stored in the system memory 106 of the computing device 100.
Fig. 3 is a flowchart of the detection method 300 of the application software, and as shown in fig. 3, the detection method 300 of the application software starts in step S310. Before step S310 is performed, it is necessary to obtain a list of application software from an application server communicatively connected to the computing device 100. The application server stores therein all application software of the UOS application store and a list of application software including all application software data (e.g., names) of the UOS application store, and the list of application software can be obtained using the request command of python.
Next, application software is selected from the application software list and the selected application software is downloaded from the application server. Specifically, one application software is selected from the application software list, an operating system (such as a UOS operating system) sends an HTTP request to an application server, the parameter in the HTTP request is related data of the selected application software, such as a name, the application server receives and responds to the HTTP request, a uniform resource locator HTTPs:// store.chinauos.com/api/public/packages for storing all application software of an operating system application store is sent to the operating system through an HTTP response, and the operating system downloads the selected one application software through the uniform resource locator.
Step S310 is executed after downloading the selected one of the application software. In step S310, the application software is installed, and the installation state of the application software is recorded. Specifically, first, the state of an application software package corresponding to an already installed application software in an operating system is checked through a dpkg-l command of a software package dpkg in a software package management system Debain, and whether the downloaded application software is already installed in the operating system is judged based on the application software package state. For example, if the application package status is ii, it indicates that the application has been installed in the current operating system and no error has occurred, if iu indicates that the application has been installed in the current operating system but is not properly configured, and if rc indicates that the application has been deleted in the current operating system but the configuration file has not been cleaned.
If the downloaded application software is not installed in the operating system, the application software is installed by calling a message bus Dbus lastest-j install command, and the installation state is recorded. As shown in fig. 2, the installation state instrument_status includes: if the installation fails, step S350 is performed.
If the downloaded application software is already installed in the operating system, calling ls/usr/share/applications to check the suffix of the application software package, if the suffix of the application software package is a desktop, judging that the application software is default application software, and if not, judging that the application software is not default software. The default application software is application software installed in an operating system of the computing device when the computing device leaves the factory. If the application is not the default application, the application is directly uninstalled and step S310 is performed to reinstall the application, thereby detecting the application performance.
When the application software is default application software or when the application software is not installed in an operating system and the installation state of the application software is successful pass, acquiring the created application window attribute through a Wnck software package, and determining the number a of opening of the created application window based on the created application window attribute, wherein the application window attribute comprises an application window length (namely the number of opening of the application window), a window handle (namely a unique identifier of the window) and the like.
Subsequently, in step S320, application software is run and an application window is created, and in step S330, the created application window attribute is acquired. In one embodiment of the present invention, after running the application software, whether the application window is successfully opened is determined within a preset time threshold, for example, within 30s, if yes, the currently created application window attribute is obtained through the Wnck software package, and similarly, the application window attribute includes an application window length (i.e. the number of opened application windows), a window handle (i.e. a unique identifier of a window), and the like.
Next, in step S340, the running state of the application software is determined according to the created application window attribute and recorded. In one embodiment of the present invention, the Wnck software package obtains the number b of the opened application windows from the attribute of the currently created application window, and determines whether the number b of the opened application windows is greater than the number a of the opened application windows, that is, whether b > a is true, if b > a indicates that the application windows are successfully opened, the running state of the application software is successfully passed, and if b < a indicates that the application windows are failed to be opened, the running state of the application software is failed.
Notably, the operating system 120 will place the application software in a tray during the running of the application software. Fig. 4 is a schematic diagram of a tray, as shown in fig. 4, where 410 in fig. 4 is a tray, and the tray is used to display the activated application icon, that is, the icon displayed in the tray is the activated application icon.
In one embodiment of the invention, after running the application software, if the application window is not successfully opened within a preset time threshold, for example, within 30s, the latest displayed application software attribute in the tray is obtained through the Get method of the message bus system Dbus, wherein the application software attribute in the tray comprises an opening number of the application software, the opening number c of the latest displayed application software in the tray is determined based on the latest displayed application software attribute in the tray, then the already existing application software attribute in the tray is obtained through the Get method of the message bus system Dbus, and the opening number d of the application software already existing in the tray is determined through the already existing application software attribute in the tray, so that whether the opening number of the application software newly displayed in the tray is larger than the opening number of the application software existing in the tray is judged, namely, whether the opening number c > d is met is judged, if the running state of the application software is successful passed, and if the running state of the application software is failed.
And then closing the running application software through a close () function, and if the application software fails to be closed, closing the process where the application software is located based on the pid number of the process so as to close the running application software.
In the case where the downloaded application software is not installed in the operating system, when the installation state of the application software is failed, the application software is not run in this case, but the installation package of the application software whose installation has failed is already installed in the system, so if the installation of the application software fails, the application software is uninstalled and the uninstalled state of the application software is recorded in step S350. The last-tools test-j remove command of the message bus system dbus is executed through the getstatus () function to uninstall the application software that fails to install, or the application software that is already installed in the operating system 120 but is not the default application software, and returns a function value, if the function return value is 0, the uninstallation is successful, and if the function return value is not 0, the uninstallation is failed, where the uninstallation success state is passed, and the uninstallation failure state is failed.
Finally, in step S360, the application installation state, the application running state, and the application uninstalling state are stored as the detection result of the application. In one embodiment of the present invention, the installed state, the running state, and the uninstalled state of all the application software detected by the application software detection method of the present invention are stored in one statistics table, as shown in fig. 2, and the statistics table is saved to the system memory 106 of the computing device 100, such as a disk or a memory of the computing device.
Based on the detection method of the application software, the performance of automatically detecting the application software from manual detection is realized, the detection time can be greatly shortened, the detection efficiency is improved, the detection accuracy can be improved without being influenced by the state, experience and the like of detection personnel, and the condition of missing detection can be effectively avoided.
Fig. 5 is a complete flowchart of an application software detection method 500, and as shown in fig. 5, the application software detection method 500 begins in step S501.
In step S501, an application software list is obtained from an application server communicatively connected to a computing device;
in step S502, selecting application software from the application software list and downloading the selected application software from the application server;
in step S503, the software package state of the application software selected in step S502 in the operating system is obtained, and whether the application software is installed is determined based on the application software package state;
if the application software is not installed, installing the application software through an installation command of the message bus system in step S504, recording an installation state of the application software, executing step S507 if the installation is successful, and executing step S517 if the installation is failed;
if the application software is installed, in step S505, it is determined whether the application software is a default application software, and if the application software is a default application software, step S507 is executed;
if the application is not the default application, the application is uninstalled in step S506 and step S504 is performed.
Then in step S507, running application software to create an application window;
in step S508, whether the application window is successfully opened is determined within a preset time threshold, if so, step S509 is executed, and if not, step S512 is executed;
acquiring the created application window attribute in step S509;
determining an opening number of the created application window in step S510 based on the created application window attribute;
in step S511, it is determined whether the number of openings of the created application windows is greater than the number of openings of the created application windows, if the number of openings of the created application windows is greater than the number of openings of the created application windows, the running state of the application software is successful, if not, the running state of the application software is failed, and the running state of the application software is recorded;
when the application window fails to open when the preset time threshold is exceeded, in step S512, the latest displayed application software attribute in the tray is obtained through the obtaining command of the message bus system;
in step S513, the opening number of the application software newly displayed in the tray is determined based on the application software attribute newly displayed in the tray;
in step S514, the application software attribute already existing in the tray is acquired through the acquisition command of the message bus system, and the opening number of the application software already existing in the tray is determined through the application software attribute already existing in the tray;
in step S515, it is determined whether the opening number of the application software newly displayed in the tray is greater than the opening number of the application software existing in the tray, if so, the running state of the application software is successful, if not, the running state of the application software is failed, and the running state of the application software is recorded;
in step S516, the running application software is closed, and if the application software fails to be closed, the process where the application software is located is closed;
in step S517, it is determined whether the application software installed successfully or failed is uninstallable, if so, the application software is uninstalled, and if not, the uninstalled state of the application software is recorded, and the application software is recorded as uninstalled software;
in step S518, the application software installation state, the running state, and the uninstalled state are stored as the detection result of the application software.
Fig. 5 is a complete flowchart of a detection method of only one application software, but the application store includes a plurality of application software, and the application software list lists all application software in the application store, so that the application software in the application software list needs to be detected one by one, the detection result of each application software in the application software list is stored in the statistics table in fig. 2, and then the statistics table is stored in the system memory 106 of the computing device 100, so that a detection person can check the detection result, and the detection person can determine the performance of each application software based on the detection result, thereby realizing the conversion from manual to automatic detection of the performance of the application software, greatly reducing the detection time, improving the detection efficiency, improving the detection accuracy without being influenced by the state, experience and the like of the detection person, and effectively avoiding the condition of missing detection.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions of the methods and apparatus of the present invention, may take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard drives, U-drives, floppy diskettes, CD-ROMs, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to execute the detection method of the application software of the invention in accordance with instructions in said program code stored in the memory.
By way of example, and not limitation, readable media comprise readable storage media and communication media. The readable storage medium stores information such as computer readable instructions, data structures, program modules, or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of readable media.
In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with examples of the invention. The required structure for a construction of such a system is apparent from the description above. In addition, the present invention is not directed to any particular programming language. It will be appreciated that the teachings of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment, or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into a plurality of sub-modules.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component and, furthermore, they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
Furthermore, some of the embodiments are described herein as methods or combinations of method elements that may be implemented by a processor of a computer system or by other means of performing the functions. Thus, a processor with the necessary instructions for implementing the described method or method element forms a means for implementing the method or method element. Furthermore, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is for carrying out the functions performed by the elements for carrying out the objects of the invention.
As used herein, unless otherwise specified the use of the ordinal terms "first," "second," "third," etc., to describe a general object merely denote different instances of like objects, and are not intended to imply that the objects so described must have a given order, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of the above description, will appreciate that other embodiments are contemplated within the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The disclosure of the present invention is intended to be illustrative, but not limiting, of the scope of the invention, which is defined by the appended claims.

Claims (12)

1. A method of detecting application software adapted to be executed in an operating system of a computing device, the method comprising:
acquiring the state of an application software package corresponding to the downloaded application software in the operating system, and judging whether the application software is installed or not based on the state of the application software package;
if the application software is not installed, installing the application software through an installation command of a message bus system, and recording the installation state of the application software;
if the application software is installed, judging whether the application software is default application software, wherein the default application software is the application software installed in an operating system of the computing equipment when the computing equipment leaves a factory;
if the application software is default application software, running the application software and creating an application window, if the application software is not default application software, uninstalling the application software, installing the application software through an installation command of a message bus system, and recording the installation state of the application software;
if the application software is successfully installed, the application software is operated, and an application window is created;
judging whether the application window is successfully opened or not within a preset time threshold, if so, acquiring the currently created application window attribute;
determining the number of the opened application windows based on the created application window attribute;
determining the running state of the application software according to the created application window attribute and recording;
unloading the application software and recording the unloading state of the application software;
storing the application software installation state, the application software running state and the application software uninstalling state as detection results of the application software;
the step of determining the running state of the application software according to the created application window attribute comprises the following steps:
acquiring the number of the opening of the application window from the currently created application window attribute;
judging whether the number of the opening number of the application window which is currently created is larger than the number of the opening number of the application window which is already created;
if the number of the opening number of the application window which is currently created is larger than the number of the opening number of the application window which is already created, the running state of the application software is successful, and if not, the running state of the application software is failed;
the method further comprises the steps of: and in the process of running the application software, placing the application software in a tray, wherein the tray is used for displaying the started application software icons.
2. The method of claim 1, wherein the application installation state, the application running state, and the application uninstalled state each comprise: success or failure.
3. The method of claim 1, further comprising:
and when the opening failure of the application window exceeds the preset time threshold, acquiring the latest displayed application software attribute in the tray through an acquisition command of the message bus system, and determining and recording the running state of the application software based on the latest displayed application software attribute in the tray.
4. The method of claim 3, wherein the determining the running state of the application software based on the newly displayed application software attributes in the tray comprises:
determining an opening number of the application software which is newly displayed in the tray based on the application software attribute which is newly displayed in the tray;
acquiring the attribute of the application software existing in the tray through the acquisition command of the message bus system, and determining the opening number of the application software existing in the tray through the attribute of the application software existing in the tray;
judging whether the opening number of the application software which is newly displayed in the tray is larger than the opening number of the application software which exists in the tray, if so, judging that the running state of the application software is successful, and if not, judging that the running state of the application software is failed.
5. The method of claim 1, further comprising:
closing the running application software;
and if the closing of the application software fails, closing the process where the application software is located.
6. The method of claim 1, further comprising:
judging whether the application software successfully installed can be uninstalled, if so, executing the step of uninstalling the application software, recording the uninstalled state of the application software, and if not, recording the application software as uninstalled software.
7. The method of claim 1, further comprising:
and if the application software fails to be installed, executing the step of uninstalling the application software and recording the uninstalling state of the application software.
8. The method of claim 1, further comprising:
and acquiring the hardware information of the computing equipment, and associating the detection result of the application software with the hardware information of the computing equipment.
9. The method of claim 8, further comprising:
detecting the application software in the application software list one by one, and associating the detection result of each application software in the application software list with the hardware information of the computing device.
10. The method of claim 1, further comprising:
obtaining a list of application software from an application server communicatively coupled to the computing device;
and selecting application software from the application software list and downloading the selected application software from the application server.
11. A computing device, comprising:
at least one processor; and
a memory storing program instructions, wherein the program instructions are configured to be adapted to be executed by the at least one processor, the program instructions comprising instructions for performing the method of any of claims 1-10.
12. A readable storage medium storing program instructions which, when read and executed by a computing device, cause the computing device to perform the method of any of claims 1-10.
CN202011443853.4A 2020-09-29 2020-09-29 Detection method of application software and computing device Active CN112540921B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011443853.4A CN112540921B (en) 2020-09-29 2020-09-29 Detection method of application software and computing device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011046360.7A CN111897741B (en) 2020-09-29 2020-09-29 Application software detection method and computing device
CN202011443853.4A CN112540921B (en) 2020-09-29 2020-09-29 Detection method of application software and computing device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202011046360.7A Division CN111897741B (en) 2020-09-29 2020-09-29 Application software detection method and computing device

Publications (2)

Publication Number Publication Date
CN112540921A CN112540921A (en) 2021-03-23
CN112540921B true CN112540921B (en) 2023-11-17

Family

ID=73224008

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202011443853.4A Active CN112540921B (en) 2020-09-29 2020-09-29 Detection method of application software and computing device
CN202011046360.7A Active CN111897741B (en) 2020-09-29 2020-09-29 Application software detection method and computing device

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202011046360.7A Active CN111897741B (en) 2020-09-29 2020-09-29 Application software detection method and computing device

Country Status (1)

Country Link
CN (2) CN112540921B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019764A (en) * 2012-11-15 2013-04-03 深圳市宜搜科技发展有限公司 Method and system for detecting installability of Andriod resource packages
CN104077211A (en) * 2013-03-25 2014-10-01 腾讯科技(深圳)有限公司 Test method and test system for mobile terminal software

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104216700B (en) * 2013-09-10 2017-05-03 侯金涛 System of cloud-computing-based HTML5 application packaging, installation, unloading and operation method
CN106775631A (en) * 2016-11-18 2017-05-31 宇龙计算机通信科技(深圳)有限公司 Using deployment method, system and electronic equipment
CN106681925A (en) * 2017-01-04 2017-05-17 广州四三九九信息科技有限公司 UIAutomator-based automatic testing method and device
US10528336B2 (en) * 2017-01-30 2020-01-07 International Business Machines Corporation Creation of software images of software applications for image-based maintenance of the software applications
CN109634831A (en) * 2017-10-09 2019-04-16 飞狐信息技术(天津)有限公司 A kind of Android application program GUI traverses test method and system automatically
CN110928630A (en) * 2019-11-26 2020-03-27 北京博睿宏远数据科技股份有限公司 Activation control method, device and equipment for application program window and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019764A (en) * 2012-11-15 2013-04-03 深圳市宜搜科技发展有限公司 Method and system for detecting installability of Andriod resource packages
CN104077211A (en) * 2013-03-25 2014-10-01 腾讯科技(深圳)有限公司 Test method and test system for mobile terminal software

Also Published As

Publication number Publication date
CN111897741A (en) 2020-11-06
CN112540921A (en) 2021-03-23
CN111897741B (en) 2021-02-19

Similar Documents

Publication Publication Date Title
US7793161B2 (en) Method and apparatus to anticipate memory exhaustion in an open services gateway initiative environment
US8281298B2 (en) Evaluating computer driver update compliance
US20130117855A1 (en) Apparatus for automatically inspecting security of applications and method thereof
KR101674934B1 (en) Apparatus and method of reporting exception
US20050038832A1 (en) Application error recovery using solution database
CN111427596B (en) Software upgrading method and device and terminal equipment
CN112445708B (en) Pressure testing method and device and computing equipment
CN108345478B (en) Application processing method and device, storage medium and electronic equipment
CN107644075B (en) Method and device for collecting page information
CN109117153B (en) Application processing method, device, terminal and storage medium
CN103917981A (en) Unauthorized application detection system and method
US20180341769A1 (en) Threat detection method and threat detection device
CN110874298B (en) Request data storage method and terminal equipment
US20170017561A1 (en) Software detection method and device
CN114416252A (en) Window display method and device, computing equipment and storage medium
CN113867847A (en) Abnormal plug-in processing method and device and computing equipment
CN113204385A (en) Plug-in loading method and device, computing equipment and readable storage medium
US20100332914A1 (en) Dump output control apparatus and dump output control method
US8347285B2 (en) Embedded agent for self-healing software
CN113485712B (en) Kernel clipping method and computing device
CN111651315A (en) Page data acquisition method
CN113709246B (en) Network proxy method, computing device and readable storage medium
CN112540921B (en) Detection method of application software and computing device
CN113254248B (en) Fault diagnosis method, system and computing device
CN113821264B (en) Operating system installation control method, installation control system and computing device

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
GR01 Patent grant
GR01 Patent grant