CN116383095A - Smoking test method and system based on RPA robot and readable storage medium - Google Patents
Smoking test method and system based on RPA robot and readable storage medium Download PDFInfo
- Publication number
- CN116383095A CN116383095A CN202310656262.2A CN202310656262A CN116383095A CN 116383095 A CN116383095 A CN 116383095A CN 202310656262 A CN202310656262 A CN 202310656262A CN 116383095 A CN116383095 A CN 116383095A
- Authority
- CN
- China
- Prior art keywords
- verification
- test
- data
- test case
- rpa robot
- 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.)
- Granted
Links
- 238000003860 storage Methods 0.000 title claims abstract description 18
- 238000010998 test method Methods 0.000 title claims abstract description 16
- 230000000391 smoking effect Effects 0.000 title abstract description 7
- 238000012795 verification Methods 0.000 claims abstract description 173
- 238000012360 testing method Methods 0.000 claims abstract description 168
- 239000000779 smoke Substances 0.000 claims abstract description 35
- 230000000007 visual effect Effects 0.000 claims abstract description 23
- 238000000034 method Methods 0.000 claims abstract description 21
- 238000013101 initial test Methods 0.000 claims description 27
- 238000004806 packaging method and process Methods 0.000 claims description 19
- 238000009877 rendering Methods 0.000 claims description 15
- 230000006870 function Effects 0.000 claims description 13
- 230000009193 crawling Effects 0.000 claims description 9
- 230000008859 change Effects 0.000 claims description 7
- 230000000903 blocking effect Effects 0.000 description 8
- 238000004364 calculation method Methods 0.000 description 8
- 238000013461 design Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000005538 encapsulation Methods 0.000 description 4
- 238000010276 construction Methods 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 241000282414 Homo sapiens Species 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- NFEIBWMZVIVJLQ-UHFFFAOYSA-N mexiletine hydrochloride Chemical compound [Cl-].CC([NH3+])COC1=C(C)C=CC=C1C NFEIBWMZVIVJLQ-UHFFFAOYSA-N 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012800 visualization Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000004801 process automation Methods 0.000 description 1
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/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0486—Drag-and-drop
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a smoke test method, a system and a readable storage medium based on an RPA robot, wherein the method comprises the following steps: acquiring verification association data and test cases based on an RPA robot, wherein the verification association data comprises service data corresponding to different menu options in a test system; identifying verification objects of different dimensions based on the verification association data, wherein the verification objects comprise different menu options in the test system; and verifying the verification object based on the test case, wherein the test case comprises a graphic case, and when verifying, the package component is called to multiplex with the package flow, and/or element grabbing editing is performed based on a webpage interface of the menu option. The invention can utilize the RPA robot to complete the automatic test flow of the test case function test and the smoking test without limitation, and can build the test case through the visual interface during the test.
Description
Technical Field
The invention relates to the technical field of automatic application, in particular to a smoke test method, a smoke test system and a readable storage medium based on an RPA robot.
Background
The RPA is a program capable of completing work according to specific instructions, can replace the contents of low added value, high repeatability, clear rule, data island and the like of manual processing, reduces the labor intensity of the manual work, reduces the error rate, accelerates the service flow and realizes the intelligent processing of work. At present, the RPA is widely applied to a plurality of fields such as finance, tax, supply chain, human resources, information maintenance and the like.
The method has the advantages that the automatic test case is built, the variability of page elements of the production and test environment is large, the code development level capability of a case builder is weak, the reusability of the case is low, and a large amount of structured and unstructured data are required to be acquired and stored uniformly. The test case scene operation is easy to make mistakes, the construction of the test case is complicated due to the large code quantity, the construction is complicated due to the fact that the code quantity is large, different kinds of data are difficult to integrate, when the problems are encountered at present, maintenance of the test case is required to be carried out after corresponding page element content responsible persons update, fault tolerance is carried out aiming at a waiting mechanism which is low in stability of a tested environment and needs to be carried out for a long time, and the requirements of quick deployment and low maintenance quantity of an automatic test cannot be met.
Disclosure of Invention
The invention aims to provide a smoke test method, a smoke test system and a readable storage medium based on an RPA robot, which can utilize the RPA robot to complete the function test of a test case without limitation and the automatic test flow of the smoke test, and can carry out the establishment of the test case through a visual interface during the test.
The first aspect of the invention provides a smoke test method based on an RPA robot, which comprises the following steps:
acquiring verification association data and test cases based on an RPA robot, wherein the verification association data comprises service data corresponding to different menu options in a test system;
identifying verification objects of different dimensions based on the verification association data, wherein the verification objects comprise different menu options in the test system;
and verifying the verification object based on the test case, wherein the test case comprises a graphic case, and when verifying, the package component is called to multiplex with the package flow, and/or element grabbing editing is performed based on a webpage interface of the menu option.
In this scheme, acquire based on RPA robot the test case specifically includes:
Obtaining an initial test case by simulating manual operation of a user based on an RPA design center to obtain graphical operation click;
displaying the initial test case by using a preset visual interface based on an RPA design center, wherein the display mode comprises a flow chart form;
and acquiring the initial test case successfully displayed by the visual interface as the test case.
In this scheme, obtain based on RPA robot and verify the association data, specifically include:
acquiring a verification point to be tested based on a current test system;
identifying corresponding menu options based on the verification point, wherein the verification point at least comprises one menu option;
and acquiring service data of the corresponding menu options based on the RPA robot to obtain the verification associated data, wherein the service data comprises structured data and/or unstructured data.
In this solution, the identifying verification objects in different dimensions based on the verification association data specifically includes:
identifying different ones of the business data based on the verification association data;
and judging a menu function verification dimension based on the identified service data to obtain the corresponding menu option, wherein the identified menu option at least comprises one service data.
In this scheme, call encapsulation subassembly and encapsulation flow multiplex when verifying, specifically include:
acquiring an input newly-built test case based on an RPA design center, wherein the newly-built test case comprises a case flow, and multiplexing the newly-built test case based on the case flow as a template flow and as a packaging flow during verification; and/or
And acquiring input component dragging data based on the RPA design center to identify corresponding packaging components in the component toolbox, so that multiplexing is performed based on the packaging components.
In this scheme, the element snatch editing is performed based on the web page interface of the menu option during verification, and specifically includes:
identifying corresponding crawling data based on user selection in a web page interface;
and positioning the selected page element based on the grabbing data, and editing the page element based on a preset element change component, wherein the editing mode comprises dynamic rendering of the page element.
The second aspect of the present invention also provides a smoke test system based on an RPA robot, including a memory and a processor, where the memory includes a smoke test method program based on the RPA robot, and when the smoke test method program based on the RPA robot is executed by the processor, the following steps are implemented:
Acquiring verification association data and test cases based on an RPA robot, wherein the verification association data comprises service data corresponding to different menu options in a test system;
identifying verification objects of different dimensions based on the verification association data, wherein the verification objects comprise different menu options in the test system;
and verifying the verification object based on the test case, wherein the test case comprises a graphic case, and when verifying, the package component is called to multiplex with the package flow, and/or element grabbing editing is performed based on a webpage interface of the menu option.
In this scheme, acquire based on RPA robot the test case specifically includes:
obtaining an initial test case by simulating manual operation of a user based on an RPA design center to obtain graphical operation click;
displaying the initial test case by using a preset visual interface based on an RPA design center, wherein the display mode comprises a flow chart form;
and acquiring the initial test case successfully displayed by the visual interface as the test case.
In this scheme, obtain based on RPA robot and verify the association data, specifically include:
Acquiring a verification point to be tested based on a current test system;
identifying corresponding menu options based on the verification point, wherein the verification point at least comprises one menu option;
and acquiring service data of the corresponding menu options based on the RPA robot to obtain the verification associated data, wherein the service data comprises structured data and/or unstructured data.
In this solution, the identifying verification objects in different dimensions based on the verification association data specifically includes:
identifying different ones of the business data based on the verification association data;
and judging a menu function verification dimension based on the identified service data to obtain the corresponding menu option, wherein the identified menu option at least comprises one service data.
In this scheme, call encapsulation subassembly and encapsulation flow multiplex when verifying, specifically include:
acquiring an input newly-built test case based on an RPA design center, wherein the newly-built test case comprises a case flow, and multiplexing the newly-built test case based on the case flow as a template flow and as a packaging flow during verification; and/or
And acquiring input component dragging data based on the RPA design center to identify corresponding packaging components in the component toolbox, so that multiplexing is performed based on the packaging components.
In this scheme, the element snatch editing is performed based on the web page interface of the menu option during verification, and specifically includes:
identifying corresponding crawling data based on user selection in a web page interface;
and positioning the selected page element based on the grabbing data, and editing the page element based on a preset element change component, wherein the editing mode comprises dynamic rendering of the page element.
A third aspect of the present invention provides a computer-readable storage medium having embodied therein a machine-based smoke test method program of an RPA robot, which when executed by a processor, implements the steps of a smoke test method of an RPA robot as described in any one of the above.
The invention discloses a smoking test method, a system and a readable storage medium based on an RPA robot, which can utilize the RPA robot to complete the function test of a test case without limitation and the automatic test flow of the smoking test, and can carry out the construction of the test case through a visual interface during the test; the test case is clear in design and can simulate the actual use scene, the test case can be obtained immediately after being seen, the design time of the test case is greatly shortened, and the logic is clear when the test case is modified.
Drawings
FIG. 1 shows a flow chart of a smoke test method based on an RPA robot of the present invention;
fig. 2 shows a block diagram of an RPA robot-based smoke test system of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description. It should be noted that, in the case of no conflict, the embodiments of the present application and the features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those described herein, and therefore the scope of the present invention is not limited to the specific embodiments disclosed below.
In the scheme, the association data with the verification point is identified and acquired based on the RPA (Robotic process automation) robot, verification dimensions are different according to the menu functions, and meanwhile, the menu function service data exist in different forms, and structured data and unstructured data can be acquired and stored uniformly; the system test case is displayed in a flow chart form through the visual interface of the RPA design center, and a user can use the RPA design center to perform graphical operation and click during initial test case without writing a code script, so that the application simulates manual operation of human beings, has clear process and can simulate actual use scenes, achieves what you see is what you get, greatly shortens the design time of the test case, and has clear logic during test case modification; in addition, the RPA robot can support scene-based recognition capability provision by invoking a general-purpose OCR recognition service, an out-of-box customization service.
Specifically, fig. 1 shows a flow chart of a smoke test method based on an RPA robot.
As shown in fig. 1, the application discloses a smoke test method based on an RPA robot, which comprises the following steps:
s102, acquiring verification association data and test cases based on an RPA robot, wherein the verification association data comprises service data corresponding to different menu options in a test system;
s104, identifying verification objects with different dimensions based on the verification association data, wherein the verification objects comprise different menu options in the test system;
and S106, verifying the verification object based on the test case, wherein the test case comprises a graphic case, and when verifying, calling a packaging component to multiplex with a packaging flow and/or performing element grabbing editing based on a webpage interface of the menu option.
It should be noted that, in this embodiment, the verification association data and the test case are obtained based on the RPA robot, where the test case is input by the RPA design center, the verification association data includes service data corresponding to different menu options in the test system, that is, a certain test system (e.g., a financial system) to be tested, the corresponding verification association data can be obtained immediately by accessing the RPA robot, then verification objects with different dimensions are identified based on the verification association data, that is, different menu options in the test system are identified correspondingly, verification is performed on the verification objects based on the test case, where the test case includes an illustration case, that is, the different menu options are tested based on the test case, and when testing, the visual test is performed by using the illustration case, when testing, the verification test is performed, the package assembly is invoked to multiplex with the package flow, and/or element grabbing editing is performed based on a web page interface of the menu options, and the specific verification process is described later.
According to the embodiment of the invention, the test case is acquired based on the RPA robot, which specifically comprises the following steps:
obtaining an initial test case by simulating manual operation of a user based on an RPA design center to obtain graphical operation click;
displaying the initial test case by using a preset visual interface based on an RPA design center, wherein the display mode comprises a flow chart form;
and acquiring the initial test case successfully displayed by the visual interface as the test case.
It should be noted that, in this embodiment, a YG-RPA design center, that is, a high beam RPA design platform, is adopted, and an initial test case is obtained by clicking an operation simulating manual operation of a user based on the RPA design center, that is, the obtained initial test case may be graphically displayed, so that the initial test case is displayed by using a preset visual interface based on the RPA design center, and in particular, may be displayed in a flowchart form, where only when a corresponding initial test case that is successfully displayed based on the visual interface may be used as the test case.
According to the embodiment of the invention, the verification association data is acquired based on the RPA robot, which specifically comprises the following steps:
Acquiring a verification point to be tested based on a current test system;
identifying corresponding menu options based on the verification point, wherein the verification point at least comprises one menu option;
and acquiring service data of the corresponding menu options based on the RPA robot to obtain the verification associated data, wherein the service data comprises structured data and/or unstructured data.
It should be noted that, in this embodiment, when performing a verification test on a financial system based on an RPA robot, a verification point to be tested may be obtained based on the current financial system, and the verification point corresponds to each menu option in the financial system, where the verification point includes at least one menu option, and then service data in the menu option is obtained based on the RPA robot, where the obtained service data includes structured data and/or unstructured data.
According to an embodiment of the present invention, the identifying verification objects of different dimensions based on the verification association data specifically includes:
identifying different ones of the business data based on the verification association data;
and judging a menu function verification dimension based on the identified service data to obtain the corresponding menu option, wherein the identified menu option at least comprises one service data.
It should be noted that, in this embodiment, the above embodiment describes that the verification association data is service data obtained based on each menu option in the test system (financial system), so when identifying verification objects with different dimensions, different service data may be identified based on the verification association data, and then, menu function verification dimension interpretation is performed based on the corresponding service data to identify verification objects that need to be verified, that is, verification objects include corresponding menu options.
According to the embodiment of the invention, the package component is invoked to multiplex with the package flow during verification, and the method specifically comprises the following steps:
acquiring an input newly-built test case based on an RPA design center, wherein the newly-built test case comprises a case flow, and multiplexing the newly-built test case based on the case flow as a template flow and as a packaging flow during verification; and/or
And acquiring input component dragging data based on the RPA design center to identify corresponding packaging components in the component toolbox, so that multiplexing is performed based on the packaging components.
It should be noted that, in this embodiment, the multiplexing of the package component and the package flow is invoked during verification, which specifically includes three cases, one of which is to obtain the input new test case based on the RPA design center only; secondly, identifying a corresponding packaging component in the component toolbox based on the component dragging data input by the RPA design center, and thirdly, obtaining a new test case input by a user based on the RPA design center, and testing the corresponding new test case as a template flow based on a graphical flow in the new test case input by the user during verification; when the package kit is used for identifying the corresponding package component in the package kit based on the component dragging data input by the user acquired by the RPA design center for multiplexing, unlike the newly-built test case, the newly-built test case is a complete graphical case, the component dragging data input by the user is preference data selected by the user in a targeted manner, and when the package kit is used for verification, the component dragging data input by the user is required to be identified for corresponding multiplexing, so that the corresponding verification process is visualized, the package component selected by the user is acquired for visualization, the use experience of the user can be enhanced, and the standardized (package component) verification can be performed on some specific data.
According to the embodiment of the invention, element grabbing editing is performed based on the webpage interface of the menu option during verification, and the method specifically comprises the following steps:
identifying corresponding crawling data based on user selection in a web page interface;
and positioning the selected page element based on the grabbing data, and editing the page element based on a preset element change component, wherein the editing mode comprises dynamic rendering of the page element.
It should be noted that, in this embodiment, the foregoing embodiment illustrates that the test system corresponds to different menu options, and the elements selected by the user on the web page interface corresponding to the different menu options are also different, so that the corresponding crawling data needs to be identified based on the user selection in the web page interface, so that the page element identification is performed based on the crawling data to locate the page element selected by the user, so that the page element is edited based on the preset element change component, and the editing mode includes dynamically rendering the page element.
It should be noted that the positioning the selected page element based on the grabbing data specifically includes:
acquiring mouse click data of a user on a webpage interface to obtain the grabbing data;
Acquiring positioning content corresponding to page data selected by a user based on the grabbing data;
and acquiring the selected page element based on grammar recognition and/or button recognition of the positioning content.
It should be noted that, in this embodiment, since different clicking data exists when the user clicks on the web interface with the mouse, which may be that the interface is clicked empty or may be that the user clicks on a page element in the interface, identification of positioning content is required according to the mouse clicking data of the user on the web interface, specifically, the selected page element is obtained through grammar identification and/or button identification, where, taking button identification as an example, specifically, a corresponding element button exists on the display interface, when the user clicks on the corresponding button based on the mouse, it is indicated that the user selects the page element corresponding to the current button.
It is worth mentioning that the method further comprises:
upon verification, defined metric data is collected for assertion, wherein,
acquiring operation data for verifying service data in the menu options;
and judging an assertion result based on the index data corresponding to the operation data acquisition.
It should be noted that, in this embodiment, the assertion (assertion) is a first-order logic (e.g., a logic judgment formula that results are true or false) in the program, so as to represent the result expected by the verifying software developer—when the program is executed to the assertion position, the corresponding assertion should be true, if the assertion is not true, the program will stop executing, and gives error information, so that, when verifying, the defined index data is collected to assert, specifically, the service data in the menu option is collected to execute the corresponding index data to assert, where the test system described in the above embodiment is a financial system, and when the corresponding assertion position is identified, taking the month expense index as an example, when the corresponding month expense position is identified, if the month expense in the running data exceeds "20w", the assertion is indicated as true, otherwise, it is not true.
It should be noted that the method further includes obtaining a verification time parameter output, specifically including:
acquiring waiting time of element rendering of a page during dynamic rendering;
acquiring the blocking time of page display and/or package multiplexing during verification;
and judging time parameters based on the waiting time and the clamping time to output a verification time result.
It should be noted that, in this embodiment, since it takes time for loading the page element and multiplexing the package component when performing the verification test, the corresponding verification time result can be output by obtaining the corresponding time parameter, specifically, the waiting time of the page rendering element during dynamic rendering is obtained; and obtaining the time of the page for display and/or package multiplexing, and obtaining the corresponding verification time result by judging the waiting time and the time parameter of the time, so that the user can take different countermeasures accordingly according to the result of the verification time.
It should be noted that the determining the time parameter based on the waiting time and the katen time to output the verification time result specifically includes:
Based on the comparison of the waiting time and the waiting limit value, outputting a waiting time overtime result if the waiting time exceeds the waiting limit value; and/or
Based on the comparison of the stuck time and the stuck limit value, outputting a stuck time overtime result if the stuck time exceeds the stuck limit value; and/or
If the waiting time does not exceed the waiting limit value and the blocking time does not exceed the blocking limit value, substituting the waiting time and the blocking time into a time calculation formula to judge, and if the calculation result exceeds a preset threshold value, outputting a running time overtime result.
It should be noted that, in this embodiment, the verification time result includes a latency timeout result, and/or a katon timeout result, and/or a run time timeout result, specifically, if the latency isExceeding the waiting limit ∈>Outputting a waiting time timeout result and/or if the card time +.>Exceeding said katon limit->Outputting a result of the timeout of the pause time, and/or substituting the waiting time and the pause time into a time calculation formula to judge if the waiting time does not exceed the waiting limit value and the pause time does not exceed the pause limit value, wherein the formula is specifically as follows: Wherein->The time parameter factor is variable, but +.>I.e. the product of the two is "1", due to said preset threshold +.>Is a dynamic threshold of user input, e.g. +.>Taking "2s", as the calculation result +.>Exceed->And when the running time exceeds the preset threshold, outputting a running time overtime result.
Fig. 2 shows a block diagram of an RPA robot-based smoke test system of the present invention.
As shown in fig. 2, the invention discloses a smoke test system based on an RPA robot, which comprises a memory and a processor, wherein the memory comprises a smoke test method program based on the RPA robot, and the smoke test method program based on the RPA robot realizes the following steps when being executed by the processor:
acquiring verification association data and test cases based on an RPA robot, wherein the verification association data comprises service data corresponding to different menu options in a test system;
identifying verification objects of different dimensions based on the verification association data, wherein the verification objects comprise different menu options in the test system;
and verifying the verification object based on the test case, wherein the test case comprises a graphic case, and when verifying, the package component is called to multiplex with the package flow, and/or element grabbing editing is performed based on a webpage interface of the menu option.
It should be noted that, in this embodiment, the verification association data and the test case are obtained based on the RPA robot, where the test case is input by the RPA design center, the verification association data includes service data corresponding to different menu options in the test system, that is, a certain test system (e.g., a financial system) to be tested, the corresponding verification association data can be obtained immediately by accessing the RPA robot, then verification objects with different dimensions are identified based on the verification association data, that is, different menu options in the test system are identified correspondingly, verification is performed on the verification objects based on the test case, where the test case includes an illustration case, that is, the different menu options are tested based on the test case, and when testing, the visual test is performed by using the illustration case, when testing, the verification test is performed, the package assembly is invoked to multiplex with the package flow, and/or element grabbing editing is performed based on a web page interface of the menu options, and the specific verification process is described later.
According to the embodiment of the invention, the test case is acquired based on the RPA robot, which specifically comprises the following steps:
Obtaining an initial test case by simulating manual operation of a user based on an RPA design center to obtain graphical operation click;
displaying the initial test case by using a preset visual interface based on an RPA design center, wherein the display mode comprises a flow chart form;
and acquiring the initial test case successfully displayed by the visual interface as the test case.
It should be noted that, in this embodiment, a YG-RPA design center, that is, a high beam RPA design platform, is adopted, and an initial test case is obtained by clicking an operation simulating manual operation of a user based on the RPA design center, that is, the obtained initial test case may be graphically displayed, so that the initial test case is displayed by using a preset visual interface based on the RPA design center, and in particular, may be displayed in a flowchart form, where only when a corresponding initial test case that is successfully displayed based on the visual interface may be used as the test case.
According to the embodiment of the invention, the verification association data is acquired based on the RPA robot, which specifically comprises the following steps:
acquiring a verification point to be tested based on a current test system;
Identifying corresponding menu options based on the verification point, wherein the verification point at least comprises one menu option;
and acquiring service data of the corresponding menu options based on the RPA robot to obtain the verification associated data, wherein the service data comprises structured data and/or unstructured data.
It should be noted that, in this embodiment, when performing a verification test on a financial system based on an RPA robot, a verification point to be tested may be obtained based on the current financial system, and the verification point corresponds to each menu option in the financial system, where the verification point includes at least one menu option, and then service data in the menu option is obtained based on the RPA robot, where the obtained service data includes structured data and/or unstructured data.
According to an embodiment of the present invention, the identifying verification objects of different dimensions based on the verification association data specifically includes:
identifying different ones of the business data based on the verification association data;
and judging a menu function verification dimension based on the identified service data to obtain the corresponding menu option, wherein the identified menu option at least comprises one service data.
It should be noted that, in this embodiment, the above embodiment describes that the verification association data is service data obtained based on each menu option in the test system (financial system), so when identifying verification objects with different dimensions, different service data may be identified based on the verification association data, and then, menu function verification dimension interpretation is performed based on the corresponding service data to identify verification objects that need to be verified, that is, verification objects include corresponding menu options.
According to the embodiment of the invention, the package component is invoked to multiplex with the package flow during verification, and the method specifically comprises the following steps:
acquiring an input newly-built test case based on an RPA design center, wherein the newly-built test case comprises a case flow, and multiplexing the newly-built test case based on the case flow as a template flow and as a packaging flow during verification; and/or
And acquiring input component dragging data based on the RPA design center to identify corresponding packaging components in the component toolbox, so that multiplexing is performed based on the packaging components.
It should be noted that, in this embodiment, the multiplexing of the package component and the package flow is invoked during verification, which specifically includes three cases, one of which is to obtain the input new test case based on the RPA design center only; secondly, identifying a corresponding packaging component in the component toolbox based on the component dragging data input by the RPA design center, and thirdly, obtaining a new test case input by a user based on the RPA design center, and testing the corresponding new test case as a template flow based on a graphical flow in the new test case input by the user during verification; when the package kit is used for identifying the corresponding package component in the package kit based on the component dragging data input by the user acquired by the RPA design center for multiplexing, unlike the newly-built test case, the newly-built test case is a complete graphical case, the component dragging data input by the user is preference data selected by the user in a targeted manner, and when the package kit is used for verification, the component dragging data input by the user is required to be identified for corresponding multiplexing, so that the corresponding verification process is visualized, the package component selected by the user is acquired for visualization, the use experience of the user can be enhanced, and the standardized (package component) verification can be performed on some specific data.
According to the embodiment of the invention, element grabbing editing is performed based on the webpage interface of the menu option during verification, and the method specifically comprises the following steps:
identifying corresponding crawling data based on user selection in a web page interface;
and positioning the selected page element based on the grabbing data, and editing the page element based on a preset element change component, wherein the editing mode comprises dynamic rendering of the page element.
It should be noted that, in this embodiment, the foregoing embodiment illustrates that the test system corresponds to different menu options, and the elements selected by the user on the web page interface corresponding to the different menu options are also different, so that the corresponding crawling data needs to be identified based on the user selection in the web page interface, so that the page element identification is performed based on the crawling data to locate the page element selected by the user, so that the page element is edited based on the preset element change component, and the editing mode includes dynamically rendering the page element.
It should be noted that the positioning the selected page element based on the grabbing data specifically includes:
acquiring mouse click data of a user on a webpage interface to obtain the grabbing data;
Acquiring positioning content corresponding to page data selected by a user based on the grabbing data;
and acquiring the selected page element based on grammar recognition and/or button recognition of the positioning content.
It should be noted that, in this embodiment, since different clicking data exists when the user clicks on the web interface with the mouse, which may be that the interface is clicked empty or may be that the user clicks on a page element in the interface, identification of positioning content is required according to the mouse clicking data of the user on the web interface, specifically, the selected page element is obtained through grammar identification and/or button identification, where, taking button identification as an example, specifically, a corresponding element button exists on the display interface, when the user clicks on the corresponding button based on the mouse, it is indicated that the user selects the page element corresponding to the current button.
It is worth mentioning that the method further comprises:
upon verification, defined metric data is collected for assertion, wherein,
acquiring operation data for verifying service data in the menu options;
and judging an assertion result based on the index data corresponding to the operation data acquisition.
It should be noted that, in this embodiment, the assertion (assertion) is a first-order logic (e.g., a logic judgment formula that results are true or false) in the program, so as to represent the result expected by the verifying software developer—when the program is executed to the assertion position, the corresponding assertion should be true, if the assertion is not true, the program will stop executing, and gives error information, so that, when verifying, the defined index data is collected to assert, specifically, the service data in the menu option is collected to execute the corresponding index data to assert, where the test system described in the above embodiment is a financial system, and when the corresponding assertion position is identified, taking the month expense index as an example, when the corresponding month expense position is identified, if the month expense in the running data exceeds "20w", the assertion is indicated as true, otherwise, it is not true.
It should be noted that the method further includes obtaining a verification time parameter output, specifically including:
acquiring waiting time of element rendering of a page during dynamic rendering;
acquiring the blocking time of page display and/or package multiplexing during verification;
and judging time parameters based on the waiting time and the clamping time to output a verification time result.
It should be noted that, in this embodiment, since it takes time for loading the page element and multiplexing the package component when performing the verification test, the corresponding verification time result can be output by obtaining the corresponding time parameter, specifically, the waiting time of the page rendering element during dynamic rendering is obtained; and obtaining the time of the page for display and/or package multiplexing, and obtaining the corresponding verification time result by judging the waiting time and the time parameter of the time, so that the user can take different countermeasures accordingly according to the result of the verification time.
It should be noted that the determining the time parameter based on the waiting time and the katen time to output the verification time result specifically includes:
Based on the comparison of the waiting time and the waiting limit value, outputting a waiting time overtime result if the waiting time exceeds the waiting limit value; and/or
Based on the comparison of the stuck time and the stuck limit value, outputting a stuck time overtime result if the stuck time exceeds the stuck limit value; and/or
If the waiting time does not exceed the waiting limit value and the blocking time does not exceed the blocking limit value, substituting the waiting time and the blocking time into a time calculation formula to judge, and if the calculation result exceeds a preset threshold value, outputting a running time overtime result.
It should be noted that, in this embodiment, the verification time result includes a latency timeout result, and/or a katon timeout result, and/or a run time timeout result, specifically, if the latency isExceeding the waiting limit ∈>Outputting a waiting time timeout result and/or if the card time +.>Exceeding said katon limit->Outputting a result of the timeout of the pause time, and/or substituting the waiting time and the pause time into a time calculation formula to judge if the waiting time does not exceed the waiting limit value and the pause time does not exceed the pause limit value, wherein the formula is specifically as follows: Wherein->The time parameter factor is variable, but +.>I.e. the product of the two is "1", due to said preset threshold +.>Is a dynamic threshold of user input, e.g. +.>Taking "2s", as the calculation result +.>Exceed->And when the running time exceeds the preset threshold, outputting a running time overtime result.
A third aspect of the present invention provides a computer-readable storage medium having embodied therein a smoke test method program based on an RPA robot, which when executed by a processor, implements the steps of a smoke test method based on an RPA robot as described in any one of the above.
The method, the system and the readable storage medium for testing smoking based on the RPA robot can utilize the RPA robot to complete the function test of the test case without limitation and the automatic test flow of the smoking test, and can build the test case through a visual interface during the test.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units; can be located in one place or distributed to a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present invention may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, or the like, which can store program codes.
Alternatively, the above-described integrated units of the present invention may be stored in a computer-readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in essence or a part contributing to the prior art in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.
Claims (10)
1. The smoke test method based on the RPA robot is characterized by comprising the following steps of:
acquiring verification association data and test cases based on an RPA robot, wherein the verification association data comprises service data corresponding to different menu options in a test system;
identifying verification objects of different dimensions based on the verification association data, wherein the verification objects comprise different menu options in the test system;
And verifying the verification object based on the test case, wherein the test case comprises a graphic case, and when verifying, the package component is called to multiplex with the package flow, and/or element grabbing editing is performed based on a webpage interface of the menu option.
2. The smoke testing method based on the RPA robot according to claim 1, wherein the method for obtaining the test case based on the RPA robot specifically comprises:
obtaining an initial test case by simulating manual operation of a user based on an RPA design center to obtain graphical operation click;
displaying the initial test case by using a preset visual interface based on an RPA design center, wherein the display mode comprises a flow chart form;
and acquiring the initial test case successfully displayed by the visual interface as the test case.
3. The smoke testing method based on the RPA robot according to claim 1, wherein the obtaining the verification association data based on the RPA robot specifically comprises:
acquiring a verification point to be tested based on a current test system;
identifying corresponding menu options based on the verification point, wherein the verification point at least comprises one menu option;
And acquiring service data of the corresponding menu options based on the RPA robot to obtain the verification associated data, wherein the service data comprises structured data and/or unstructured data.
4. A smoke testing method based on an RPA robot according to claim 3, wherein the identifying verification objects of different dimensions based on the verification association data specifically comprises:
identifying different ones of the business data based on the verification association data;
and judging a menu function verification dimension based on the identified service data to obtain the corresponding menu option, wherein the identified menu option at least comprises one service data.
5. The smoke test method based on the RPA robot according to claim 1, wherein the package component is invoked to be multiplexed with the package flow during verification, specifically comprising:
acquiring an input newly-built test case based on an RPA design center, wherein the newly-built test case comprises a case flow, and multiplexing the newly-built test case based on the case flow as a template flow and as a packaging flow during verification; and/or
And acquiring input component dragging data based on the RPA design center to identify corresponding packaging components in the component toolbox, so that multiplexing is performed based on the packaging components.
6. The smoke test method based on the RPA robot according to claim 1, wherein the element grabbing editing is performed based on the web interface of the menu option during verification, specifically comprising:
identifying corresponding crawling data based on user selection in a web page interface;
and positioning the selected page element based on the grabbing data, and editing the page element based on a preset element change component, wherein the editing mode comprises dynamic rendering of the page element.
7. The smoke test system based on the RPA robot is characterized by comprising a memory and a processor, wherein the memory comprises a smoke test method program based on the RPA robot, and the smoke test method program based on the RPA robot realizes the following steps when being executed by the processor:
acquiring verification association data and test cases based on an RPA robot, wherein the verification association data comprises service data corresponding to different menu options in a test system;
identifying verification objects of different dimensions based on the verification association data, wherein the verification objects comprise different menu options in the test system;
and verifying the verification object based on the test case, wherein the test case comprises a graphic case, and when verifying, the package component is called to multiplex with the package flow, and/or element grabbing editing is performed based on a webpage interface of the menu option.
8. The smoke testing system based on an RPA robot of claim 7, wherein the obtaining the test case based on the RPA robot specifically comprises:
obtaining an initial test case by simulating manual operation of a user based on an RPA design center to obtain graphical operation click;
displaying the initial test case by using a preset visual interface based on an RPA design center, wherein the display mode comprises a flow chart form;
and acquiring the initial test case successfully displayed by the visual interface as the test case.
9. The smoke testing system based on an RPA robot according to claim 7, wherein the obtaining the verification association data based on the RPA robot specifically comprises:
acquiring a verification point to be tested based on a current test system;
identifying corresponding menu options based on the verification point, wherein the verification point at least comprises one menu option;
and acquiring service data of the corresponding menu options based on the RPA robot to obtain the verification associated data, wherein the service data comprises structured data and/or unstructured data.
10. A computer readable storage medium, characterized in that the computer readable storage medium comprises a smoke test method program based on an RPA robot, which when executed by a processor, implements the steps of a smoke test method based on an RPA robot according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310656262.2A CN116383095B (en) | 2023-06-05 | 2023-06-05 | Smoking test method and system based on RPA robot and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310656262.2A CN116383095B (en) | 2023-06-05 | 2023-06-05 | Smoking test method and system based on RPA robot and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116383095A true CN116383095A (en) | 2023-07-04 |
CN116383095B CN116383095B (en) | 2023-11-24 |
Family
ID=86969803
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310656262.2A Active CN116383095B (en) | 2023-06-05 | 2023-06-05 | Smoking test method and system based on RPA robot and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116383095B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113127370A (en) * | 2021-05-14 | 2021-07-16 | 中国工商银行股份有限公司 | Report system smoking test method, RPA robot and system |
CN113448844A (en) * | 2021-06-21 | 2021-09-28 | 青岛海尔科技有限公司 | Method and device for regression testing and electronic equipment |
CN114218097A (en) * | 2021-12-13 | 2022-03-22 | 平安证券股份有限公司 | Test case generation method and device, computer equipment and storage medium |
CN114830156A (en) * | 2019-12-20 | 2022-07-29 | 尤帕斯公司 | System and computer-implemented method for analyzing test automation workflows for Robotic Process Automation (RPA) |
CN115016960A (en) * | 2022-08-08 | 2022-09-06 | 杭州实在智能科技有限公司 | Configurable RPA robot full-flow information notification processing method and system |
CN115309648A (en) * | 2022-08-11 | 2022-11-08 | 北京至臻云智能科技有限公司 | Robot automation process management method and system |
-
2023
- 2023-06-05 CN CN202310656262.2A patent/CN116383095B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114830156A (en) * | 2019-12-20 | 2022-07-29 | 尤帕斯公司 | System and computer-implemented method for analyzing test automation workflows for Robotic Process Automation (RPA) |
CN113127370A (en) * | 2021-05-14 | 2021-07-16 | 中国工商银行股份有限公司 | Report system smoking test method, RPA robot and system |
CN113448844A (en) * | 2021-06-21 | 2021-09-28 | 青岛海尔科技有限公司 | Method and device for regression testing and electronic equipment |
CN114218097A (en) * | 2021-12-13 | 2022-03-22 | 平安证券股份有限公司 | Test case generation method and device, computer equipment and storage medium |
CN115016960A (en) * | 2022-08-08 | 2022-09-06 | 杭州实在智能科技有限公司 | Configurable RPA robot full-flow information notification processing method and system |
CN115309648A (en) * | 2022-08-11 | 2022-11-08 | 北京至臻云智能科技有限公司 | Robot automation process management method and system |
Also Published As
Publication number | Publication date |
---|---|
CN116383095B (en) | 2023-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11068382B2 (en) | Software testing and verification | |
CN109783388B (en) | UI (user interface) automatic testing method and device and electronic equipment | |
CN109542789B (en) | Code coverage rate statistical method and device | |
CN106776338B (en) | Test method, test device and server | |
CN111026670B (en) | Test case generation method, test case generation device and storage medium | |
CN110554962A (en) | Regression testing process covering method, server and computer readable storage medium | |
CN105117205A (en) | Web page editing method and web page editing device | |
CN111611612A (en) | Block chain-based integrating system, device, storage medium and operation method thereof | |
CN114238134A (en) | Test result display method, device, equipment and storage medium | |
CN112882930A (en) | Automatic testing method and device, storage medium and electronic equipment | |
CN111913878A (en) | Program analysis result-based bytecode instrumentation method, device and storage medium | |
CN112905451A (en) | Automatic testing method and device for application program | |
CN116383095B (en) | Smoking test method and system based on RPA robot and readable storage medium | |
CN116719736A (en) | Test case generation method and device for testing software interface | |
CN111459774A (en) | Method, device and equipment for acquiring flow of application program and storage medium | |
CN115757174A (en) | Database difference detection method and device | |
CN114880239A (en) | Interface automation testing framework and method based on data driving | |
CN114297961A (en) | Chip test case processing method and related device | |
CN113609823A (en) | Method and device for editing questionnaire logic, terminal equipment and storage medium | |
CN113672509A (en) | Automatic testing method, device, testing platform and storage medium | |
CN113051262A (en) | Data quality inspection method, device, equipment and storage medium | |
CN109213669B (en) | Page performance detection method and device | |
CN111652122A (en) | Configuration method and device of vision system | |
CN115292418B (en) | Cross-system business process automatic processing method and system | |
CN114968687A (en) | Traversal testing method, device, electronic equipment, program product and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |