CN113868131A - Visual test case construction method and related equipment - Google Patents

Visual test case construction method and related equipment Download PDF

Info

Publication number
CN113868131A
CN113868131A CN202111128997.5A CN202111128997A CN113868131A CN 113868131 A CN113868131 A CN 113868131A CN 202111128997 A CN202111128997 A CN 202111128997A CN 113868131 A CN113868131 A CN 113868131A
Authority
CN
China
Prior art keywords
component
business
area
service
test case
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.)
Pending
Application number
CN202111128997.5A
Other languages
Chinese (zh)
Inventor
王涛
孙俊
徐康
郭军英
赵晨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jingdong Technology Holding Co Ltd
Original Assignee
Jingdong Technology Holding Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jingdong Technology Holding Co Ltd filed Critical Jingdong Technology Holding Co Ltd
Priority to CN202111128997.5A priority Critical patent/CN113868131A/en
Publication of CN113868131A publication Critical patent/CN113868131A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

According to the visual test case construction method and the related equipment, a test case construction interface is displayed, wherein the test case construction interface comprises a selection area and an operation area, and the selection area comprises at least one service component corresponding to a target service; and responding to the trigger operation of adding the business component in the operation area, and displaying the business component and the incidence relation between the business component and other components in the operation area to construct a test case corresponding to the target business. The visual construction of the test case corresponding to the target service is realized through the service component displayed on the test case construction interface, and the service test flow related to the test case can be visually expressed.

Description

Visual test case construction method and related equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a visual test case construction method and related devices.
Background
A Test Case (Test Case) refers to a description of the task of testing a particular software product. Simply considered, a test case is a set of test inputs, execution conditions, and expected results tailored for a particular purpose to verify whether a particular software requirement is met.
In an actual service scenario of software automation test, test steps need to be arranged according to a service flow, and when the automation test is executed, the test is executed according to an arranged sequence. However, since the coding mode is used to edit the testing steps in the existing automated testing scenario, the business testing process expression is not intuitive enough, errors occur in the constructed test case easily, and the efficiency of the testing task is reduced.
Disclosure of Invention
In view of the foregoing problems, the present disclosure provides a visual test case constructing method and related apparatus that overcome the foregoing problems or at least partially solve the foregoing problems, and the technical solutions are as follows:
a visualized test case construction method comprises the following steps:
displaying a test case construction interface, wherein the test case construction interface comprises a selection area and an operation area, and the selection area comprises at least one service component corresponding to a target service;
and responding to the trigger operation of adding the business component in the operation area, and displaying the business component and the incidence relation between the business component and other components in the operation area to construct a test case corresponding to the target business.
Optionally, the selection area includes a service list display sub-area and a service component display sub-area, where the service list display sub-area displays at least one function entry corresponding to a service, and the method further includes:
and responding to the selection operation of the service list display sub-area on the function entry corresponding to the target service, and displaying at least one service component corresponding to the target service in the service component display sub-area.
Optionally, the service component includes a service page component and a service function component, and the step of displaying, in response to a trigger operation of adding the service component in the operation area, the service component and an association relationship between the service component and other components in the operation area to construct a test case corresponding to the target service includes:
responding to a trigger operation of adding the business page component in the operation area, and displaying the business page component and the association relation between the business page component and a preset default component in the operation area;
and responding to the trigger operation of adding the business function component in the operation area, and displaying the incidence relation between the business function component and the business page component in the operation area so as to construct a test case corresponding to the target business.
Optionally, the method further includes:
responding to the triggering operation of the business function component in the operation area, and displaying at least one operable button corresponding to the business function component;
and responding to the triggering operation of the operable button, and displaying a function operation component corresponding to the operable button and the association relation between the function operation component and the business function component in the operation area.
Optionally, the method further includes:
in response to the triggering operation of the operable button, a parameter configuration area corresponding to the operable button is displayed in the operation area, wherein the parameter configuration area comprises at least one parameter configuration item and a parameter editing area corresponding to each parameter configuration item.
Optionally, the test case construction interface further includes a display area, and the method further includes:
responding to the trigger operation of adding the business page component in the operation area, and displaying a business page corresponding to the business page component in the display area;
and responding to the trigger operation of adding the business function component in the operation area, and marking the page element corresponding to the business function component on the business page displayed in the display area.
Optionally, the operation area includes a layout button, and the method further includes:
and in response to the triggering operation of the arranging button, arranging the business components and the other components in the operation area by using a preset arranging algorithm, and displaying the arranged component layout in the operation area.
A visual test case constructing device comprises: a construction interface display unit and an operation response unit,
the building interface display unit is used for displaying a test case building interface, wherein the test case building interface comprises a selection area and an operation area, and the selection area comprises at least one service component corresponding to a target service;
the operation response unit is used for responding to the trigger operation of adding the business component in the operation area, and displaying the business component and the incidence relation between the business component and other components in the operation area so as to construct the test case corresponding to the target business.
A computer-readable storage medium, on which a program is stored, which when executed by a processor implements the visual test case construction method of any one of the above.
An electronic device comprising at least one processor, and at least one memory connected to the processor, a bus; the processor and the memory complete mutual communication through the bus; the processor is configured to call the program instructions in the memory to execute any one of the visualized test case constructing methods.
By means of the technical scheme, the visual test case construction method and the related equipment provided by the disclosure display a test case construction interface, wherein the test case construction interface comprises a selection area and an operation area, and the selection area comprises at least one service component corresponding to a target service; and responding to the trigger operation of adding the business component in the operation area, and displaying the business component and the incidence relation between the business component and other components in the operation area to construct a test case corresponding to the target business. The visual construction of the test case corresponding to the target service is realized through the service component displayed on the test case construction interface, and the service test flow related to the test case can be visually expressed.
The foregoing description is only an overview of the technical solutions of the present disclosure, and the embodiments of the present disclosure are described below in order to make the technical means of the present disclosure more clearly understood and to make the above and other objects, features, and advantages of the present disclosure more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the disclosure. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a schematic diagram illustrating an implementation manner of a visualized test case constructing method provided by an embodiment of the present disclosure;
FIG. 2 is a schematic diagram illustrating a display effect of a test case building interface provided by an embodiment of the present disclosure;
fig. 3 is a schematic diagram illustrating another implementation of a visualized test case constructing method provided by an embodiment of the present disclosure;
FIG. 4 is a schematic diagram illustrating another display effect of a test case building interface provided by the embodiment of the present disclosure;
FIG. 5 is a schematic diagram illustrating another display effect of a test case building interface provided by an embodiment of the present disclosure;
FIG. 6 is a schematic diagram illustrating another display effect of a test case building interface provided by an embodiment of the present disclosure;
FIG. 7 is a schematic diagram illustrating another display effect of a test case building interface provided by an embodiment of the present disclosure;
FIG. 8 is a schematic diagram illustrating another display effect of a test case building interface provided by an embodiment of the present disclosure;
fig. 9 is a schematic diagram illustrating another implementation of a visualized test case constructing method provided by an embodiment of the present disclosure;
FIG. 10 is a schematic diagram illustrating an implementation process of a preset orchestration algorithm provided by an embodiment of the present disclosure;
fig. 11 is a schematic diagram illustrating another implementation of a visualized test case constructing method provided by an embodiment of the present disclosure;
FIG. 12 is a schematic structural diagram of a visualized test case constructing apparatus provided by the embodiment of the present disclosure;
fig. 13 shows a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As shown in fig. 1, a flow diagram of an implementation manner of a visualized test case constructing method provided in an embodiment of the present disclosure may include:
s100, displaying a test case construction interface, wherein the test case construction interface comprises a selection area and an operation area, and the selection area comprises at least one service component corresponding to a target service.
Optionally, the selection area includes a service list display sub-area and a service component display sub-area, where the service list display sub-area displays at least one function entry corresponding to a service.
Optionally, as shown in fig. 2, in the layout of the test case building interface, the selection area may be located on the left side of the operation area. In the selection area, the service list presentation sub-area may be located above the service component presentation sub-area. The name of at least one function entry corresponding to the target service can be displayed in the service list display sub-area. For example: the service list display sub-area can display function entries: "My wallet", "staging", "login", "My", and "wealth".
Optionally, in response to a trigger operation for creating a service function in the service list display sub-area, the embodiment of the present disclosure may add a function entry of the service function in the service list display sub-area.
Optionally, in response to a trigger operation for deleting a service function in the service list display sub-area, the embodiment of the present disclosure may delete a function entry of the service function in the service list display sub-area.
Optionally, in response to the selection operation of the function entry corresponding to the target service in the service list display sub-area, the embodiment of the present disclosure may display at least one service component corresponding to the target service in the service component display sub-area.
As shown in fig. 2, the business component presentation sub-area further includes at least one page element selection button and a business component search box. The embodiment of the disclosure can respond to the selection operation of the page element selection button in the page element selection subarea, and display the business component corresponding to the page element selected by the selection operation. The business component search box is used for realizing the search function of the business components. According to the embodiment of the disclosure, the searched business component can be displayed in the business component display sub-area according to the search result of the business component.
Wherein the page elements include at least one type of element among picture elements, text elements, input box elements, button elements, and other elements. As shown in FIG. 2, the business component presentation sub-region presents a business icon that is a text element.
Optionally, the service component display sub-area may further include: and newly building a service component button, wherein the newly built service component button is used for realizing the creation function of the service component.
Optionally, the embodiment of the present disclosure may delete any business component in the business component display sub-area in response to a deletion operation on the business component.
The business components displayed in the business component display subarea can be icons consisting of patterns and title characters. For example: as shown in fig. 2, in response to the selection operation of the function entry "staging" in the service list presentation sub-area, the embodiment of the present disclosure may present service components such as "staging", "white activation", and "daily message" in the service component presentation sub-area.
Optionally, the service component includes a service page component and a service function component. It will be appreciated that the icon patterns of the business page components and the business function components may be different. The icon patterns of different business function components may be different. As shown in fig. 2, the "installments" are service page components, and the "activated white", "pay-as-you-go", and "highest available" are service function components.
According to the embodiment of the disclosure, the selection area and the operation area are divided in the test case construction interface, and the function entry corresponding to the target service and the corresponding service component are visually displayed in the selection area, so that a user can conveniently select the service component, and the test case can be conveniently constructed in the operation area.
S200, responding to the trigger operation of adding the business component in the operation area, displaying the business component and the incidence relation between the business component and other components in the operation area, and constructing a test case corresponding to the target business.
It will be appreciated that for one business page component, other components may include other business page components, business function components, and preset default components. For one business function component, the other components may include business page components.
Optionally, based on the method shown in fig. 1, as shown in fig. 3, a flowchart of another implementation manner of the visualized test case constructing method provided in the embodiment of the present disclosure may include that step S200 includes:
s210, responding to the trigger operation of adding the service page component in the operation area, and displaying the service page component and the association relation between the service page component and the preset default component in the operation area.
Optionally, in the embodiment of the present disclosure, in response to a dragging operation of dragging a service page component from a service component display sub-area to an operation area, the service page component is added to the operation area, and the service page component is connected to a preset default component by using a first association line segment. The first incidence relation line segment is used for representing the incidence relation between the business page component and a preset default component. The preset default components may include a start operation component and an end operation component. Optionally, the first association line segment may be a solid line with an arrow, the start operation component points to the service page component, and the service page component executes the end operation component. The starting operation component is used for representing the starting operation of the application program, and the ending icon is used for representing the closing operation of the application program.
Optionally, in the embodiment of the present disclosure, a preset default component may be automatically added in the operation area, or a preset default component may be added in the operation area in response to an addition operation of adding the preset default component.
According to the embodiment of the disclosure, the business page component is connected with the preset default component through the first incidence relation line segment, and the incidence relation between the business page component and the starting operation and the closing operation of the application program can be visually displayed. As shown in fig. 4, the start operation component is connected to the service page component "staging" through the first association line segment, which indicates that after the application program is started, the application program exposes the service page with the service function "staging".
S220, responding to the trigger operation of adding the business function component in the operation area, displaying the incidence relation between the business function component and the business page component in the operation area, and constructing a test case corresponding to the target business.
Optionally, in the embodiment of the present disclosure, in response to a dragging operation of dragging the service function component from the service component display sub-area to the operation area, the service function component is added to the operation area, and the service function component is connected to the service page component by using the second association line segment. And the second incidence relation line segment is used for expressing the incidence relation between the business function component and the business page component. Optionally, the second association line segment may be a dashed line with an arrow, and the business page component points to the business function component. As shown in fig. 4, the service page component "staged" is connected to the service function component "activated white" through a second association line segment.
Optionally, in the embodiment of the present disclosure, after the service function component is added in the operation area, if the service page component does not exist in the operation area, the service function component in the operation area may be connected to the service page component by using the second association line segment after the service page component is dragged to the operation area.
The embodiment of the disclosure connects the service function component and the service page component through the second incidence relation line segment, and can visually display the incidence relation between the service page and the service function, that is, the service page includes the service function.
Optionally, the embodiment of the present disclosure may display at least one operable button corresponding to a service function component in response to a trigger operation on the service function component in the operation area; and in response to the triggering operation of the operable button, displaying the functional operation component corresponding to the operable button and the association relationship between the functional operation component and the business function component in the operation area.
Optionally, in the embodiment of the present disclosure, in response to a click operation on a service function component in an operation region, a function operation component corresponding to the service function component may be generated in the operation region. The functional operation component is composed of patterns and title characters. The function operation component is used for representing the execution operation of the business function configuration. Optionally, the performing operation may include clicking, long pressing, sliding, and asserting. For example: the embodiment of the disclosure can configure the functional operation component 'click' for the business functional component 'white activation'. According to the embodiment of the disclosure, the execution operation of the business function configuration can be visually displayed by generating the function operation component.
Specifically, the embodiment of the present disclosure may display, in response to a trigger operation on any service function component in the operation area, at least one operable button capable of performing an operation corresponding to the service function component in the operation area through a list. For example: as shown in fig. 5, the operable buttons corresponding to the business function component "white activated" include a "click" button, a "long press" button, a "slide" button, a "coordinate click" button, and an "assertion" button. The embodiment of the disclosure facilitates selection of the execution operation corresponding to the business function by displaying the operable button corresponding to the business function component.
Specifically, the embodiment of the present disclosure may generate, in the operation area, a function operation component corresponding to the operable button based on the triggered operable button. It can be understood that since the activated operable button corresponds to the business function component, the function operation component corresponds to the business function component. As shown in fig. 4, if the "click" button is triggered, the function operation component "click" is generated in the operation area.
Optionally, in response to the triggering operation of the operable button, the embodiment of the present disclosure may display a parameter configuration area corresponding to the operable button in the operation area, where the parameter configuration area includes at least one parameter configuration item and a parameter editing area corresponding to each parameter configuration item.
The embodiment of the disclosure can show a parameter configuration area corresponding to an operable button at the bottom of an operation area when the operable button is triggered, and the executable operation corresponding to the operable button can be edited and configured in the parameter configuration area. For example: as shown in fig. 4, the parameter configuration area corresponding to the operable button "click" may include parameter configuration items "name", "sleep", and "number of clicks (times)", and each parameter configuration item may have a corresponding parameter editing area.
The embodiment of the disclosure performs specific communication parameter configuration by putting executable operation into the service function component correspondingly, can realize user-defined execution operation configuration by combining actual requirements, and improves the construction expansibility of the test case.
In order to facilitate visually representing the association relationship between the business function component and the function operation component, the embodiment of the disclosure may use a third association relationship line segment to connect the business function component and the function operation component in the operation region. Alternatively, the third relationship line segment may be a dashed line without an arrow. The business function component and the function operation component are connected through the third incidence relation line segment, and the incidence relation between the business function and the executable operation can be visually displayed. For example: as shown in fig. 6, the service function component "white activated" is connected to the function operation component "click" through the third association line segment, and the service function component "time-limited melon score" is connected to the function operation component "long press" through the third association line segment.
Alternatively, as shown in FIG. 7, the initial operational components may be in a "small rocket" pattern. The end operation component may be a pattern in a solid box in the operation area.
In a general case, after the business page component is connected with the end operation component by using the first incidence relation line segment, a complete test case construction is represented to be completed.
The embodiment of the disclosure abstracts the business functions related to the test case construction into visual and operable components, reduces the difficulty of test case construction, enhances the intuitiveness of the business test flow corresponding to the test case, and improves the efficiency of the whole test task.
The visual test case construction method provided by the disclosure is characterized in that a test case construction interface is displayed, wherein the test case construction interface comprises a selection area and an operation area, and the selection area comprises at least one service component corresponding to a target service; and responding to the trigger operation of adding the business component in the operation area, and displaying the business component and the incidence relation between the business component and other components in the operation area to construct a test case corresponding to the target business. The visual construction of the test case corresponding to the target service is realized through the service component displayed on the test case construction interface, and the service test flow related to the test case can be visually expressed.
Optionally, the test case building interface further includes a display area. The method and the device for displaying the service page can respond to the triggering operation of adding the service page component in the operation area, and display the service page corresponding to the service page component in the display area; and responding to the trigger operation of adding the business function component in the operation area, and marking the page element corresponding to the business function component on the business page displayed in the display area.
As shown in fig. 8, the presentation area may be located to the right of the operation area. The business page corresponding to the business page component and the page elements corresponding to the business functional components in the business page are displayed in the display area, so that the business function currently operated can be visually displayed.
Optionally, in the embodiment of the present disclosure, when any service function component is selected in the operation area, a page element corresponding to the service function component on the service page is marked in the service page displayed in the display area. According to the method and the device for displaying the business function components, the page elements corresponding to the business function components which are in operation are marked in the business page displayed in the display area, so that the business function components which are in operation at present can be displayed visually. For example: as shown in fig. 8, after the service function component "white activated" in the operation area, the position of the page element "white activated" is marked in the service page presented in the presentation area using a shaded box.
In practical application, because the constructed test case may relate to a plurality of business page components and business function components, the arrangement of the components in the operation area may be messy, and in order to intuitively express the constructed test case, the components in the operation area may be arranged according to the embodiment of the present disclosure.
Optionally, the operating area comprises a layout button. Based on the method shown in fig. 1, as shown in fig. 9, a flowchart of another implementation of a visualized test case constructing method provided in the embodiment of the present disclosure may further include:
s300, responding to the triggering operation of the arranging button, arranging the business components and other components in the operation area by using a preset arranging algorithm, and displaying the arranged component layout in the operation area.
Specifically, the embodiment of the present disclosure may, in response to a trigger operation on the layout button, use a preset layout algorithm to layout at least one of a business page component, a business function component, a starting operation component, an ending operation component, and a function operation component in the operation area, and display the layout of the components after layout in the operation area. It is to be understood that the choreography does not change the associations between the components.
Alternatively, as shown in fig. 7, the arrangement button may be provided on the upper right side in the operation region. It is understood that other function buttons may be disposed in the operation region in the embodiments of the present disclosure.
Optionally, as shown in fig. 10, the executing process of the preset orchestration algorithm provided by the embodiment of the present disclosure may include:
and S01, taking the position of the starting operation assembly as a reference point, and obtaining the reference coordinate of the starting operation assembly in the operation area.
And S02, determining first target coordinates corresponding to each business page component and the ending operation component according to the reference coordinates through the first association relation line segment.
S03, through the second incidence relation line segment, for each service function component connected with any service page component: and determining a second target coordinate corresponding to each service function component according to the first target coordinate corresponding to the service page component.
S04, through a third incidence relation line segment, for any business function component connected function operation component: and determining a third target coordinate corresponding to the functional operation component according to the second target coordinate corresponding to the business functional component.
And S05, in the operation area, moving and arranging the service page components according to the first target coordinates corresponding to the service page components, moving and arranging the service function components according to the second target coordinates corresponding to the service function components, moving and arranging the function operation components according to the third target coordinates corresponding to the function operation components, and moving the end operation components according to the first target coordinates corresponding to the end operation components.
Specifically, the embodiment of the present disclosure may arrange the start operation component, the end operation component, and the service page component on the same column, arrange the service function components on the same column, and arrange the function operation components on the same column. For example: the layout of the components in the operation region before layout may be as shown in fig. 7, and the layout of the components after layout may be as shown in fig. 11.
According to the method and the device for arranging the test cases, the arranging function of each component in the operation area is achieved through the arranging buttons, the arranged component layout can be visual and tidy, and the whole process of the test cases can be displayed more clearly.
It should be noted that the embodiment of the present disclosure may respond to the trigger operation of the orchestration button at any time in the building process of the test case, so that in the building process of the complex test case, the built part is visually displayed, and a builder can timely find errors or omissions of the test case being built. Certainly, after the test case is constructed, the trigger operation of the layout button can still be responded, so that all the components in the operation area are displayed in a formatted mode, and the whole flow of the test case is clearly displayed.
Although the operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
Corresponding to the foregoing method embodiment, a structure of the visual test case constructing device provided in the embodiment of the present disclosure is shown in fig. 12, and may include: a build interface presentation unit 100 and an operation response unit 200.
The building interface display unit 100 is configured to display a test case building interface, where the test case building interface includes a selection area and an operation area, and the selection area includes at least one service component corresponding to a target service.
The operation response unit 200 is configured to, in response to a trigger operation for adding a service component in an operation area, show the service component and an association relationship between the service component and other components in the operation area, so as to construct a test case corresponding to the target service.
Optionally, the selection area includes a service list display sub-area and a service component display sub-area, where the service list display sub-area displays at least one function entry corresponding to a service. The visualized test case constructing device may further include: the first selection operation response unit 200.
A first selecting operation responding unit 200, configured to respond to a selecting operation of the function entry corresponding to the target service in the service list display sub-area, and display at least one service component corresponding to the target service in the service component display sub-area.
Optionally, the service component includes a service page component and a service function component, and the operation response unit 200 includes a first response subunit and a second response subunit.
And the first response subunit is used for responding to the trigger operation of adding the service page component in the operation area and displaying the service page component and the association relation between the service page component and the preset default component in the operation area.
And the second response subunit is used for responding to the trigger operation of adding the service function component in the operation area and displaying the incidence relation between the service function component and the service page component in the operation area so as to construct the test case corresponding to the target service.
Optionally, the visualized test case constructing apparatus may further include: a first trigger operation response unit 200 and a second trigger operation response unit 200.
The first trigger operation response unit 200 is configured to, in response to a trigger operation on a business function component in an operation area, present at least one operable button corresponding to the business function component.
The second trigger operation response unit 200 is configured to, in response to a trigger operation on an operable button, display, in an operation area, a function operation component corresponding to the operable button and an association relationship between the function operation component and a business function component.
Optionally, the visualized test case constructing apparatus may further include: the third trigger operation response unit 200.
A third trigger operation response unit 200, configured to, in response to a trigger operation on an operable button, display a parameter configuration area corresponding to the operable button in the operation area, where the parameter configuration area includes at least one parameter configuration item and a parameter editing area corresponding to each parameter configuration item.
Optionally, the test case building interface further includes a display area. The visualized test case constructing device may further include: a fourth trigger operation response unit 200 and a fifth trigger operation response unit 200.
A fourth trigger operation response unit 200, configured to respond to a trigger operation of adding a service page component in the operation area, and display a service page corresponding to the service page component in the display area.
A fifth trigger operation response unit 200, configured to mark, in response to a trigger operation of adding a service functional component in the operation area, a page element corresponding to the service functional component on the service page displayed in the display area.
Optionally, the operating area comprises a layout button. The visualized test case constructing device may further include: the sixth trigger operation response unit 200.
A sixth triggering operation responding unit 200, configured to, in response to the triggering operation on the layout button, use a preset layout algorithm to layout the business components and other components in the operating area, and display the layout of the components after layout in the operating area.
The visual test case constructing device provided by the disclosure displays a test case constructing interface, wherein the test case constructing interface comprises a selection area and an operation area, and the selection area comprises at least one service component corresponding to a target service; and responding to the trigger operation of adding the business component in the operation area, and displaying the business component and the incidence relation between the business component and other components in the operation area to construct a test case corresponding to the target business. The visual construction of the test case corresponding to the target service is realized through the service component displayed on the test case construction interface, and the service test flow related to the test case can be visually expressed.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The visualized test case constructing device comprises a processor and a memory, wherein the construction interface display unit 100, the operation response unit 200 and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, the visual construction of the test case corresponding to the target service is realized through the service components displayed on the test case construction interface by adjusting the kernel parameters, and the service test flow related to the test case can be visually expressed.
The embodiment of the disclosure provides a computer-readable storage medium, on which a program is stored, and when the program is executed by a processor, the program implements the visualized test case construction method.
The embodiment of the disclosure provides a processor, which is used for running a program, wherein the visualized test case construction method is executed when the program runs.
As shown in fig. 13, an embodiment of the present disclosure provides an electronic device 1000, where the electronic device 1000 includes at least one processor 1001, and at least one memory 1002 and a bus 1003 connected to the processor 1001; the processor 1001 and the memory 1002 complete communication with each other through the bus 1003; the processor 1001 is configured to call the program instructions in the memory 1002 to execute the visualized test case constructing method described above. The electronic device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present disclosure also provides a computer program product adapted to execute a program of initializing test case construction method steps with visualizations when executed on an electronic device.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, electronic devices (systems), and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, an electronic device includes one or more processors (CPUs), memory, and a bus. The electronic device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
In the description of the present disclosure, it is to be understood that the directions or positional relationships indicated as referring to the terms "upper", "lower", "front", "rear", "left" and "right", etc., are based on the directions or positional relationships shown in the drawings, and are only for convenience of describing the present invention and simplifying the description, but do not indicate or imply that the positions or elements referred to must have specific directions, be constituted and operated in specific directions, and thus, are not to be construed as limitations of the present disclosure.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The above are merely examples of the present disclosure, and are not intended to limit the present disclosure. Various modifications and variations of this disclosure will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure should be included in the scope of the claims of the present disclosure.

Claims (10)

1. A visual test case construction method is characterized by comprising the following steps:
displaying a test case construction interface, wherein the test case construction interface comprises a selection area and an operation area, and the selection area comprises at least one service component corresponding to a target service;
and responding to the trigger operation of adding the business component in the operation area, and displaying the business component and the incidence relation between the business component and other components in the operation area to construct a test case corresponding to the target business.
2. The method of claim 1, wherein the selection area comprises a service list display sub-area and a service component display sub-area, and the service list display sub-area displays at least one function entry corresponding to a service, and the method further comprises:
and responding to the selection operation of the service list display sub-area on the function entry corresponding to the target service, and displaying at least one service component corresponding to the target service in the service component display sub-area.
3. The method according to claim 1, wherein the business components include business page components and business function components, and the presenting the business components and the association relationship between the business components and other components in the operation area in response to the trigger operation of adding the business components in the operation area to construct the test case corresponding to the target business comprises:
responding to a trigger operation of adding the business page component in the operation area, and displaying the business page component and the association relation between the business page component and a preset default component in the operation area;
and responding to the trigger operation of adding the business function component in the operation area, and displaying the incidence relation between the business function component and the business page component in the operation area so as to construct a test case corresponding to the target business.
4. The method of claim 3, further comprising:
responding to the triggering operation of the business function component in the operation area, and displaying at least one operable button corresponding to the business function component;
and responding to the triggering operation of the operable button, and displaying a function operation component corresponding to the operable button and the association relation between the function operation component and the business function component in the operation area.
5. The method of claim 4, further comprising:
in response to the triggering operation of the operable button, a parameter configuration area corresponding to the operable button is displayed in the operation area, wherein the parameter configuration area comprises at least one parameter configuration item and a parameter editing area corresponding to each parameter configuration item.
6. The method of claim 3, wherein the test case build interface further comprises a presentation area, and wherein the method further comprises:
responding to the trigger operation of adding the business page component in the operation area, and displaying a business page corresponding to the business page component in the display area;
and responding to the trigger operation of adding the business function component in the operation area, and marking the page element corresponding to the business function component on the business page displayed in the display area.
7. The method of claim 1, wherein the operating region comprises a program button, the method further comprising:
and in response to the triggering operation of the arranging button, arranging the business components and the other components in the operation area by using a preset arranging algorithm, and displaying the arranged component layout in the operation area.
8. A visual test case constructing device is characterized by comprising: a construction interface display unit and an operation response unit,
the building interface display unit is used for displaying a test case building interface, wherein the test case building interface comprises a selection area and an operation area, and the selection area comprises at least one service component corresponding to a target service;
the operation response unit is used for responding to the trigger operation of adding the business component in the operation area, and displaying the business component and the incidence relation between the business component and other components in the operation area so as to construct the test case corresponding to the target business.
9. A computer-readable storage medium on which a program is stored, the program implementing the visualized test case constructing method according to any one of claims 1 to 7 when executed by a processor.
10. An electronic device comprising at least one processor, and at least one memory connected to the processor, a bus; the processor and the memory complete mutual communication through the bus; the processor is configured to call the program instructions in the memory to execute the visualized test case constructing method according to any one of claims 1 to 7.
CN202111128997.5A 2021-09-26 2021-09-26 Visual test case construction method and related equipment Pending CN113868131A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111128997.5A CN113868131A (en) 2021-09-26 2021-09-26 Visual test case construction method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111128997.5A CN113868131A (en) 2021-09-26 2021-09-26 Visual test case construction method and related equipment

Publications (1)

Publication Number Publication Date
CN113868131A true CN113868131A (en) 2021-12-31

Family

ID=78994511

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111128997.5A Pending CN113868131A (en) 2021-09-26 2021-09-26 Visual test case construction method and related equipment

Country Status (1)

Country Link
CN (1) CN113868131A (en)

Similar Documents

Publication Publication Date Title
US10261660B2 (en) Orbit visualization animation
CN108363587B (en) Application program operation monitoring method and device, computer equipment and storage medium
CN109933322B (en) Page editing method and device and computer readable storage medium
CN106797547B (en) Operating system support for location cards
CN108319491B (en) Managing workspaces in a user interface
CN109739450B (en) Interaction method and device
JP2007257642A (en) Apparatus, method and system for highlighting related user interface control
CN105144058A (en) Deferred placement prompt
CN105573574A (en) Application interface navigation method and apparatus
CN112083866A (en) Expression image generation method and device
CN114741071A (en) Application construction method and device
CN114036417A (en) Page updating method and device, storage medium and electronic equipment
US20140372886A1 (en) Providing help on visual components displayed on touch screens
US20140372863A1 (en) Temporary highlighting of selected fields
CA3191206A1 (en) Webpage automation robot processing method and system
CN110968311A (en) Front-end page construction method and device and electronic equipment
CN113868131A (en) Visual test case construction method and related equipment
CN112579664A (en) Processing method and device for chart linkage
CN113296906B (en) Task configuration method and device
CN106873866B (en) Content amplification display method and device
CN115470757A (en) Content ordering method and terminal equipment
CN111198830B (en) Identification method and device of mobile storage equipment, electronic equipment and storage medium
JP2017204311A (en) Information processing device, document management system, document management server, information processing method, and program therefor
CN115390720A (en) Robotic Process Automation (RPA) including automatic document scrolling
CN113407078A (en) Method and device for editing character icon, storage medium and terminal

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