CN107992422B - Method and device for improving software compatibility test - Google Patents
Method and device for improving software compatibility test Download PDFInfo
- Publication number
- CN107992422B CN107992422B CN201711296047.7A CN201711296047A CN107992422B CN 107992422 B CN107992422 B CN 107992422B CN 201711296047 A CN201711296047 A CN 201711296047A CN 107992422 B CN107992422 B CN 107992422B
- Authority
- CN
- China
- Prior art keywords
- needing
- software
- log
- user
- determined
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 60
- 238000000034 method Methods 0.000 title claims abstract description 55
- 238000011900 installation process Methods 0.000 claims abstract description 33
- 238000012544 monitoring process Methods 0.000 claims abstract description 24
- 230000001419 dependent effect Effects 0.000 claims description 10
- 238000009434 installation Methods 0.000 claims description 4
- 238000012217 deletion Methods 0.000 claims description 3
- 230000037430 deletion Effects 0.000 claims description 3
- 230000009286 beneficial effect Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3664—Environments for testing or debugging software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3696—Methods or tools to render software testable
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a method and a device for improving software compatibility test. The method comprises the following steps: when software needed by a user is installed, monitoring an installation process log of the software needed by the user and a reference log generated by a test process log to determine a dependency package needed to be installed; downloading and installing the determined dependency packages that need to be installed. By monitoring the installation process log and the test process log, the dependency package required to be installed can be determined, and then the dependency package is downloaded and installed without manual intervention, so that the efficiency of installing the dependency package is improved, and further the software compatibility test is improved.
Description
Technical Field
The present invention relates to information technology, and more particularly, to a method and apparatus for improving software compatibility test.
Background
The software compatibility test is a test which needs to be executed before a host provided with L inux, Unix and other operating systems leaves a factory, and the efficient and comprehensive software compatibility test is carried out so as to meet the basic environment requirements of software which needs to be used by a client.
Disclosure of Invention
In order to solve the above technical problems, the present invention provides a method and an apparatus for improving a software compatibility test, which can improve the software compatibility test by determining, downloading, and installing required dependency packages.
In order to achieve the object of the present invention, the present invention provides a method for improving software compatibility test, including:
when software needed by a user is installed, monitoring an installation process log of the software needed by the user and a reference log generated by a test process log to determine a dependency package needed to be installed;
downloading and installing the determined dependency packages that need to be installed.
Further, in an optional embodiment, the step of downloading and installing the determined dependency package that needs to be installed comprises:
searching the determined dependency packages needing to be installed from the managers of the dependency packages, and downloading and installing the determined dependency packages needing to be installed if the determined dependency packages needing to be installed are searched; and if not, downloading and installing the determined dependency packages needing to be installed from the official servers corresponding to the determined dependency packages needing to be installed.
Further, in an optional embodiment, after the step of downloading and installing the determined dependency packages that need to be installed, the method further comprises:
installing software needed by a user;
returning to the step of monitoring the installation process log of the software used according to the requirement of the user and the reference log generated by the test process log to determine the dependency packages required to be installed.
Further, in an optional embodiment, after the step of downloading and installing the determined dependency packages that need to be installed, the method further comprises:
if all the software needed to be used by the user is determined to be installed according to the reference log, deleting the installation process log of the software needed to be used by the user and the reference log generated by the test process log; or deleting the reference logs generated according to the installation process logs and the test process logs of the software required by the user according to a preset deleting rule.
Further, in an optional embodiment, if the determined dependency package needing to be installed is not found, the determined dependency package needing to be installed is added to the manager of the dependency package after the determined dependency package needing to be installed is downloaded from the official server corresponding to the determined dependency package needing to be installed and installed.
In order to achieve the object of the present invention, an embodiment of the present invention further provides an apparatus for improving software compatibility test, including:
a log monitoring module configured to: when software needed by a user is installed, monitoring an installation process log of the software needed by the user and a reference log generated by a test process log to determine a dependency package needed to be installed;
a download and install module configured to: downloading and installing the determined dependency packages that need to be installed.
Further, in an optional embodiment, the download and install module is configured to: searching the determined dependency packages needing to be installed from the managers of the dependency packages, and downloading and installing the determined dependency packages needing to be installed if the determined dependency packages needing to be installed are searched; and if not, downloading and installing the determined dependency packages needing to be installed from the official servers corresponding to the determined dependency packages needing to be installed.
Further, in an optional embodiment, the apparatus further comprises:
a user software installation module configured to: after the downloading and installing module downloads and installs the determined dependent packages needing to be installed, the user software installing module installs the software needing to be used by the user, and then the log monitoring module is called to monitor the installation process logs of the software needing to be used by the user and the reference logs generated by the test process logs so as to determine the dependent packages needing to be installed.
Further, in an optional embodiment, the apparatus further comprises:
a log deletion module configured to: after the downloading and installing module downloads and installs the determined dependency packages needing to be installed, if the log deleting module determines that all software needing to be used by the user is installed according to the reference log, the log deleting module deletes the installation process log of the software needing to be used by the user and the reference log generated by the test process log; or deleting the reference logs generated according to the installation process logs and the test process logs of the software required by the user according to a preset deleting rule.
Further, in an optional embodiment, the download and install module is further configured to: and if the determined dependency package needing to be installed is not found, adding the determined dependency package needing to be installed to a manager of the dependency package after downloading and installing the determined dependency package needing to be installed from an official server corresponding to the determined dependency package needing to be installed.
The embodiment of the invention has the beneficial effects that: by monitoring the installation process log and the test process log, the dependency package required to be installed can be determined, and then the dependency package is downloaded and installed without manual intervention, so that the efficiency of installing the dependency package is improved, and further the software compatibility test is improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
FIG. 1 is a flow chart of a method for improving software compatibility testing provided by an embodiment of the present invention;
fig. 2 is a block diagram of an apparatus for improving software compatibility testing according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
In one aspect, an embodiment of the present invention provides a method for improving software compatibility test, as shown in fig. 1, the method includes step S101 and step S105.
Step S101, when installing the software needed by the user, monitoring the installation process log of the software needed by the user and the reference log generated by the test process log to determine the dependency package needed to be installed.
The installation process log and the test process log are monitored to monitor the software installation test environment, and the installation process log and the test process log record key steps in the software compatibility test process, so that monitoring data can be obtained; the monitoring data is analyzed to generate source data for monitoring the analysis module and determine the appropriate dependency packages for the software that needs to be installed and used by the user.
The dependency package is necessary for installing the software that the user needs to use for constructing an environment necessary for the software that the user needs to use.
The software required to be used by the user and the dependency package required to be installed in the embodiment of the invention can be installed in the K-UX operating system of the Langchao (Beijing) electronic information industry Co., Ltd, Zheng Zhou Yunhai information technology Co., Ltd. The K-UX operating system is based on the X86 architecture and is certified by Unix 03.
Step S105, downloading and installing the determined dependency packages needing to be installed.
The embodiment of the invention has the beneficial effects that: by monitoring the installation process log and the test process log, the dependency package required to be installed can be determined, and then the dependency package is downloaded and installed without manual intervention, so that the efficiency of installing the dependency package is improved, and further the software compatibility test is improved.
Further, in an optional embodiment, step S105 includes:
searching the determined dependency packages needing to be installed from the managers of the dependency packages, and downloading and installing the determined dependency packages needing to be installed if the determined dependency packages needing to be installed are searched; and if not, downloading and installing the determined dependency packages needing to be installed from the official servers corresponding to the determined dependency packages needing to be installed.
As a form of a package-dependent manager, the package-dependent manager may be a YUM source. The YUM source downloads the dependency packages from the specified place and installs the dependency packages, so that the problem of dependency relationship can be well solved.
Further, in an optional embodiment, after step S105, the method further includes:
installing software needed by a user;
returning to the step of monitoring the installation process log of the software used according to the requirement of the user and the reference log generated by the test process log to determine the dependency packages required to be installed.
Further, in an optional embodiment, after step S105, the method further includes:
if all the software needed to be used by the user is determined to be installed according to the reference log, deleting the reference log generated according to the installation process log and the test process log of the software needed to be used by the user; or deleting the reference logs generated according to the installation process logs and the test process logs of the software required by the user according to a preset deleting rule.
It should be noted that, when deleting the installation process log and the test process log of the software that the user needs to use, the original log content in the installation process of the software itself is not deleted, and only the reference log generated comprehensively according to the software installation process log and the test process log by the method provided by the embodiment of the present invention is deleted.
Further, in an optional embodiment, if the determined dependency package needing to be installed is not found, the determined dependency package needing to be installed is added to the manager of the dependency package after the determined dependency package needing to be installed is downloaded from the official server corresponding to the determined dependency package needing to be installed and installed.
On the other hand, the embodiment of the present invention further provides an apparatus for improving software compatibility test, as shown in fig. 2, the apparatus includes a log monitoring module 201 and a downloading and installing module 205.
The log monitoring module 201 is arranged to: when software needed by a user is installed, monitoring an installation process log of the software needed by the user and a reference log generated by a test process log to determine a dependency package needed to be installed;
the download and install module 205 is configured to: downloading and installing the determined dependency packages that need to be installed.
The embodiment of the invention has the beneficial effects that: by monitoring the installation process log and the test process log, the dependency package required to be installed can be determined, and then the dependency package is downloaded and installed without manual intervention, so that the efficiency of installing the dependency package is improved, and further the software compatibility test is improved.
Further, in an alternative embodiment, the download and install module 205 is configured to: searching the determined dependency packages needing to be installed from the managers of the dependency packages, and downloading and installing the determined dependency packages needing to be installed if the determined dependency packages needing to be installed are searched; and if not, downloading and installing the determined dependency packages needing to be installed from the official servers corresponding to the determined dependency packages needing to be installed.
Further, in an optional embodiment, the apparatus further comprises:
a user software installation module configured to: after the download and installation module 205 downloads and installs the determined dependent packages that need to be installed, the user software installation module installs the software that the user needs to use, and then invokes the log monitoring module to monitor the installation process logs and the reference logs generated by the test process logs of the software that the user needs to use, so as to determine the dependent packages that need to be installed.
Further, in an optional embodiment, the apparatus further comprises:
a log deletion module configured to: after the downloading and installing module 205 downloads and installs the determined dependent packages that need to be installed, if the log deleting module determines that all the software that the user needs to use is installed according to the reference log, or according to a preset deleting rule, deletes the reference log generated according to the installation process log and the test process log of the software that the user needs to use.
Further, in an optional embodiment, the download and install module 205 is further configured to: and if the determined dependency package needing to be installed is not found, adding the determined dependency package needing to be installed to a manager of the dependency package after downloading and installing the determined dependency package needing to be installed from an official server corresponding to the determined dependency package needing to be installed.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (8)
1. A method for improving software compatibility test, comprising:
when software required by a user is installed, monitoring an installation process log of the software required by the user and a reference log generated by a test process log, so as to monitor a software installation test environment and determine a dependent package required to be installed;
downloading and installing the determined dependency packages that need to be installed,
wherein the step of downloading and installing the determined dependency packages that need to be installed comprises:
searching the determined dependency package needing to be installed from a manager of the dependency package, and downloading and installing the determined dependency package needing to be installed if the determined dependency package needing to be installed is searched; and if the dependency package is not found, downloading and installing the determined dependency package needing to be installed from an official server corresponding to the determined dependency package needing to be installed.
2. The method of claim 1, wherein after the step of downloading and installing the determined dependency packages that require installation, the method further comprises:
installing software needed to be used by the user;
returning to the step of monitoring the installation process log of the software required to be used by the user and the reference log generated by the test process log so as to monitor the software installation test environment and determine the dependent packages required to be installed.
3. The method of claim 1, wherein after the step of downloading and installing the determined dependency packages that require installation, the method further comprises:
if all the software required to be used by the user is determined to be installed according to the reference log, deleting the reference log generated according to the installation process log and the test process log of the software required to be used by the user; or deleting the reference logs generated according to the installation process logs and the test process logs of the software required to be used by the user according to a preset deleting rule.
4. The method according to claim 1, wherein if the determined dependency package needing to be installed is not found, the determined dependency package needing to be installed is added to the manager of the dependency package after the determined dependency package needing to be installed is downloaded from an official server corresponding to the determined dependency package needing to be installed and installed.
5. An apparatus for improving software compatibility testing, comprising:
a log monitoring module configured to: when software required by a user is installed, monitoring an installation process log of the software required by the user and a reference log generated by a test process log, so as to monitor a software installation test environment and determine a dependent package required to be installed;
a download and installation module configured to: downloading and installing the determined dependency packages that need to be installed,
wherein the download and install module is configured to: searching the determined dependency package needing to be installed from a manager of the dependency package, and downloading and installing the determined dependency package needing to be installed if the determined dependency package needing to be installed is searched; and if the dependency package is not found, downloading and installing the determined dependency package needing to be installed from an official server corresponding to the determined dependency package needing to be installed.
6. The apparatus of claim 5, further comprising:
a user software installation module configured to: after the downloading and installing module downloads and installs the determined dependency packages needing to be installed, the user software installing module installs the software needing to be used by the user, and then the log monitoring module is called to monitor reference logs generated according to installation process logs and test process logs of the software needing to be used by the user, so that a software installation test environment is monitored, and the dependency packages needing to be installed are determined.
7. The apparatus of claim 5, further comprising:
a log deletion module configured to: after the downloading and installing module downloads and installs the determined dependency packages needing to be installed, if the log deleting module determines that all software needing to be used by the user is installed according to the installation process log and the test process log, deleting a reference log generated according to the installation process log and the test process log of the software needing to be used by the user; or deleting the reference logs generated according to the installation process logs and the test process logs of the software required to be used by the user according to a preset deleting rule.
8. The apparatus of claim 5, wherein the download and install module is further configured to: if the determined dependency package needing to be installed is not found, the determined dependency package needing to be installed is added to the manager of the dependency package after the determined dependency package needing to be installed is downloaded from an official server corresponding to the determined dependency package needing to be installed and installed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711296047.7A CN107992422B (en) | 2017-12-08 | 2017-12-08 | Method and device for improving software compatibility test |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711296047.7A CN107992422B (en) | 2017-12-08 | 2017-12-08 | Method and device for improving software compatibility test |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107992422A CN107992422A (en) | 2018-05-04 |
CN107992422B true CN107992422B (en) | 2020-07-10 |
Family
ID=62036905
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711296047.7A Active CN107992422B (en) | 2017-12-08 | 2017-12-08 | Method and device for improving software compatibility test |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107992422B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112699044B (en) * | 2021-01-05 | 2023-02-24 | 长沙市到家悠享家政服务有限公司 | Pressure testing method, equipment and storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103324505A (en) * | 2013-06-24 | 2013-09-25 | 曙光信息产业(北京)有限公司 | Method for deploying GPU (graphic processor unit) development environments in cluster system and could computing system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9003400B2 (en) * | 2010-11-29 | 2015-04-07 | Red Hat, Inc. | Tracking computing systems utilizing software repositories |
-
2017
- 2017-12-08 CN CN201711296047.7A patent/CN107992422B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103324505A (en) * | 2013-06-24 | 2013-09-25 | 曙光信息产业(北京)有限公司 | Method for deploying GPU (graphic processor unit) development environments in cluster system and could computing system |
Non-Patent Citations (1)
Title |
---|
Jenkins构建maven项目时日志报代码缺少jar包错误的解决办法;russ44;《https://blog.csdn.net/russ44/article/details/51736099》;20160622;第1页 * |
Also Published As
Publication number | Publication date |
---|---|
CN107992422A (en) | 2018-05-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109117169B (en) | Method and device for repairing kernel vulnerability | |
CN108667855B (en) | Network flow abnormity monitoring method and device, electronic equipment and storage medium | |
US8645942B2 (en) | Software update syndication | |
CN105786538B (en) | software upgrading method and device based on android system | |
US20160378456A1 (en) | Method for offline updating virtual machine images | |
US20110246988A1 (en) | Hypervisor for starting a virtual machine | |
US20090210871A1 (en) | System and method for software application migration | |
US20110214111A1 (en) | Systems and methods for detecting computing processes requiring reinitialization after a software package update | |
GB2501287A (en) | Installing applications at selected runtime instances | |
US9330184B2 (en) | Methods and systems for machine learning to discover application compatibility status | |
US20230259358A1 (en) | Documentation enforcement during compilation | |
CN112860645A (en) | Processing method and device for offline compressed file, computer equipment and medium | |
CN110912754A (en) | Method and management system for batch operation and maintenance remote hosts | |
US11263297B2 (en) | Dynamic insertion of variablized secrets in a pipeline integration system | |
CN113760306A (en) | Method and device for installing software, electronic equipment and storage medium | |
CN105247533A (en) | Information processing device and identifying method | |
CN107992422B (en) | Method and device for improving software compatibility test | |
US20120096453A1 (en) | Software Package Management Mechanism | |
US20210263721A1 (en) | Method, device, and computer program product for managing virtual machine upgrage | |
US8615751B2 (en) | Seeding product information | |
CN111711713B (en) | Data access method, computer device and storage medium | |
CN115185644A (en) | Detection method, system, equipment and storage medium based on container interactive application | |
CN115080114A (en) | Application program transplanting processing method, device and medium | |
CN109634636B (en) | Application processing method, device, equipment and medium | |
JP2023531701A (en) | Efficient controller data generation and extraction |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200521 Address after: 215100 No. 1 Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd. Address before: 450018 Henan province Zheng Dong New District of Zhengzhou City Xinyi Road No. 278 16 floor room 1601 Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |