CN106250123B - A kind of system test mode and operational mode compatibility method - Google Patents

A kind of system test mode and operational mode compatibility method Download PDF

Info

Publication number
CN106250123B
CN106250123B CN201610590680.6A CN201610590680A CN106250123B CN 106250123 B CN106250123 B CN 106250123B CN 201610590680 A CN201610590680 A CN 201610590680A CN 106250123 B CN106250123 B CN 106250123B
Authority
CN
China
Prior art keywords
test pattern
mode
operational mode
test
executable file
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
CN201610590680.6A
Other languages
Chinese (zh)
Other versions
CN106250123A (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.)
Anhui Province Postal Communication Electricity Ltd Co
Original Assignee
Anhui Province Postal Communication Electricity Ltd Co
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 Anhui Province Postal Communication Electricity Ltd Co filed Critical Anhui Province Postal Communication Electricity Ltd Co
Priority to CN201610590680.6A priority Critical patent/CN106250123B/en
Publication of CN106250123A publication Critical patent/CN106250123A/en
Application granted granted Critical
Publication of CN106250123B publication Critical patent/CN106250123B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention relates to software technologies, and in particular to a kind of system test mode and operational mode compatibility method.Test pattern exists in the prior art and operational mode executable file is stored separately, is unable to the problem of disposal solidifying, and test pattern and operational mode mutually wait for system performance decline, system unreliability under resident caused operational mode and increase, test insufficient problem under test pattern, the present invention is arranged and the test pattern executable file that generates and operational mode executable file are the file of a version sets, it is stored on the non-volatile memory medium of system, is configured by configuration order.After system initialization, start test pattern process, control is delivered into test pattern process, test pattern process detection simultaneously judges that system model marks, judges that current system environment remains in test pattern or switches to operational mode.The present invention makes full use of the advantages of test pattern to enhance the reliability of system, and bring for system diagnostics it is convenient.

Description

A kind of system test mode and operational mode compatibility method
Technical field
The present invention relates to software technologies, more specifically, being a kind of system test mode and operational mode compatibility method.
Technical background
System running pattern, refer to that system is in all resource reasonable management itself is with response external bearer service Under purpose mode, system is in that service environment complexity is high, concurrent process number is more in this mode, the field of system resource anxiety Under scape, while needing to meet the performance requirement of system high stability, high reliability.And system test mode, refer to system to examine It surveys for the purpose of the hardware environment of itself, software and hardware system problem is exposed by the mode of high-frequency, high covering, high pressure. The application purpose and application scenarios of both of which suffer from extremely real demand, the business of system customer in response under operational mode Demand completes defined business function and performance parameter, and test pattern provides indispensable guarantee then for operational mode, completes corresponding Software and hardware detection, it is ensured that software and hardware resources needed for operational mode are correctly reliable, insecure situation occur in operational mode Under, it can promptly and accurately diagnose the problem of positioning software and hardware system.Thus it is used as essential two function of system software Can, both of which is indispensable, and the compatible technique of both of which is also technology critically important in system software.
The compatibility of both of which be only system reliability service and system diagnostics bring it is convenient, more software and hardware mutually according to Degree of depositing is high, the scene of software and hardware system solution as a whole provides strong support.
Both of which compatibility has the following advantages:
1, ensure the reliable of operational mode.It is incompatible relative to the system software or both of which for not having test pattern System software, under compatibility mode, necessary resource can sufficiently be tested in test mode, be guaranteed before operational mode starting Resource it is effective, it is ensured that system enters the reliability service under operational mode.
2, convenient for the diagnosis of problem under operational mode.For the problem under system running pattern, compatibility test mode System software, can enter test pattern software systems are diagnosed, quickly position.
3, convenient for the deployment of system software.The incompatible system software of both of which, when system is entered separately by one mode When one mode, need to re-download update system software, it is extremely inconvenient.Hardware device is solidificated in especially for system software On scene, often one mode can only be selected to be solidified according to demand, it is more inconvenient.
There are mainly two types of for the compatible usual way of both of which:
1, it is compatible to wait for resident dynamic type
Test pattern resides under system running pattern by the process of waiting for or in a manner of waiting for thread.According to special instruction Complete the switching of both of which.
2, backup substitution static type is compatible
Test pattern executable file is respectively stored in the different positions of system storage medium from operational mode executable file It sets, the switching of both of which is completed according to special instruction.
There are problems under certain scene uses for current compatibility mode.As shown in Figure 1, what routing device system software used It is cured mode burning on the non-volatile memory medium of equipment, while what is carried is heavy traffic, high performance communication Demand.According to resident dynamic type compatibility mode is waited for, test pattern process is waited under system model, and it is nervous to occupy this System resource, lead to operational mode reduced performance.And when system switches to test pattern, it is waited for since operational mode is in State, resource do not discharge, and cause test pattern test cannot be abundant.Both of which dynamic operation simultaneously, also great band The unreliability of software systems is carried out.Compatible using backup substituted, test pattern executable file and operational mode are executable File is stored separately, for using curing mode by routing device of the system software burning on non-volatile memory medium come It says, system version can not be done to disposable burning, do not have operability.
Summary of the invention
The purpose of the present invention is to provide a kind of system test modes and operational mode compatibility method.The present invention is using following The method of technical solution, system software compatibility test and operational mode a kind of the following steps are included:
Step 1: system electrification, initial processes starting;
Step 2: initial processes are delivered system control to first system business process and are delivered to test pattern process system System;
Step 3: test pattern processes detect the mode flag position being stored on non-volatile memory medium;
Step 4: judging that current system environment remains in test pattern or running mode switching;
Step 5: if it is test pattern, then initialization test mode environment parameter, response test mode instruction;
Step 6: under test pattern, setting system model;
Step 7: otherwise exiting first system business process and exit test pattern process, discharge resource, transported into system Row mode;
Step 8: under operational mode, setting system model;
Step 9: entering next starting period, repeat previous step.
In method provided by the present invention, it is arranged and the test pattern executable file and operational mode generated is executable File is the file of a version sets, is stored on the non-volatile memory medium of system, can be configured by configuration order.
Simultaneously storage system mode flag is set, and is stored on non-volatile memory medium, can be carried out by configuration order Configuration.
System initialization process initiation finishes, first starting test pattern process, and system control is delivered test pattern Process, test pattern process detection system model label.
Test pattern process is marked according to system model, judges that current system environment remains in test pattern or switching At operational mode.
After system environments enters corresponding modes according to system model label, command adapted thereto is responded, completes related service movement.
System responds Setting pattern order, system model is arranged, into the next starting period.
Compared with prior art, the method for a kind of system software compatibility test mode and operational mode provided by the invention It can solve current test pattern and operational mode executable file be stored separately, be unable to the problem of disposal solidifying, and survey Die trial formula and operational mode mutually wait for system performance decline, system unreliability under resident caused operational mode and increase, survey Insufficient problem is tested under die trial formula, thus the reliability of the advantages of making full use of test pattern enhancing system, and be system It is convenient that diagnosis is brought.
Detailed description of the invention:
Fig. 1 is the introduction of usage scenario in the present invention;
Fig. 2 is that test pattern executable file and operational mode executable file are a version sets process in the present invention;
Fig. 3 is test pattern and the compatible Booting sequence of operational mode in the present invention.
Specific embodiment:
With reference to the accompanying drawing to a kind of method of system software compatibility test mode and operational mode provided by the present invention It is illustrated.
As shown in Fig. 2, generating test pattern executable file and operational mode executable file in the present invention as a version This collection process includes:
(1) configuration is packaged configuration file XML;
(2) test pattern process DEBUG is generated;
(3) other business process under operational mode are generated;
(4) operation is packaged the version that order generates test pattern executable file and the unification of operational mode executable file Collection.
As shown in figure 3, test pattern and the compatible Booting sequence of operational mode include:
(1) system successively starts BOOT, mini system
(2) system control is delivered test pattern process by initialization process
(3) judge that current system mode marks
(4) it is marked if it is test pattern, response test mode command
(5) otherwise enter operational mode, respond operational mode order
(6) next starting period is carried out, previous step is repeated
It is described below with reference to one embodiment of the present of invention:
(1) XML for generating test pattern executable file with operational mode executable file is a version sets matches It sets:
$(ECHO) /usr/sbin/$(notdir $(_PT_FULL_VERSION)) >> $(BSP_ VERSIONPACKER_PATH)/admin.sh
(2) test pattern is operational mode labeled as 0,1;
(3) it after system initialization process, delivers system control and causes test pattern process;
(4) test pattern process detection system model marks;
(5) enter test pattern if labeled as 0 and complete system hardware and software detection, detection is completed setting system model and marked It is 1;
(6) the system next starting period enters operational mode.

Claims (3)

1. the compatibility method of a kind of system test mode and operational mode, which is characterized in that including below step:
Step 1: system electrification, initial processes starting;
Step 2: initial processes are delivered system control to first system business process and are delivered to test pattern processes;
Step 3: test pattern processes detect the mode flag position being stored on non-volatile memory medium;
Step 4: judging that current system environment remains in test pattern or running mode switching;
Step 5: if it is test pattern, then initialization test mode environment parameter, response test mode instruction;
Step 6: under test pattern, setting system model;
Step 7: otherwise exiting first system business process and exit test pattern process, discharge resource, run mould into system Formula;
Step 8: under operational mode, setting system model;
Step 9: entering next starting period, repeat previous step;
The test pattern executable file that is arranged and generates in the compatibility method of the system test mode and operational mode with Operational mode executable file is the file of a version sets, is stored on the non-volatile memory medium of system, can be by matching Order is set to be configured;
Simultaneously storage system mode flag is set, and is stored on non-volatile memory medium, can be configured by configuration order;
System initialization process initiation finishes, first starting test pattern process, and system control is delivered test pattern process, Test pattern process detection system model label;
Test pattern process is marked according to system model, judges that current system environment remains in test pattern or switches to fortune Row mode;
After system environments enters corresponding modes according to system model label, command adapted thereto is responded, completes related service movement;
System responds Setting pattern order, system model is arranged, into the next starting period.
2. the compatibility method of a kind of system test mode and operational mode according to claim 1, which is characterized in that generate Test pattern executable file is that a version sets process includes: with operational mode executable file
(1) configuration is packaged configuration file XML;
(2) test pattern process DEBUG is generated;
(3) other business process under operational mode are generated;
(4) operation is packaged the version sets that order generates test pattern executable file and the unification of operational mode executable file.
3. the compatibility method of a kind of system test mode and operational mode according to claim 1, which is characterized in that test Mode and the compatible Booting sequence of operational mode include:
(1) system successively starts BOOT, mini system;
(2) system control is delivered test pattern process by initialization process;
(3) judge that current system mode marks;
(4) it is marked if it is test pattern, response test mode command;
(5) otherwise enter operational mode, respond operational mode order;
(6) next starting period is carried out, previous step is repeated.
CN201610590680.6A 2016-07-26 2016-07-26 A kind of system test mode and operational mode compatibility method Active CN106250123B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610590680.6A CN106250123B (en) 2016-07-26 2016-07-26 A kind of system test mode and operational mode compatibility method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610590680.6A CN106250123B (en) 2016-07-26 2016-07-26 A kind of system test mode and operational mode compatibility method

Publications (2)

Publication Number Publication Date
CN106250123A CN106250123A (en) 2016-12-21
CN106250123B true CN106250123B (en) 2019-12-03

Family

ID=57604727

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610590680.6A Active CN106250123B (en) 2016-07-26 2016-07-26 A kind of system test mode and operational mode compatibility method

Country Status (1)

Country Link
CN (1) CN106250123B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113535230B (en) * 2021-06-07 2022-09-23 上海古鳌电子科技股份有限公司 Method and system for dynamically adapting engineering source code to different hardware resources

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1838075A (en) * 2005-03-24 2006-09-27 光宝科技股份有限公司 Operating system selection method and computer system thereof
CN101384063A (en) * 2008-09-24 2009-03-11 中兴通讯股份有限公司 Method and system for terminal equipment repairing and updating, system manufacturing method
CN104268075A (en) * 2014-09-22 2015-01-07 广东欧珀移动通信有限公司 Test mode entry method and device and mobile terminal
CN105635818A (en) * 2015-12-18 2016-06-01 小米科技有限责任公司 Starting method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080147827A1 (en) * 2006-12-14 2008-06-19 Morris Robert P Method And System For Synchronizing Operating Modes Of Networked Appliances

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1838075A (en) * 2005-03-24 2006-09-27 光宝科技股份有限公司 Operating system selection method and computer system thereof
CN101384063A (en) * 2008-09-24 2009-03-11 中兴通讯股份有限公司 Method and system for terminal equipment repairing and updating, system manufacturing method
CN104268075A (en) * 2014-09-22 2015-01-07 广东欧珀移动通信有限公司 Test mode entry method and device and mobile terminal
CN105635818A (en) * 2015-12-18 2016-06-01 小米科技有限责任公司 Starting method and device

Also Published As

Publication number Publication date
CN106250123A (en) 2016-12-21

Similar Documents

Publication Publication Date Title
CN109783342B (en) Script debugging method and device and computer storage medium
US10067863B1 (en) Feature targeting of test automation lab machines
CN110096424B (en) Test processing method and device, electronic equipment and storage medium
US10354031B2 (en) Information processing by interpenetrating signal transmission channel in design for testability of chip
CN104978271B (en) A kind of automatic upgrading pressure survey method and system of android system
KR102141287B1 (en) Fault injection test method and system for vehicle software based on autosar
US20090204849A1 (en) Test system and method which can use tool during debugging
CN109726135A (en) Multi-core debugging method and device and computer readable storage medium
CN109189663A (en) A kind of plug-in unit adjustment method, test method and microkernel architecture system
CN104125504A (en) Deployment method, device and system based on continuous integration
CN112052037A (en) Application software development method, device, equipment and medium
CN106484620A (en) Method for testing multi-system terminal equipment, control equipment and console
CN106250123B (en) A kind of system test mode and operational mode compatibility method
CN111176989A (en) Fault injection test scenario case model and framework based on service arrangement
WO2021077916A1 (en) Method and device for acquiring mirror image file
KR102279776B1 (en) AUTOSAR BSW testing automation system and testing method thereof
CN116627850A (en) Function debugging method and device, storage medium and electronic equipment
CN113127329A (en) Script debugging method and device and computer storage medium
CN106528402B (en) Method and system for testing terminal
CN113051088B (en) Program loading method, device, equipment and computer readable medium
CN112035352B (en) Cloud lifecycle management-based rapid automatic compiling and deploying method
Drabek et al. DANA-Description and Analysis of Networked Applications.
CN115576706A (en) Method and device for interfacing with third-party system, electronic equipment and readable medium
CN111488264A (en) Deployment scheduling method for interface performance test cluster
WO2023197128A1 (en) Test method and control apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant