Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Linus system based automatic script execution method

A technology for automated execution and scripting, which is applied in the fields of instrumentation, electrical digital data processing, and computing to achieve the effect of improving test coverage and test quality.

Inactive Publication Date: 2016-04-06
LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF1 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The technical task of the present invention is to provide a kind of automatic execution method based on the script of Linux system to solve the problems of correct testing, automatic testing and fast testing that cannot be realized by manual testing in particular for the above deficiencies.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0023] The method for automatically executing scripts based on the Linux system of the present invention executes the test of the scripts through the timing execution tool cron in the Linux system. The steps are:

[0024] (1) Start the cron service;

[0025] (2) Set the cron service according to the running permission of the script file;

[0026] (3) If the running of the script file has permission restrictions, run the crontab command to edit the cron service. If the running of the script file has no permission restrictions, edit the / etc / crontab file to configure the cron service;

[0027] (4) If the test process fails, you can restart the cron service through / sbin / servicecrondrestart / / , or reload the cron service configuration through / sbin / servicecrondreload / / ;

[0028] (5) After the test, pass / sbin / servicecrondstop / / to close the cron service.

[0029] In the above step (1), the method to start the cron service is: start the cron service through / sbin / servicecrondstart / / ; or add / ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a Linux system based automatic script execution method, belonging to the field of Linux system based automatic script test and aiming to realize correct test, automatic test and rapid test that cannot be realized in software tests, especially manual test. The method comprises a first step of starting a cron service; a second step of setting the cron service according to running authority of a script file; a third step of if running of the script file has authority limitation, running a crontab instruction to edit the cron service, if running of the script file does not have authority limitation, editing an / etc / crontab file to configure the cron service; a fourth step of if faults occur in the test process, restarting the cron service, or reloading the cron service configuration; and a fifth step of stopping the cron service after the test is finished.

Description

Technical field [0001] The invention relates to the field of automated testing of scripts based on a Linux system, in particular to an automated execution method of scripts based on the Linux system. Background technique [0002] The purpose of testing is to ensure the quality of the company's products. Effective automated testing is conducive to improving product quality and improving production efficiency. Repeated single data entry or keystroke testing operations in the current regression testing have caused unnecessary waste of time and manpower. In addition, testers’ Understanding and verifying design documents usually also rely on test automation tools. The use of automated test tools is conducive to the generation of test report documents and the consistency of versions, and the automation tools can determine the coverage path of test cases and determine the set of test cases to the program Coverage of logic flow and control flow. [0003] Automated testing can improve tes...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3688
Inventor 刘振东
Owner LANGCHAO ELECTRONIC INFORMATION IND CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products