Disclosure of Invention
The invention aims to provide an early warning system in a software development process, so as to solve the problems in the background technology.
In order to solve the technical problems, the invention provides the following technical scheme: an early warning system in software development process, its characterized in that: the method comprises the following steps: the system comprises a database, a GPS positioning unit, a client information input unit, a client requirement input unit, a software testing unit, a mouse track scanning unit, a modeling unit, a button click identification unit, an abnormity early warning unit, an abnormity processing unit, a test result output unit, a test evaluation unit and an adjustment optimization unit;
the output end of the GPS positioning unit is connected with the input end of the customer information input unit, the output ends of the customer information input unit and the customer requirement input unit are connected with the input end of the database, the input end of the mouse track scanning unit is connected with the output end of the modeling unit, the output end of the mouse track scanning unit is connected with the input end of the software testing unit, the output end of the software testing unit is connected with the input end of the button click identification unit, the output end of the button click identification unit is connected with the input end of the abnormity early warning unit, the output end of the abnormity early warning unit is connected with the input end of the abnormity processing unit, the output end of the abnormity processing unit is connected with the input end of the test result output unit, and the output end of the test result output unit is connected with the input end, the output end of the database is connected with the input end of the test evaluation unit, the output end of the test evaluation unit is connected with the input end of the abnormity early warning unit, the output end of the abnormity early warning unit is connected with the input end of the adjustment optimization unit, and the output end of the adjustment optimization unit is connected with the input end of the software test unit;
the client information input unit stores address information of a client company, the GPS positioning unit positions and confirms specific position coordinates of the client company, the position coordinate information is transmitted to the database, the mouse track scanning unit scans the mouse moving track of a test operation page, the position of a button needing to be clicked during testing is confirmed according to the moving track of the mouse, the modeling unit models the whole test page, confirms the position coordinates of the button, the button coordinate information is transmitted to the software testing unit through the mouse track scanning unit, the software testing unit tests the card punching function developed by software, the button clicking identification unit judges whether the button clicking is effective in the operation process after the testing operation is finished, and the identified result is transmitted to the abnormity early warning unit, when the invalid click is identified, an alarm signal is sent to the exception processing unit through the exception early warning unit, the invalid click of the button is processed through the exception processing unit, and a processed correct test result is transmitted to the database through the test result output unit;
the method comprises the steps that range data of employee attendance and attendance checking required by different clients are input into a database through a client requirement input unit, the range data of employee attendance and attendance checking and correct test result data are transferred into a test evaluation unit, whether the test result meets the requirements of the clients or not is judged through comparison of the test evaluation unit, the data which do not meet the requirements of the clients are transmitted into an abnormity early warning unit, an alarm signal is sent into an adjustment optimization unit through the abnormity early warning unit, the effective attendance checking range of software is rescheduled and adjusted through the adjustment optimization unit, and the adjusted data are transmitted to a software testing unit for retesting.
Further, the abnormality warning unit not only sends out an alarm signal to the adjustment optimization unit when the test result is evaluated to not meet the customer requirement, but also sends out an alarm signal to the abnormality processing unit due to misoperation in the software test operation process.
Further, the client information input unit inputs address information of different client companies, the client companies are positioned through the GPS positioning unit, and the position coordinate set of all the client companies is confirmed to be (x, y) = { (x)1,y1),(x2,y2),...,(xn,yn) And n represents the number of client companies, and position coordinate information is transmitted to the client requirement input unit through the client information input unit.
Further, the customer demand entry unit receives the customer position coordinate information, and the set of the effective card punching distances of the employees which take the company as the center and are required by the customers is stored in the customer demand entry unit and is d = { d = { d }1,d2,...,dnAnd n represents the number of client companies, and the effective employee card punching data required by the client is recorded into the database through the client requirement recording unit.
Further, the software testing unit tests that the set of valid card punching ranges of corresponding companies in the card punching function of software development is s = { s = }1,s2,...,snAnd calculating an effective distance r in the software card punching function according to the following formula:
wherein the content of the first and second substances,
obtaining a card punching effective distance set designed for the corresponding company as r = { r =
1,r
2,...,r
nN represents the number of client companies, the tested effective software card punching data are transmitted to the database through the test result output unit, the effective software card punching distance is calculated through the measured card punching range, and the purpose of calculating the effective card punching distance is to compare with the effective employee card punching distance required by the client, so that the client company can more effectively check the card according to the effective software card punching distanceWhether the card punching function of software development can meet the requirements of different customers is well judged, compared with the card punching range, the card punching distance enables the test result to be more visual, the comparison between the card punching distances is simpler, the test evaluation result can be more visually and clearly obtained, and the test process is accelerated.
Further, the test evaluation unit calls the software effective card punching data tested in the database and the employee effective card punching data required by the client, and the test evaluation unit compares the employee effective card punching distance set d required by different clients with the effective distance r in the software card punching function tested one by one: if it is
The software card punching range is within the effective card punching range of the staff required by the client, so that the requirements of the client can be met; if it is
And the situation that the card punching range of the developed software exceeds the effective card punching range of the staff required by the client and cannot meet the requirements of the client is shown, the data which do not meet the requirements of the client are transmitted to the abnormity early warning unit, the abnormity early warning unit sends a warning signal to the adjustment optimization unit, early warning is timely carried out after the data which do not meet the requirements of the client are tested, the quick adjustment and optimization of the software are facilitated, the adverse effect on the promotion of the software development process is avoided, and the software is delayed to be popularized and put on the market.
Further, the adjustment optimization unit adjusts the software card punching range after receiving the alarm signal, and adjusts r until r is adjusted
And transmitting the adjusted corresponding effective card punching distance data to the software testing unit within the effective card punching range of the staff required by the client, and retesting through the software testing unit until the adjusted effective card punching distance meets the requirements of the client.
Furthermore, when the software testing unit performs testing operation, a misoperation condition can occur, the mouse track scanning unit scans a testing operation page and confirms the moving track of the mouse and the positions of points staying in sequence, the moving track of the mouse confirms the positions of buttons needing to be clicked during testing, and the modeling unit is used for modeling the whole testing operation page: establishing a two-dimensional coordinate system by taking the center of the page as an origin, and scanning to obtain a coordinate set (x) of the positions of buttons clicked by a mouse in sequence’,y’)={(x1 ’,y1 ’),(x2 ’,y2 ’),...,(xm ’,ym ’) M represents the number of buttons to be clicked in the test process, and the shortest distance d between two front and rear buttons arranged in sequence is calculated according to the following formulai ’:
Wherein x isiAbscissa, y, representing a random buttoniRepresenting the ordinate of one button randomly, the shortest distance between the two buttons is D = { D = { D }1 ’,d2 ’,...,dm-1 ’And transmitting the scanned position coordinates of the buttons and the position relation among the buttons to the software testing unit, testing the software function through the software testing unit, and calculating the shortest distance between two buttons in the adjacent sequence according to the click sequence after confirming the position coordinates of the buttons in the testing operation process, so as to quickly confirm the position of the button with invalid click when the button click recognition unit recognizes that the button click is invalid, thereby being beneficial to giving early warning in time and finding a leak caused by misoperation.
Further, when the software testing unit tests the software function, the button click recognition unit is used for recognizing whether the mouse clicks the button needing to be clicked effectively, when the button is recognized to be not clicked or invalid, the button position information which is not clicked is transmitted to the abnormity early warning unit, and an alarm signal is sent to the abnormity processing unit through the abnormity early warning unit.
Furthermore, after the abnormity processing unit receives the alarm signal, the abnormity processing unit judges whether the shortest distance between two points where the mouse stays in sequence is equal to the corresponding shortest distance in the D through the mouse moving track scanned by the mouse scanning unit and the positions of the staying points, screens out corresponding buttons with unequal shortest distances, confirms the sequence and the positions of the buttons, and retests through the software testing unit until the testing operation passes the testing result output unit without error, and further confirms whether to click the buttons through comparison with the shortest distance between the two points where the scanned mouse stays when moving, so that the vulnerability can be found out quickly and processed in time, and the delay condition of subsequent popularization and marketing of software is avoided.
Compared with the prior art, the invention has the following beneficial effects:
1. the invention inputs the range data of the employee on-duty and off-duty punch card required by different client companies into the database through the client requirement input unit, transfers the range data of the employee on-duty and off-duty punch card and the correct test result data into the test evaluation unit, compares and judges whether the test result meets the requirements of the client through the test evaluation unit, transmits the data which does not meet the requirements of the client into the abnormity early warning unit, sends an alarm signal into the adjustment optimization unit through the abnormity early warning unit, replans and adjusts the effective punch card range of the software through the adjustment optimization unit, transmits the adjusted data to the software test unit for retesting until the requirements of the client are met, compared with the punch card range, the punch card distance enables the test result to be more visual, the comparison between the punch card distances is simpler, and the test evaluation result can be more clearly obtained, the test process is accelerated, when the tested software function does not meet the requirements of customers, an early warning signal needs to be sent out in time to adjust and optimize the software, so that the satisfaction degree of the customers is improved;
2. the invention scans the mouse moving track of a test operation page through a mouse track scanning unit, confirms the button position needing to be clicked during testing according to the moving track of the mouse, models the whole test page through a modeling unit, confirms the position coordinate of the button, transmits the button coordinate information to a software test unit through the mouse track scanning unit, tests the card punching function developed by software through the software test unit, judges whether the button click is effective or not in the operation process through a button click identification unit after the test operation is finished, transmits the identification result to an abnormity early warning unit, transmits an alarm signal to an abnormity processing unit through the abnormity early warning unit when the invalid click is identified, processes the invalid click of the button through the abnormity processing unit, outputs the correct test result after the processing, and timely gives early warning, The vulnerability caused by misoperation is found, so that the software marketing progress is promoted, and the delay condition of the subsequent software popularization and marketing work is avoided.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
Referring to fig. 1, the present invention provides a technical solution: an early warning system in software development process, its characterized in that: the method comprises the following steps: the system comprises a database, a GPS positioning unit, a client information input unit, a client requirement input unit, a software testing unit, a mouse track scanning unit, a modeling unit, a button click identification unit, an abnormity early warning unit, an abnormity processing unit, a test result output unit, a test evaluation unit and an adjustment optimization unit;
the output end of the GPS positioning unit is connected with the input end of the customer information input unit, the output ends of the customer information input unit and the customer requirement input unit are connected with the input end of the database, the input end of the mouse track scanning unit is connected with the output end of the modeling unit, the output end of the mouse track scanning unit is connected with the input end of the software testing unit, the output end of the software testing unit is connected with the input end of the button click identification unit, the output end of the button click identification unit is connected with the input end of the abnormity early warning unit, the output end of the abnormity early warning unit is connected with the input end of the abnormity processing unit, the output end of the abnormity processing unit is connected with the input end of the test result output unit, the output end of the test result output unit is connected with the input end of the database, the, the output end of the abnormity early warning unit is connected with the input end of the adjustment optimization unit, and the output end of the adjustment optimization unit is connected with the input end of the software testing unit;
the client information input unit stores address information of a client company, the client company is positioned by the GPS positioning unit to confirm specific position coordinates, the position coordinate information is transmitted to the database, a mouse track scanning unit scans a mouse moving track of a test operation page, the position of a button needing to be clicked during testing is confirmed according to the moving track of the mouse, a modeling unit models the whole test page, the position coordinates of the button are confirmed, the button coordinate information is transmitted to the software testing unit by the mouse track scanning unit, the software testing unit tests the card punching function developed by software, the button clicking identification unit judges whether the button clicking is effective during the operation process after the testing operation is finished, the identification result is transmitted to the abnormity early warning unit, and an alarm signal is transmitted to the abnormity processing unit by the abnormity early warning unit when invalid clicking is identified, processing invalid button clicks through an exception processing unit, and transmitting a processed correct test result to a database through a test result output unit;
the method comprises the steps of inputting range data of workers required by different clients for attendance and attendance card punching into a database through a client requirement input unit, transferring the range data of the workers for attendance card punching and correct test result data into a test evaluation unit, comparing and judging whether the test result meets the requirements of the clients through the test evaluation unit, transmitting the data which do not meet the requirements of the clients into an abnormity early warning unit, sending an alarm signal into an adjustment optimization unit through the abnormity early warning unit, replanning and adjusting the card punching effective range of software through the adjustment optimization unit, and transmitting the adjusted data to a software test unit for retesting.
The abnormity early warning unit not only sends out an alarm signal to the adjustment optimization unit when the test result is evaluated to not meet the requirement of a client, but also sends out the alarm signal to the abnormity processing unit due to misoperation in the software test operation process.
The client information input unit inputs address information of different client companies, the client companies are positioned through the GPS positioning unit, and the position coordinate set of all the client companies is confirmed to be (x, y) = { (x)1,y1),(x2,y2),...,(xn,yn) And n represents the number of client companies, and the position coordinate information is transmitted to the client requirement input unit through the client information input unit.
The client requirement input unit receives the position coordinate information of the client, and the set of the effective card punching distances of employees which take the company as the center and are required by the client is stored in the client requirement input unit and is d = { d = }1,d2,...,dnAnd n represents the number of client companies, and the effective employee card punching data required by the client is recorded into the database through the client requirement recording unit.
The software testing unit tests that the set of the effective card punching ranges of the corresponding companies in the card punching function of software development is s = { s =1,s2,...,snAnd calculating an effective distance r in the software card punching function according to the following formula:
wherein the content of the first and second substances,
obtaining a card punching effective distance set designed for the corresponding company as r = { r =
1,r
2,...,r
nN represents the number of client companies, tested effective software card punching data are transmitted to a database through a test result output unit, the effective software card punching distance is calculated through the measured card punching range, the purpose of calculating the effective card punching distance is to compare with the effective employee card punching distance required by a client, and therefore whether the card punching function developed by software can meet the requirements of different clients or not is judged better.
The testing and evaluating unit calls software effective card punching data tested in the database and employee effective card punching data required by a client, and compares the employee effective card punching distance set d required by different clients with the effective distance r in the software card punching function tested one by utilizing the testing and evaluating unit: if it is
The software card punching range is within the effective card punching range of the staff required by the client, so that the requirements of the client can be met; if it is
The method comprises the steps that a user can check the software, the user can check the software according to the user requirement, the user can not use the software to read the software, the user can not use the software, theThe promotion of the development process causes bad influence, thereby delaying the promotion and the marketing of the software.
The adjusting and optimizing unit adjusts the software card punching range after receiving the alarm signal, and adjusts r until r is up to
And the developed software card punching range is within the effective card punching range of the staff required by the client, the adjusted corresponding effective card punching distance data is transmitted to the software testing unit, and the software testing unit is used for retesting until the adjusted effective card punching distance meets the requirements of the client.
When the software testing unit carries out testing operation, the situation of misoperation can appear, the mouse track scanning unit scans the testing operation page and confirms the moving track of the mouse and the position of the point staying in sequence, the moving track of the mouse confirms the position of the button needing to be clicked during testing, and the modeling unit is utilized to model the whole testing operation page: establishing a two-dimensional coordinate system by taking the center of the page as an origin, and scanning to obtain a coordinate set (x) of the positions of buttons clicked by a mouse in sequence’,y’)={(x1 ’,y1 ’),(x2 ’,y2 ’),...,(xm ’,ym ’) M represents the number of buttons to be clicked in the test process, and the shortest distance d between two front and rear buttons arranged in sequence is calculated according to the following formulai ’:
Wherein x isiAbscissa, y, representing a random buttoniRepresenting the ordinate of one button randomly, the shortest distance between the two buttons is D = { D = { D }1 ’,d2 ’,...,dm-1 ’Transmitting the scanned position coordinates of the buttons and the position relationship among the buttons to softwareIn the test unit, the software function is tested through the software test unit, the shortest distance between two adjacent buttons is calculated according to the click sequence after the position coordinates of the buttons in the test operation process are confirmed, the purpose is to quickly confirm the position of the button with invalid click when the button click recognition unit recognizes that the button click is invalid, and therefore early warning is timely given and a bug caused by misoperation can be found conveniently.
When the software testing unit tests the software function, the button click identification unit is used for identifying whether the mouse effectively clicks the button needing to be clicked or not, when the button is identified to be not clicked or invalid, the position information of the button which is not clicked is transmitted to the abnormity early warning unit, and an alarm signal is sent to the abnormity processing unit through the abnormity early warning unit.
After the abnormity processing unit receives the alarm signal, the mouse moving track scanned by the mouse scanning unit and the positions of the stopped points are utilized, the abnormity processing unit is utilized to judge whether the shortest distance between two points stopped by the mouse in sequence is equal to the corresponding shortest distance in the D, corresponding buttons with unequal shortest distances are screened out, the sequence and the positions of the buttons are confirmed, the software testing unit is used for retesting until the testing operation is correct, the testing result is output by the testing result output unit, whether the button is clicked or not is further confirmed by comparing the shortest distance with the shortest distance between the two points stopped when the scanned mouse moves, the vulnerability can be rapidly found out and timely processed, and the delay condition of subsequent popularization and marketing of software is avoided.
The first embodiment is as follows: the client company is positioned through a GPS positioning unit, and the set of the effective card punching distances of employees which are required by the clients and take the company as the center is stored in a client requirement input unit and is d = { d = { d }
1,d
2,d
3,d
4,d
5The unit is meter, and the set of valid card punching ranges of corresponding companies in the card punching function of software development is s = { s =(s) } tested by the software testing unit
1,s
2,s
3,s
4,s
5} = {12000, 14000, 10000, 11000, 9000}, rootAccording to the formula
Obtaining a card punching effective distance set designed for a corresponding company as r = { r =
1,r
2,r
3,r
4,r
5The unit is meter, the tested software effective card punching data are transmitted to a database through a test result output unit, a test evaluation unit calls the tested software effective card punching data in the database and employee effective card punching data required by a client, and a test evaluation unit compares an employee effective card punching distance set d required by different clients with effective distances r in the tested software card punching function one by one: r is
1>d
1,r
2>d
2,r
3<d
3,r
4>d
4,r
5<d
5Through comparison, the designed effective distance r for punching the card is found
1、r
2And r
4The data which can not meet the requirements of customers are transmitted to the abnormity early warning unit, the abnormity early warning unit sends an alarm signal to the adjustment optimization unit, and the adjustment optimization unit adjusts r after receiving the alarm signal
1、r
2And r
4Up to
And the card punching range of the developed software is within the effective card punching range of the employee required by the client.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.