Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, a kind of ERP business simulating system can tested System Privileges, the producing level of ERP to network is provided.
The object of the invention is to be achieved through the following technical solutions: a kind of ERP business simulating system, comprising: data simulation module, it produces various random data according to the data rule preset, and emulates for the various data needed for running ERP;
System simulation module, it configures various authority and business, for emulating the operation flow of ERP; Network simulation module, its virtual and dynamic increase ERP calling party, for emulating the network environment of ERP.
Further, described business comprises project purchase of goods and materials, the purchase of goods and materials of production cost class, class of buying retail purchase of goods and materials.
Further, the random data that described data simulation module produces comprises demographic data, asset data, supplier data, merchant data, goods and materials data and project data.
Further, described network simulation module comprises: memory module, creation module, read module, execution module and statistical module.
Further, described memory module is used for user configured configuration information to be stored in the structure file of simulation, and structure file is sent to creation module;
Described creation module, for receiving structure file, creates the shared drive of simulation, is stored in shared drive, the storage information of structure file in shared drive is sent to read module by described structure file;
Described read module, for receiving the storage information of structure file in shared drive, read the structure file be stored in shared drive, analytic structure body file, obtaining rate value, create the test process of multiple simulation, is user's request dispatching test process of each predetermined quantity of simulation, the quantity of described test process is the ratio of described rate value and described predetermined quantity, and the information of the test process of multiple simulation is sent to execution module;
Described execution module, for receiving the information of the test process of multiple simulation, in each described test process, simulation creates the sub-thread of described predetermined quantity respectively, the user's request of every sub-thread alignment processing, every sub-thread performs according to described configuration information simulation the service scripts that user asks execution, generates the business return data of simulation, and simulation destruction executes the sub-thread of service scripts, return the business return data of simulation, the business return data of simulation is sent to statistical module;
The sub-threading models of described establishment, for every predetermined time, simulates and creates new sub-thread in each test process;
Described statistical module, for receiving the business return data of simulation, stores the business return data the business return data of statistical simulation of simulating.
Further, the sub-threading models of described establishment, be further used for creating the timer of simulation and the mutexes of simulation, dry run mutexes and timer, mutexes keeps lock-out state and released state to hocket, and the time span of described lock-out state and released state is the time of timer setting, when mutexes is in released state, in the storage space of test process, create new sub-thread, until when mutexes reaches termination condition, terminate mutexes.
Further, described service scripts inside comprises for carrying out initialized initialization function file, for carrying out the power function file of functional simulation according to user's request, with for the end function file of free system resources.
The invention has the beneficial effects as follows: the emulation testing that present invention achieves the transmission of the flow process to practical business scene, authority situation and data and network condition, also can realize the basic service test request that existing ERP tests simultaneously, wherein, combine authority and these two factors of network condition to carry out emulation testing to ERP and still belong to industry the first.
Embodiment
Below in conjunction with accompanying drawing, technical scheme of the present invention is described in further detail.
As shown in Figure 1, ERP business simulating system, it comprises data simulation module 101, system simulation module 102 and network simulation module 103.Data simulation module 101, it produces various random data according to the data rule preset, and emulates for the various data needed for running ERP;
System simulation module 102, it configures various authority and business, for emulating the operation flow of ERP; Network simulation module 103, its virtual and dynamic increase ERP calling party, for emulating the network environment of ERP.
Further, described business comprises project purchase of goods and materials, the purchase of goods and materials of production cost class, class of buying retail purchase of goods and materials.
Further, the random data that described data simulation module 101 produces comprises demographic data, asset data, supplier data, merchant data, goods and materials data and project data.
According to one embodiment of present invention, the flow process of project purchase of goods and materials (company home office of province system is talked system and signed) is as follows:
1. prefecture-level company project manager is in project kickoff operation flow, by the material inventory in release PS project framework, is transferred to procurement request.Procurement request comprises material number, technical parameter and the information such as technical manual (when material is not determined completely, focusing on technical parameter), quantity, Date Required, price potential.Procurement request also can be produced by Material Require Plan computing.
2. after procurement request is set up, project management department of prefecture-level company examines procurement request, examination & approval need by rear the balance Li Ku carrying out districts and cities' scope, to determine whether that surplus material or the overstocked stock in producing can use, when confirming unavailable, forward the purchase of goods and materials department process of Logistics Group to.
3. the purchase of goods and materials department of the Logistics Group directly-managed project of project purchasing demand and company of province that company of city reports over the ground carries out gathering and auditing, examination & verification carries out balance Li Ku across the entire province by rear needs, when confirming unavailable, carry out buying by the specific responsibility of buying goods and materials to distribute, determine procurement strategy (comprise and perform framework agreement, bid, buying inquiry quotation, direct buying and competitive negotiation etc.).
4. the buying result determined according to procurement strategy creates purchase order (comprising the main informations such as material, price, the terms of payment, arrival time) in systems in which.
5. when creating purchase order, if exceed procurement budget, system will remind purchase order excess budget, and should enter corresponding project preliminary budget adjustment flow process, adjust the rear establishment that just can complete purchase order, the contract that enters creates and countersign program.
6., after procurement contract countersign, the procurement contract that purchase order person approving should appraise and decide signing is consistent with the content of purchase order, and appraise and decide by rear, intrasystem purchase order becomes effective purchase order, can carry out receiving etc. subsequent treatment to it.
7., according to the terms of payment of purchase order, after order comes into force, enter financial payment in advance flow process, pay a certain proportion of payment in advance.
The flow process of production cost class purchase of goods and materials (company home office of province system is talked system and signed) is as follows:
1. after procurement request is set up, department fo supplies examines procurement request, examines and carries out balance Li Ku by rear needs, to determine whether that the overstocked stock in production can use, when confirming unavailable, forwards the process of purchase of goods and materials department to.
2. procurement request is specialized in by the purchase of goods and materials of company of province and is carried out buying distribution, determines procurement strategy, and is examined by relevant supervisor.
3. the buying result determined according to procurement strategy creates purchase order (comprising the main informations such as material, price, the terms of payment, arrival time) in systems in which.
4. when creating purchase order, if exceed procurement budget, system will remind purchase order excess budget, and should enter corresponding project preliminary budget adjustment flow process, adjust the rear establishment that just can complete purchase order, the contract that enters creates and countersign program.
5., after procurement contract countersign, the procurement contract that purchase order person approving should appraise and decide signing is consistent with the content of purchase order, and appraise and decide by rear, intrasystem purchase order becomes effective purchase order, can carry out receiving etc. subsequent treatment to it.
6., according to the terms of payment of purchase order, after order comes into force, enter financial payment in advance flow process, pay a certain proportion of payment in advance.The flow process of class of buying retail capital assets buying is as follows:
1. company home office of province/management through specialized department department of basic unit proposes capital assets demand or related service class demand.
2. management through specialized department department of company home office of province creates project of buying retail and budget alloments according to annual plan in system.
3. company home office of province/management through specialized department department of basic unit creates the card corresponding with the project of buying retail of buying retail, and creates procurement request according to the annual plan assigned simultaneously.
4. management through specialized department department of company home office of province can pass through System inventory real-time oversight implementation of the plan.
5. purchase of goods and materials department is according to procurement request determination procurement method.
6. after procurement method is determined, purchase order safeguards that people safeguards purchase order in system, when creating purchase order, if exceed budget, system will remind purchase order excess budget, should enter corresponding financial budget and distribute adjustment flow process, adjust the rear establishment that just can complete purchase order.
7. the person in charge of purchasing department carries out contract countersign, after contract countersign, audits in systems in which to purchase order, if to conutersign result variant for sequence information and contract, people safeguards purchase order to need order to safeguard.
The flow process of project purchase of goods and materials (company home office of province system what is said or talked about is signed separately) is as follows:
1. prefecture-level company's project management through specialized department department is in project kickoff operation flow, by the material inventory in release project framework, is transferred to procurement request.Procurement request comprises material number, technical parameter and the information such as technical manual (when material is not determined completely, focusing on technical parameter), quantity, Date Required, price potential.
2. after procurement request is set up, project management department of prefecture-level company examines procurement request, examination & approval need by rear the balance Li Ku carrying out districts and cities' scope, to determine whether that surplus material or the overstocked stock in producing can use, when confirming unavailable, forward the purchase of goods and materials department process of Logistics Group to.
3. the purchase of goods and materials department of the Logistics Group directly-managed project of project purchasing demand and company of province that company of city reports over the ground carries out gathering and auditing, examination & verification carries out balance Li Ku across the entire province by rear needs, when confirming unavailable, carry out buying by the specific responsibility of buying goods and materials to distribute, determine procurement strategy (comprise and perform framework agreement, bid, buying inquiry quotation, direct buying and competitive negotiation etc.).
4. the buying result determined according to procurement strategy creates purchase order (comprising the main informations such as material, price, the terms of payment, arrival time) in systems in which.
5. when creating purchase order, if exceed procurement budget, system will remind purchase order excess budget, and should enter corresponding project preliminary budget adjustment flow process, adjust the rear establishment that just can complete purchase order, the contract that enters creates and countersign program.
6., after procurement contract countersign, the procurement contract that purchase order person approving should appraise and decide signing is consistent with the content of purchase order, and appraise and decide by rear, intrasystem purchase order becomes effective purchase order, can carry out receiving etc. subsequent treatment to it.
7., according to the terms of payment of purchase order, after order comes into force, enter financial payment in advance flow process, pay a certain proportion of payment in advance.
The flow process of production cost class purchase of goods and materials (company home office of province system what is said or talked about is signed separately) is as follows:
1. according to the plan of accident standby redundancy is manual, procurement request generates or produces in actual production maintenance process that maintenance mans are single to be produced according to Material Require Plan operation result by business department.
2. after procurement request is set up, department fo supplies examines procurement request, examines and carries out balance Li Ku by rear needs, to determine whether that the overstocked stock in production can use, when confirming unavailable, forwards the process of purchase of goods and materials department to.
3. procurement request is specialized in by company of province purchase of goods and materials and is carried out buying and distribute, and determines procurement strategy (comprise perform framework agreement, bid, buying ask quotation, directly buying and competitive negotiation etc.), and by relevant supervisor's examination & approval.
4. the buying result determined according to procurement strategy creates purchase order (comprising the main informations such as material, price, the terms of payment, arrival time) in systems in which.
5. when creating purchase order, if exceed procurement budget, system will remind purchase order excess budget, and should enter corresponding project preliminary budget adjustment flow process, adjust the rear establishment that just can complete purchase order, the contract that enters creates and countersign program.
6., after procurement contract countersign, the procurement contract that purchase order person approving should appraise and decide signing is consistent with the content of purchase order, and appraise and decide by rear, intrasystem purchase order becomes effective purchase order, can carry out receiving etc. subsequent treatment to it.
7., according to the terms of payment of purchase order, after order comes into force, enter financial payment in advance flow process, pay a certain proportion of payment in advance.
The flow process of project purchase of goods and materials (prefecture-level company's independent procurement) is as follows:
1. districts and cities, project management through specialized department department of company of county are in project kickoff operation flow, by the material inventory in release project framework, are transferred to procurement request.Procurement request comprises material number, technical parameter and the information such as technical manual (when material is not determined completely, focusing on technical parameter), quantity, Date Required, price potential.
2. after procurement request is set up, project management department gathers procurement request and examines, and examines and carries out balance Li Ku by rear needs, to determine whether that surplus material or the overstocked stock in producing can use, when confirming unavailable, forwards the process of purchase of goods and materials department to.
3. procurement request is specialized in by districts and cities, the purchase of goods and materials of company of county and is carried out buying distribution, determines procurement strategy (comprise and perform framework agreement, buying inquiry quotation, direct buying and competitive negotiation etc.).
4. the buying result determined according to procurement strategy creates purchase order (comprising the main informations such as material, price, the terms of payment, arrival time) in systems in which.
5. when creating purchase order, if exceed procurement budget, system will remind purchase order excess budget, and should enter corresponding project preliminary budget adjustment flow process, adjust the rear establishment that just can complete purchase order, the contract that enters creates and countersign program.
6., after procurement contract countersign, the procurement contract that purchase order person approving should appraise and decide signing is consistent with the content of purchase order, and appraise and decide by rear, intrasystem purchase order becomes effective purchase order, can carry out receiving etc. subsequent treatment to it.
7., according to the terms of payment of purchase order, after order comes into force, enter financial payment in advance flow process, pay a certain proportion of payment in advance.
In the present invention, the random data that ERP data simulation module 101 produces comprises demographic data, asset data, supplier data, merchant data, goods and materials data and project data.
Wherein, demographic data comprises the essential information such as name, sex, department, academic title, length of service, post, ERP authority of personnel.
Asset data comprises the information such as kind, quantity, position, custodian's name, custodian department of equipment that each department has, utensil, instrument.
Supplier data comprise the title of supplier at different levels of provinces and cities, qualification, legal person, registration code, with the completed trading volume of this ERP system etc.
Merchant data comprise the title of provinces and cities retailer at different levels, qualification, legal person, registration code, with the completed sales volume of this ERP system etc.
Goods and materials data comprise the administration of this ERP system for the production of the information such as kind, quantity, position, custodian's name, custodian department with the various apparatuses of the object such as office, equipment, instrument.
The title, numbering, classification, responsible official, progress situation, budget amount, initial time, expection termination time, actual termination time etc. of provinces and cities' project at different levels that project data comprises the typing of this ERP system and managing.
Described network simulation module 103 comprises memory module 1, creation module 2, read module 3, execution module 4 and statistical module 5.Wherein:
Described memory module 1, for being stored in the structure file of simulation by user configured configuration information, sends to creation module 2 by structure file;
Described creation module 2, for receiving structure file, creating the shared drive of simulation, being stored in shared drive, the storage information of structure file in shared drive is sent to read module 3 by described structure file;
Described read module 3, for receiving the storage information of structure file in shared drive, read the structure file be stored in shared drive, analytic structure body file, obtaining rate value, create the test process of multiple simulation, is user's request dispatching test process of each predetermined quantity of simulation, the quantity of described test process is the ratio of described rate value and described predetermined quantity, and the information of the test process of multiple simulation is sent to execution module 4;
Described execution module 4, for receiving the information of the test process of multiple simulation, in each described test process, simulation creates the sub-thread of described predetermined quantity respectively, the user's request of every sub-thread alignment processing, every sub-thread performs according to described configuration information simulation the service scripts that user asks execution, generate the business return data of simulation, simulation destruction executes the sub-thread of service scripts, return the business return data of simulation, the business return data of simulation is sent to statistical module 5;
The sub-threading models 5 of described establishment, for every predetermined time, simulates and creates new sub-thread in each test process;
Described statistical module 6, for receiving the business return data of simulation, stores the business return data the business return data of statistical simulation of simulating.
The sub-threading models 5 of described establishment, be further used for creating the timer of simulation and the mutexes of simulation, dry run mutexes and timer, mutexes keeps lock-out state and released state to hocket, the time span of described lock-out state and released state is the time of timer setting, when mutexes is in released state, creates new sub-thread in the storage space of test process, until when mutexes reaches termination condition, terminate mutexes.
Described service scripts inside comprises for carrying out initialized initialization function file, for carrying out the power function file of functional simulation according to user's request, with for the end function file of free system resources.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.