CN112269577A - Configuration method and device of control interface - Google Patents

Configuration method and device of control interface Download PDF

Info

Publication number
CN112269577A
CN112269577A CN202011151691.7A CN202011151691A CN112269577A CN 112269577 A CN112269577 A CN 112269577A CN 202011151691 A CN202011151691 A CN 202011151691A CN 112269577 A CN112269577 A CN 112269577A
Authority
CN
China
Prior art keywords
control interface
position coordinate
configuration file
instruction
serial number
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
CN202011151691.7A
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.)
Beijing Teletest Technology Co ltd
Original Assignee
Beijing Teletest Technology 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 Beijing Teletest Technology Co ltd filed Critical Beijing Teletest Technology Co ltd
Priority to CN202011151691.7A priority Critical patent/CN112269577A/en
Publication of CN112269577A publication Critical patent/CN112269577A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a configuration method and a device of a control interface, wherein the method is applied to network test equipment and comprises the following steps: acquiring a blank canvas and a configuration file, wherein the configuration file comprises characteristic information of at least one control interface, the characteristic information is used for representing the characteristics of at least one control interface, and one control interface is connected with a tested device through at least one cable interface; loading the configuration file to present a control interface included by the configuration file on the blank canvas according to the characteristic information; acquiring a processing instruction for the control interface, wherein the processing instruction comprises an instruction for changing the number of rows and columns of the control interface; based on the processing instruction, updating the characteristic information included in the configuration file, and skipping to execute the loading of the configuration file. The scheme of the invention can change the row number and the column number of the control interface aiming at the tested equipment.

Description

Configuration method and device of control interface
Technical Field
The present invention relates to the field of interface configuration technologies, and in particular, to a configuration method and an apparatus for a control interface.
Background
A Device Under Test (DUT), also known as a device under test or unit under test, is a manufactured product that is tested at first manufacture or later in its lifecycle. Software for testing the tested device is installed in the network testing device, and a control interface in the software is used for interaction between the tested device and a user, so that the use experience of the user is greatly influenced by the design of the control interface.
In the prior art, a device to be tested is fixed on a fixed platform, the control interfaces are usually configured as interface layouts with fixed row and column numbers, and each control interface is connected with one device to be tested through a cable interface corresponding to the control interface, so as to control or monitor a test state of one device to be tested. However, if the number of the devices under test in the tested state is large, the number of the devices under test in the tested state may be larger than the number of all the control interfaces in the interface layout, which may result in that all the real-time information of the devices under test cannot be displayed on the screen of the network test equipment. That is to say, in the prior art, the control interface for the device under test is limited by the interface layout with the fixed number of rows and columns, so that at least the number of rows and columns of the control interface cannot be changed, which is not favorable for improving the user experience.
Disclosure of Invention
The embodiment of the invention provides a configuration method and a configuration device of a control interface, which can change the row number and the column number of the control interface aiming at tested equipment.
In a first aspect, an embodiment of the present invention provides a method for configuring a control interface, which is applied to a network test device, and includes:
acquiring a blank canvas and a configuration file, wherein the configuration file comprises characteristic information of at least one control interface, the characteristic information is used for representing the characteristics of at least one control interface, and one control interface is connected with a tested device through at least one cable interface;
loading the configuration file to present a control interface included by the configuration file on the blank canvas according to the characteristic information;
acquiring a processing instruction for the control interface, wherein the processing instruction comprises an instruction for changing the number of rows and columns of the control interface;
based on the processing instruction, updating the characteristic information included in the configuration file, and skipping to execute the loading of the configuration file.
In one possible design, the characteristic information includes: the serial number and the position coordinate of each control interface are different from those of different control interfaces;
the processing instructions further include: a move instruction;
the updating the feature information included in the configuration file based on the processing instruction comprises:
determining a first position coordinate and a second position coordinate of the control interface to be moved based on the movement instruction, wherein the first position coordinate is the position coordinate of the control interface to be moved before moving, and the second position coordinate is the position coordinate of the control interface to be moved after moving;
moving the serial number of the control interface to be moved from the first position coordinate to the second position coordinate, and sequentially moving the serial number of the control interface of which the position coordinate is located between the first position coordinate and the second position coordinate to a unit coordinate in the direction in which the second position coordinate points to the first position coordinate;
and updating the serial number and the position coordinate of each control interface included in the configuration file.
In one possible design, the characteristic information includes: the serial number and the position coordinate of each control interface are different from those of different control interfaces;
the processing instructions further include: a replacement instruction;
the updating the feature information included in the configuration file based on the processing instruction comprises:
determining a third position coordinate and a fourth position coordinate of the control interface to be replaced based on the replacement instruction, wherein the third position coordinate is the position coordinate of the control interface to be replaced before replacement, and the fourth position coordinate is the position coordinate of the control interface to be replaced after replacement;
replacing the serial number of the control interface to be replaced and the serial number of the control interface with the position coordinate positioned at the fourth position coordinate;
and updating the serial number and the position coordinate of each control interface included in the configuration file.
In one possible design, the characteristic information includes: the serial number and the position coordinate of each control interface are different from those of different control interfaces;
the processing instructions further include: an increase instruction;
the updating the feature information included in the configuration file based on the processing instruction comprises:
determining a fifth position coordinate of the control interface to be added based on the adding instruction, wherein the fifth position coordinate is the position coordinate of the control interface to be added after the control interface to be added is added;
sequentially moving the position coordinate to be the fifth position coordinate and the serial number of the control interface behind the fifth position coordinate backward by one unit coordinate;
assigning a target serial number to the control interface to be added, wherein the target serial number is different from the serial number of each control interface in the configuration file;
and updating the serial number and the position coordinate of each control interface included in the configuration file.
In one possible design, the characteristic information includes: the serial number and the position coordinate of each control interface are different from those of different control interfaces;
the processing instructions further include: deleting the instruction;
the updating the feature information included in the configuration file based on the processing instruction comprises:
deleting a sixth position coordinate and a serial number of the control interface to be deleted based on the deleting instruction, wherein the sixth position coordinate is a position coordinate of the control interface to be deleted before deletion;
sequentially moving the serial number of the control interface with the position coordinate behind the sixth position coordinate forward by one unit coordinate;
and updating the serial number and the position coordinate of each control interface included in the configuration file.
In one possible design, the characteristic information includes: a length and a width of each of the control interfaces;
the processing instructions further include: a zoom instruction;
the updating the feature information included in the configuration file based on the processing instruction comprises:
determining the length and the width of a control interface to be zoomed based on the zooming instruction;
updating the length and width of each of the control interfaces included in the configuration file.
In a second aspect, an embodiment of the present invention provides a configuration apparatus for a control interface, which is applied to a network test device, and includes:
the system comprises a first acquisition module, a second acquisition module and a display module, wherein the first acquisition module is used for acquiring a blank canvas and a configuration file, the configuration file comprises characteristic information of at least one control interface, the characteristic information is used for representing the characteristics of the at least one control interface, and one control interface is connected with a tested device through at least one cable interface;
the loading module is used for loading the configuration file so as to present a control interface included by the configuration file on the blank canvas according to the characteristic information;
the second obtaining module is used for obtaining a processing instruction for the control interface, wherein the processing instruction comprises an instruction for changing the number of rows and columns of the control interface;
and the updating module is used for updating the characteristic information included in the configuration file based on the processing instruction and skipping to execute the loading of the configuration file.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, where computer instructions are stored on the computer-readable storage medium, and when executed by a processor, the computer instructions cause the processor to execute the method described above.
In a fourth aspect, an embodiment of the present invention provides a network test device, including: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor is configured to invoke the machine-readable program to perform the method described above.
In a fifth aspect, an embodiment of the present invention provides a network test system, including: a device under test and a network test device;
the tested device is connected with the network test device through a cable interface, and the network test device is the network test device.
According to the scheme, the configuration method and the configuration device of the control interface, provided by the invention, firstly, the blank canvas and the configuration file are obtained, the configuration file comprises the characteristic information of at least one control interface, the characteristic information is used for representing the characteristics of at least one control interface, one control interface is connected with a tested device through at least one cable interface, and thus, the blank canvas and the control interface can be separately deployed to facilitate the subsequent change of the row number and column number of the control interface; then loading the configuration file to present a control interface included by the configuration file on the blank canvas according to the characteristic information; when the number of rows and columns of the control interface is changed, processing instructions aiming at the control interface are obtained, the processing instructions comprise instructions for changing the number of rows and columns of the control interface, the characteristic information included in the configuration file is updated based on the processing instructions, the configuration file is skipped to be loaded, and the control interface included in the changed configuration file is presented on a blank canvas according to the characteristic information, so that the control interface aiming at the tested equipment is not limited by the interface layout with fixed rows and columns, namely, the number of rows and columns of the control interface aiming at the tested equipment can be changed, and the use experience of a user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is an architecture diagram of a network test system provided by one embodiment of the present invention;
FIG. 2 is a flow chart of a method for configuring a control interface according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an interface layout provided by one embodiment of the present invention;
FIG. 4 is a schematic diagram of a network test device provided by an embodiment of the invention;
fig. 5 is a schematic diagram of a configuration device of a control interface according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
As described in the background, the layout of the interface of the existing control interface for the device under test is usually a fixed row and column number (e.g., 2 rows × 2 columns, 3 rows × 3 columns, and 4 rows × 4 columns, etc.), that is, the control interface with the fixed row and column number is preset on the blank canvas. This arrangement has the following problems: (1) if the number of the tested devices in the tested state is large, the number of the tested devices in the tested state may be larger than the number of all the control interfaces in the interface layout, and at this time, the real-time information of the tested devices cannot be completely displayed on the screen of the network testing device; (2) if the actual position of the tested device fixed on the fixed platform is the tested layout with 2 rows by 8 columns, when the interface layout with 2 rows by 8 columns is not provided, even if the interface layout with the same number of tested devices is 4 rows by 4 columns, at this time, the tested personnel cannot be directly associated with the tested layout through the interface layout, but the corresponding relationship between the tested layout and the interface layout may need to be memorized by the tested personnel, which easily causes the testing error of the tested personnel. That is to say, in the prior art, the control interface for the device under test is limited by the interface layout with the fixed number of rows and columns, so that at least the number of rows and columns of the control interface cannot be changed, which is not favorable for improving the user experience. The scheme tries to use a mode of separately deploying the blank canvas and the control interface so as to change the number of rows and columns of the control interface, thereby being beneficial to improving the use experience of a user.
The above is the inventive concept of the present invention, and the scheme provided by the present invention can be obtained based on the inventive concept, and the present invention is explained in detail below.
Fig. 1 is an architecture diagram of a network test system provided in the present invention. As shown in fig. 1, the system may include: the device under test 102 and the network test device 104, the device under test 102 is connected to the network test device 104 through a cable interface, so as to test parameters of the device under test 102, such as network rate, packet loss rate, link on-off, and the like.
In some embodiments, the network test device 104 may be a computer on which an operating system and associated software run, which when used by a user, controls or monitors the device under test through a control interface in the software. Each control interface is connected with one tested device through at least one cable interface corresponding to the control interface so as to control or monitor the test state of one tested device, wherein the test state of each tested device can be displayed on the control interface in real time, and the displayed information comprises: network speed, packet loss rate, link on-off and other parameters. It is understood that a cable interface includes a fiber optic interface, a network cable interface, or a cable interface.
Fig. 2 is a flowchart of a configuration method of a control interface according to an embodiment of the present invention. As shown in fig. 2, the method may include the steps of:
step 202, acquiring a blank canvas and a configuration file.
In this step, the configuration file includes feature information of at least one control interface, the feature information is used for characterizing features of the at least one control interface, and one control interface is connected with one tested device through at least one cable interface, so that the blank canvas and the control interface can be separately deployed, and the number of rows and columns of the control interface can be modified subsequently.
And step 204, loading the configuration file.
In the step, the control interface included by the configuration file is presented on the blank canvas according to the characteristic information by loading the configuration file. For example, if the initial number of rows in the configuration file is 3 and the initial number of columns is 4, a control interface with 3 rows and 4 columns will appear on the blank canvas after the configuration file is loaded.
And step 206, acquiring a processing instruction aiming at the control interface.
And step 208, updating the characteristic information included in the configuration file based on the processing instruction, and jumping to execute and load the configuration file.
In steps 206 and 208, in order to change the number of rows and columns of the control interface, the processing instruction should include an instruction to change the number of rows and columns of the control interface, so that the number of rows and columns of the control interface in the configuration file can be changed, thereby implementing that the control interface with the desired number of rows and columns is presented on the blank canvas. In addition, after the software is closed and then opened again, the row and column number of the control interface on the blank canvas is the row and column number in the feature information updated last time by the configuration file of the last software.
In the embodiment of the invention, a blank canvas and a configuration file are firstly obtained, the configuration file comprises characteristic information of at least one control interface, the characteristic information is used for representing the characteristics of at least one control interface, one control interface is connected with a tested device through at least one cable interface, so that the blank canvas and the control interface can be separately deployed to facilitate the subsequent change of the row number and the column number of the control interface; then loading the configuration file to present a control interface included by the configuration file on the blank canvas according to the characteristic information; when the number of rows and columns of the control interface is changed, processing instructions aiming at the control interface are obtained, the processing instructions comprise instructions for changing the number of rows and columns of the control interface, the characteristic information included in the configuration file is updated based on the processing instructions, the configuration file is skipped to be loaded, and the control interface included in the changed configuration file is presented on a blank canvas according to the characteristic information, so that the control interface aiming at the tested equipment is not limited by the interface layout with fixed rows and columns, namely, the number of rows and columns of the control interface aiming at the tested equipment can be changed, and the use experience of a user is improved. Each processing instruction is explained below with reference to fig. 3.
In one embodiment of the invention, the characteristic information includes: the serial number and the position coordinate of each control interface are different, and the serial numbers and the position coordinates of different control interfaces are different;
the processing instructions further include: a move instruction;
based on the processing instructions, updating the feature information included in the configuration file, including:
determining a first position coordinate and a second position coordinate of the control interface to be moved based on the movement instruction, wherein the first position coordinate is the position coordinate of the control interface to be moved before the movement, and the second position coordinate is the position coordinate of the control interface to be moved after the movement;
moving the serial number of the control interface to be moved from the first position coordinate to the second position coordinate, and sequentially moving the serial number of the control interface of which the position coordinate is located between the first position coordinate and the second position coordinate to a unit coordinate in the direction in which the second position coordinate points to the first position coordinate;
the serial number and location coordinates of each control interface included in the update configuration file.
In the embodiment of the present invention, for example, the user wants to move the control interface with the serial number "3" from the first position coordinate (X1, Y3) to the second position coordinate (X3, Y2), and at this time, the control interface with the position coordinate between the first position coordinate and the second position coordinate (i.e., (X1, Y4) to (X3, Y1)) and the second position coordinate (i.e., (X3, Y2)) is moved by one unit coordinate in the direction of (X3, Y2) pointing to (X1, Y3) in sequence. It should be noted that the direction in which (X3, Y2) points to (X1, Y3) refers to (X3, Y2), (X3, Y1), (X2, Y4), (X2, Y3), (X2, Y2), (X2, Y1), (X1, Y4), (X1, Y3), (X1, Y3) points to (X3, Y2) refers to (X1, Y3), (X1, Y4), (X2, Y1), (X2, Y2), (X2, Y3), (X2, Y4), (X3, Y1), and (X3, Y2). That is, the direction in which (Xn, Ym) points to (Xp, Yq) is: (Xn, Ym), (Xn, Ym-1) … … (Xn, Y1), (Xn-1, Ymax) … … (Xn-1, Y1) … … (Xp, Ymax) … … (Xp, Yq); or (Xn, Ym), (Xn, Ym +1) … … (Xn, Ymax), (Xn +1, Y1) … … (Xn +1, Ymax) … … (Xp, Y1) … … (Xp, Yq). After the processing of the move command, the sequence numbers of the updated interface layout in the directions pointing to (X3, Y4) along (X1, Y1) are respectively: "1", "2", "4", "5", "6", "7", "8", "9", "10", "3", "11", "12".
For another example, when the user wants to move the control interface with sequence number "8" from the first position coordinates (X2, Y4) to the second position coordinates (X1, Y2), the sequence numbers of the updated interface layout are respectively the following along the directions (X1, Y1) pointing to (X3, Y4): "1", "8", "2", "3", "4", "5", "6", "7", "9", "10", "11", "12".
It is understood that the movement instruction may be triggered by a mouse, for example, a left mouse button may be continuously pressed on a control interface to be moved, so as to trigger the movement instruction, and then a user moves the mouse from a first position coordinate to a second position coordinate and releases the left mouse button, at this time, the interface layout is changed by moving one control interface, and meanwhile, the feature information in the configuration file is updated.
In testing the device under test, in the prior art, if a user finds that the cable interface and the device under test are connected in error, for example, a first cable interface should be used for measuring the first device under test while a first control interface is used for controlling or testing the first device under test, and due to the connection in error, the first cable interface is connected with a second device under test, and the first control interface controls or tests the second device under test. Since the corresponding relationship between the cable interface and the control interface is fixed, when this occurs, a user is usually required to perform a hardware end process, that is, to connect the first cable interface with the first device under test, or to connect the second cable interface with the second device under test. Through the processing of the moving instruction, a user can process the software end, namely the first control interface can be moved to the position coordinate corresponding to the second control interface from the position coordinate corresponding to the first control interface or the second control interface can be moved to the position coordinate corresponding to the first control interface from the position coordinate corresponding to the second control interface.
In one embodiment of the invention, the characteristic information includes: the serial number and the position coordinate of each control interface are different, and the serial numbers and the position coordinates of different control interfaces are different;
the processing instructions further include: a replacement instruction;
based on the processing instructions, updating the feature information included in the configuration file, including:
determining a third position coordinate and a fourth position coordinate of the control interface to be replaced based on the replacement instruction, wherein the third position coordinate is the position coordinate of the control interface to be replaced before replacement, and the fourth position coordinate is the position coordinate of the control interface to be replaced after replacement;
replacing the serial number of the control interface to be replaced and the serial number of the control interface with the position coordinate positioned at the fourth position coordinate;
the serial number and location coordinates of each control interface included in the update configuration file.
In the embodiment of the present invention, for example, if the user wants to replace the control interface with sequence number "2" from the third position coordinate (X1, Y2) to the fourth position coordinate (X3, Y3), the sequence numbers of the updated interface layout in the directions (X1, Y1) pointing to (X3, Y4) are: "1", "11", "3", "4", "5", "6", "7", "8", "9", "10", "2", "12".
For another example, when the user wants to replace the control interface with the serial number "7" from the third position coordinate (X2, Y3) to the fourth position coordinate (X1, Y1), the serial numbers of the updated interface layout are respectively the following along the directions (X1, Y1) pointing to (X3, Y4) after the processing of the replacement command: "7", "2", "3", "4", "5", "6", "1", "8", "9", "10", "11", "12".
It is understood that the above-mentioned replacing command may be triggered by a mouse, and the detailed triggering operation is not described herein.
In testing the device under test, in the prior art, if a user finds that the cable interface and the device under test are connected in error, for example, a first cable interface should be used for measuring the first device under test while a first control interface is used for controlling or testing the first device under test, and due to the connection in error, the first cable interface is connected with a second device under test, and the first control interface controls or tests the second device under test. Since the corresponding relationship between the cable interface and the control interface is fixed, when this occurs, a user is usually required to perform a hardware end process, that is, to connect the first cable interface with the first device under test, or to connect the second cable interface with the second device under test. Through the processing of the replacement instruction, a user can process the software end, namely the first control interface can be replaced to the position coordinate corresponding to the second control interface from the position coordinate corresponding to the first control interface or the second control interface can be replaced to the position coordinate corresponding to the first control interface from the position coordinate corresponding to the second control interface.
In one embodiment of the invention, the characteristic information includes: the serial number and the position coordinate of each control interface are different, and the serial numbers and the position coordinates of different control interfaces are different;
the processing instructions further include: an increase instruction;
based on the processing instructions, updating the feature information included in the configuration file, including:
determining a fifth position coordinate of the control interface to be added based on the adding instruction, wherein the fifth position coordinate is the position coordinate of the control interface to be added after the control interface to be added is added;
sequentially moving the position coordinate which is the fifth position coordinate and the serial number of the control interface behind the fifth position coordinate backward by one unit coordinate;
assigning a target serial number to the control interface to be added, wherein the target serial number is different from the serial number of each control interface in the configuration file;
the serial number and location coordinates of each control interface included in the update configuration file.
In the embodiment of the present invention, for example, if the user wants to add a control interface to the fifth position coordinate (X1, Y4), the position coordinate of the control interface is (X1, Y4), and a target serial number, for example, serial number "13", can be assigned to the newly added control interface, and through the processing of the add command, the serial number of the updated interface layout points to (X4, Y1) along (X1, Y1) (the position coordinate is not shown in the figure, and since a control interface is added, the control interface at the last position coordinate by default will continue to move backward by one unit coordinate) in the directions of: "1", "2", "3", "13", "4", "5", "6", "7", "8", "9", "10", "11", "12".
For another example, if the user wants to add a control interface after the fifth position coordinate (X1, Y4), the position coordinate of the control interface is (X1, Y5), and at this time, for example, the direction (X1, Y3) pointing to (X3, Y2) refers to (X1, Y3), (X1, Y4), (X1, Y5), (X2, Y1), (X2, Y2), (X2, Y3), (X2, Y4), (X3, Y1), (X3, Y2), and a target sequence number, for example, the sequence number is "13", and after the processing of the addition instruction, the sequence number of the updated interface layout is respectively in the directions (X1, Y1) pointing to (X3, Y4): "1", "2", "3", "4", "13", "5", "6", "7", "8", "9", "10", "11", "12".
It is understood that the increase instruction may be triggered by a mouse, and the specific triggering operation is not described herein.
When testing the tested devices, if a user wants to add one tested device, so as to be able to test more tested devices at the same time, but the interface layout in the prior art limits the number and layout manner of the tested devices, so that when the added number of the tested devices exceeds the upper limit of the number in the existing interface layout, more tested devices cannot be tested at the same time. Through the processing of the added instruction, the user can process at the software end, namely, a control interface can be added at a proper position (namely, a fifth position coordinate) on the blank canvas, so that the user does not need to process at the hardware end, the software redevelopment is reduced, and the test efficiency is improved.
In one embodiment of the invention, the characteristic information includes: the serial number and the position coordinate of each control interface are different, and the serial numbers and the position coordinates of different control interfaces are different;
the processing instructions further include: deleting the instruction;
based on the processing instructions, updating the feature information included in the configuration file, including:
deleting the sixth position coordinate and the serial number of the control interface to be deleted based on the deleting instruction, wherein the sixth position coordinate is the position coordinate of the control interface to be deleted before deletion;
sequentially moving the serial number of the control interface with the position coordinate behind the sixth position coordinate forward by one unit coordinate;
the serial number and location coordinates of each control interface included in the update configuration file.
In the embodiment of the present invention, for example, if the user wants to delete the control interface with sequence number "3", the sequence numbers of the updated interface layout in the directions pointing to (X3, Y4) along (X1, Y1) through the processing of the deletion command are: "1", "2", "4", "5", "6", "7", "8", "9", "10", "11", "12", empty.
For another example, when the user wants to delete the control interface with the sequence number "7", the sequence numbers of the updated interface layout in the directions pointing to (X3, Y4) along (X1, Y1) are: "1", "2", "3", "4", "5", "6", "8", "9", "10", "11", "12", empty.
In one embodiment of the invention, the characteristic information includes: the serial number and the position coordinate of each control interface are different, and the serial numbers and the position coordinates of different control interfaces are different;
the processing instructions further include: deleting the instruction;
based on the processing instructions, updating the feature information included in the configuration file, including:
based on the deleting instruction, deleting the serial number of the control interface to be deleted;
assigning the null value to a sixth position coordinate of the control interface to be deleted;
the serial number and location coordinates of each control interface included in the update configuration file.
In the embodiment of the present invention, for example, if the user wants to delete the control interface with sequence number "3", the sequence numbers of the updated interface layout in the directions pointing to (X3, Y4) along (X1, Y1) through the processing of the deletion command are: "1", "2", empty, "4", "5", "6", "7", "8", "9", "10", "11", "12".
For another example, when the user wants to delete the control interface with the sequence number "7", the sequence numbers of the updated interface layout in the directions pointing to (X3, Y4) along (X1, Y1) are: "1", "2", "3", "4", "5", "6", empty "," 8 "," 9 "," 10 "," 11 "," 12 ".
It should be noted that, in the last deleting mode, after the control interface corresponding to the port with the fault is deleted, the other control interfaces corresponding to the ports without the fault are covered on the position coordinates of the deleted control interface. Since the control interface sometimes prompts the tester to click the function button on the control interface, the last deleting method may be disadvantageous in that the tester may click the function button incorrectly due to the wrong-looking prompt message. However, this deleted embodiment has the advantage over the last deleted embodiment in that: the control interface corresponding to the fault port is directly deleted, so that the display of the control interface is more visual, the interference can be reduced, and the test efficiency and the fault tolerance rate are improved. It is understood that the deletion instruction may be triggered by a mouse, and the specific triggering operation is not described herein.
When testing the device under test, in the prior art, if a user finds that a cable interface fails, the control interface corresponding to the cable interface is still displayed on a blank canvas, which is not beneficial to the user in the overall test of the device under test corresponding to the cable interface without failure. Through the processing of the deleting instruction, a user can process the cable interface at a software end, namely the control interface corresponding to the cable interface can be deleted, and the integral test of the user on the tested equipment corresponding to the fault-free cable interface is favorably improved.
In one embodiment of the invention, the characteristic information includes: the length and width of each control interface;
the processing instructions further include: a zoom instruction;
based on the processing instructions, updating the feature information included in the configuration file, including:
determining the length and the width of a control interface to be zoomed based on the zooming instruction;
the update profile includes the length and width of each control interface.
In the embodiment of the invention, when the tested device is tested, the interface layout in the prior art is fixed, so that a user cannot adjust the size of the control interface in real time. Through the processing of the zooming instruction, the user can process the zooming instruction at the software end, namely the length and the width of the control interface to be zoomed can be adjusted according to the preference of the user, so that the use experience of the user is improved.
In addition, in one embodiment of the present invention, the characteristic information includes: font size within each control interface;
the processing instructions further include: a zoom instruction;
based on the processing instructions, updating the feature information included in the configuration file, including:
determining the font size in the control interface to be zoomed based on the zooming instruction;
the font size within each control interface included in the update profile.
It is understood that the zoom command may be triggered by a mouse, and the specific triggering operation is not described herein.
As shown in fig. 4 and 5, an embodiment of the present invention provides a configuration apparatus for a network test device and a control interface. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. From a hardware level, as shown in fig. 4, a hardware structure diagram of a network test device provided in the embodiment of the present invention is shown, where in addition to the processor, the memory, the cable interface, and the nonvolatile memory shown in fig. 4, the device in the embodiment may also include other hardware, such as a forwarding chip responsible for processing a packet, in general. Taking a software implementation as an example, as shown in fig. 5, as a logical apparatus, the apparatus is formed by reading a corresponding computer program instruction in a non-volatile memory into a memory by a CPU of a device in which the apparatus is located and running the computer program instruction.
As shown in fig. 5, the configuration apparatus of a control interface provided in this embodiment is applied to a network test device, and includes:
a first obtaining module 502, configured to obtain a blank canvas and a configuration file, where the configuration file includes feature information of at least one control interface, and the feature information is used to characterize features of at least one control interface, where one control interface is connected to one device under test through at least one cable interface;
a loading module 504, configured to load the configuration file, so as to present, on the blank canvas, a control interface included in the configuration file according to the feature information;
a second obtaining module 506, configured to obtain a processing instruction for the control interface, where the processing instruction includes an instruction for changing the number of rows and columns of the control interface;
an updating module 508, configured to update the feature information included in the configuration file based on the processing instruction, and jump to execute the loading of the configuration file.
In an embodiment of the present invention, the first obtaining module 502 may be configured to perform step 202 in the above-described method embodiment, the loading module 504 may be configured to perform step 204 in the above-described method embodiment, the second obtaining module 506 may be configured to perform step 206 in the above-described method embodiment, and the updating module 508 may be configured to perform step 208 in the above-described method embodiment.
In one embodiment of the present invention, the feature information includes: the serial number and the position coordinate of each control interface are different from those of different control interfaces;
the processing instructions further include: a move instruction;
the update module 508 is configured to perform the following operations:
determining a first position coordinate and a second position coordinate of the control interface to be moved based on the movement instruction, wherein the first position coordinate is the position coordinate of the control interface to be moved before moving, and the second position coordinate is the position coordinate of the control interface to be moved after moving;
moving the serial number of the control interface to be moved from the first position coordinate to the second position coordinate, and sequentially moving the serial number of the control interface of which the position coordinate is located between the first position coordinate and the second position coordinate to a unit coordinate in the direction in which the second position coordinate points to the first position coordinate;
and updating the serial number and the position coordinate of each control interface included in the configuration file.
In one embodiment of the present invention, the feature information includes: the serial number and the position coordinate of each control interface are different from those of different control interfaces;
the processing instructions further include: a replacement instruction;
the update module 508 is configured to perform the following operations:
determining a third position coordinate and a fourth position coordinate of the control interface to be replaced based on the replacement instruction, wherein the third position coordinate is the position coordinate of the control interface to be replaced before replacement, and the fourth position coordinate is the position coordinate of the control interface to be replaced after replacement;
replacing the serial number of the control interface to be replaced and the serial number of the control interface with the position coordinate positioned at the fourth position coordinate;
and updating the serial number and the position coordinate of each control interface included in the configuration file.
In one embodiment of the present invention, the feature information includes: the serial number and the position coordinate of each control interface are different from those of different control interfaces;
the processing instructions further include: an increase instruction;
the update module 508 is configured to perform the following operations:
determining a fifth position coordinate of the control interface to be added based on the adding instruction, wherein the fifth position coordinate is the position coordinate of the control interface to be added after the control interface to be added is added;
sequentially moving the serial number of the control interface with the position coordinate behind the fifth position coordinate backward by a unit coordinate;
assigning a target serial number to the control interface to be added, wherein the target serial number is different from the serial number of each control interface in the configuration file;
and updating the serial number and the position coordinate of each control interface included in the configuration file.
In one embodiment of the present invention, the feature information includes: the serial number and the position coordinate of each control interface are different from those of different control interfaces;
the processing instructions further include: deleting the instruction;
the update module 508 is configured to perform the following operations:
deleting a sixth position coordinate and a serial number of the control interface to be deleted based on the deleting instruction, wherein the sixth position coordinate is a position coordinate of the control interface to be deleted before deletion;
sequentially moving the serial number of the control interface with the position coordinate behind the sixth position coordinate forward by one unit coordinate;
and updating the serial number and the position coordinate of each control interface included in the configuration file.
In one embodiment of the present invention, the feature information includes: a length and a width of each of the control interfaces;
the processing instructions further include: a zoom instruction;
the update module 508 is configured to perform the following operations:
determining the length and the width of a control interface to be zoomed based on the zooming instruction;
updating the length and width of each of the control interfaces included in the configuration file.
It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the configuration device of the control interface. In other embodiments of the invention, the configuration means of the control interface may comprise more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Because the content of information interaction, execution process, and the like among the modules in the device is based on the same concept as the method embodiment of the present invention, specific content can be referred to the description in the method embodiment of the present invention, and is not described herein again.
An embodiment of the present invention further provides a network test device, including: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor is configured to invoke the machine-readable program to perform a configuration method of a control interface according to any embodiment of the present invention.
Embodiments of the present invention also provide a computer-readable medium storing instructions for causing a computer to perform a method of configuring a control interface as described herein. Specifically, a method or an apparatus equipped with a storage medium on which a software program code that realizes the functions of any of the above-described embodiments is stored may be provided, and a computer (or a CPU or MPU) of the method or the apparatus is caused to read out and execute the program code stored in the storage medium.
In this case, the program code itself read from the storage medium can realize the functions of any of the above-described embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
Examples of the storage medium for supplying the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (e.g., CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW), a magnetic tape, a nonvolatile memory card, and a ROM. Alternatively, the program code may be downloaded from a server computer via a communications network.
Further, it should be clear that the functions of any one of the above-described embodiments can be implemented not only by executing the program code read out by the computer, but also by performing a part or all of the actual operations by an operation method or the like operating on the computer based on instructions of the program code.
The foregoing description of specific embodiments of the present invention has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The above-mentioned embodiments, objects, technical solutions and advantages of the present invention are further described in detail, it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the present invention should be included in the scope of the present invention.

Claims (10)

1. The configuration method of the control interface is characterized by being applied to network test equipment and comprising the following steps:
acquiring a blank canvas and a configuration file, wherein the configuration file comprises at least one characteristic information of a control interface, the characteristic information is used for representing the characteristics of at least one control interface, and one control interface is connected with a tested device through at least one cable interface;
loading the configuration file to present a control interface included by the configuration file on the blank canvas according to the characteristic information;
acquiring a processing instruction for the control interface, wherein the processing instruction comprises an instruction for changing the number of rows and columns of the control interface;
based on the processing instruction, updating the characteristic information included in the configuration file, and skipping to execute the loading of the configuration file.
2. The method of claim 1, wherein the feature information comprises: the serial number and the position coordinate of each control interface are different from those of different control interfaces;
the processing instructions further include: a move instruction;
the updating the feature information included in the configuration file based on the processing instruction comprises:
determining a first position coordinate and a second position coordinate of the control interface to be moved based on the movement instruction, wherein the first position coordinate is the position coordinate of the control interface to be moved before moving, and the second position coordinate is the position coordinate of the control interface to be moved after moving;
moving the serial number of the control interface to be moved from the first position coordinate to the second position coordinate, and sequentially moving the serial number of the control interface of which the position coordinate is located between the first position coordinate and the second position coordinate to a unit coordinate in the direction in which the second position coordinate points to the first position coordinate;
and updating the serial number and the position coordinate of each control interface included in the configuration file.
3. The method of claim 1, wherein the feature information comprises: the serial number and the position coordinate of each control interface are different from those of different control interfaces;
the processing instructions further include: a replacement instruction;
the updating the feature information included in the configuration file based on the processing instruction comprises:
determining a third position coordinate and a fourth position coordinate of the control interface to be replaced based on the replacement instruction, wherein the third position coordinate is the position coordinate of the control interface to be replaced before replacement, and the fourth position coordinate is the position coordinate of the control interface to be replaced after replacement;
replacing the serial number of the control interface to be replaced and the serial number of the control interface with the position coordinate positioned at the fourth position coordinate;
and updating the serial number and the position coordinate of each control interface included in the configuration file.
4. The method of claim 1, wherein the feature information comprises: the serial number and the position coordinate of each control interface are different from those of different control interfaces;
the processing instructions further include: an increase instruction;
the updating the feature information included in the configuration file based on the processing instruction comprises:
determining a fifth position coordinate of the control interface to be added based on the adding instruction, wherein the fifth position coordinate is the position coordinate of the control interface to be added after the control interface to be added is added;
sequentially moving the position coordinate to be the fifth position coordinate and the serial number of the control interface behind the fifth position coordinate backward by one unit coordinate;
assigning a target serial number to the control interface to be added, wherein the target serial number is different from the serial number of each control interface in the configuration file;
and updating the serial number and the position coordinate of each control interface included in the configuration file.
5. The method of claim 1, wherein the feature information comprises: the serial number and the position coordinate of each control interface are different from those of different control interfaces;
the processing instructions further include: deleting the instruction;
the updating the feature information included in the configuration file based on the processing instruction comprises:
deleting a sixth position coordinate and a serial number of the control interface to be deleted based on the deleting instruction, wherein the sixth position coordinate is a position coordinate of the control interface to be deleted before deletion;
sequentially moving the serial number of the control interface with the position coordinate behind the sixth position coordinate forward by one unit coordinate;
and updating the serial number and the position coordinate of each control interface included in the configuration file.
6. The method according to any one of claims 1 to 5, wherein the feature information comprises: a length and a width of each of the control interfaces;
the processing instructions further include: a zoom instruction;
the updating the feature information included in the configuration file based on the processing instruction comprises:
determining the length and the width of a control interface to be zoomed based on the zooming instruction;
updating the length and width of each of the control interfaces included in the configuration file.
7. The configuration device of the control interface is characterized in that the configuration device is applied to network test equipment and comprises the following components:
the device comprises a first acquisition module, a second acquisition module and a configuration module, wherein the configuration file comprises a first number of control interfaces and characteristic information, the characteristic information is used for representing the characteristics of the first number of control interfaces, one control interface is connected with a tested device through a cable interface, the number of the cable interfaces is a second number, and the first number is larger than the second number;
the loading module is used for loading the configuration file so as to present a control interface included by the configuration file on the blank canvas according to the characteristic information;
the second obtaining module is used for obtaining a processing instruction for the control interface, wherein the processing instruction comprises an instruction for changing the number of rows and columns of the control interface;
and the updating module is used for updating the characteristic information included in the configuration file based on the processing instruction and skipping to execute the loading of the configuration file.
8. Computer readable storage medium, characterized in that it has stored thereon computer instructions which, when executed by a processor, cause the processor to carry out the method of any one of claims 1 to 6.
9. Network test equipment, characterized by comprising: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor, configured to invoke the machine readable program, to perform the method of any of claims 1 to 6.
10. A network test system, comprising: a device under test and a network test device;
the device under test is connected with the network test equipment through a cable interface, and the network test equipment is the network test equipment as claimed in claim 9.
CN202011151691.7A 2020-10-26 2020-10-26 Configuration method and device of control interface Pending CN112269577A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011151691.7A CN112269577A (en) 2020-10-26 2020-10-26 Configuration method and device of control interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011151691.7A CN112269577A (en) 2020-10-26 2020-10-26 Configuration method and device of control interface

Publications (1)

Publication Number Publication Date
CN112269577A true CN112269577A (en) 2021-01-26

Family

ID=74341706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011151691.7A Pending CN112269577A (en) 2020-10-26 2020-10-26 Configuration method and device of control interface

Country Status (1)

Country Link
CN (1) CN112269577A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014206055A1 (en) * 2013-06-28 2014-12-31 Tencent Technology (Shenzhen) Company Limited A method and system for generating a user interface
CN105743706A (en) * 2016-03-31 2016-07-06 武汉虹信技术服务有限责任公司 Disk array performance monitoring and early-warning method and system based on HTTP
CN107729012A (en) * 2017-10-27 2018-02-23 深圳前海桔子信息技术有限公司 A kind of application interface combined arrangement method and device
CN109032733A (en) * 2018-07-10 2018-12-18 深圳Tcl数字技术有限公司 Terminal equipment managing method, system and computer readable storage medium
CN110879777A (en) * 2019-10-12 2020-03-13 平安普惠企业管理有限公司 Control testing method and device for application interface, computer equipment and storage medium
CN111813613A (en) * 2020-07-20 2020-10-23 网易(杭州)网络有限公司 Test management method, test management device, electronic equipment and storage medium
CN111817921A (en) * 2020-07-20 2020-10-23 网易(杭州)网络有限公司 Mobile test equipment, test method, device, system and networking method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014206055A1 (en) * 2013-06-28 2014-12-31 Tencent Technology (Shenzhen) Company Limited A method and system for generating a user interface
CN105743706A (en) * 2016-03-31 2016-07-06 武汉虹信技术服务有限责任公司 Disk array performance monitoring and early-warning method and system based on HTTP
CN107729012A (en) * 2017-10-27 2018-02-23 深圳前海桔子信息技术有限公司 A kind of application interface combined arrangement method and device
CN109032733A (en) * 2018-07-10 2018-12-18 深圳Tcl数字技术有限公司 Terminal equipment managing method, system and computer readable storage medium
CN110879777A (en) * 2019-10-12 2020-03-13 平安普惠企业管理有限公司 Control testing method and device for application interface, computer equipment and storage medium
CN111813613A (en) * 2020-07-20 2020-10-23 网易(杭州)网络有限公司 Test management method, test management device, electronic equipment and storage medium
CN111817921A (en) * 2020-07-20 2020-10-23 网易(杭州)网络有限公司 Mobile test equipment, test method, device, system and networking method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
铁道部劳动和卫生司铁道部运输局: "高速铁路通信网管岗位", 30 November 2012, 中国铁道出版社, pages: 105 - 107 *

Similar Documents

Publication Publication Date Title
US11839813B2 (en) Interactive scenario implementation method and apparatus, computer device, and storage medium
US8893118B2 (en) Migratable unit based application migration
CN103069386B (en) Control program creating device, control program generator and control program creating method
US8352963B2 (en) Method and system for data preparation and communication between software applications
CN112957730B (en) Plot interaction method and device and electronic equipment
CN113364515B (en) Satellite remote control method, device, equipment and storage medium based on Xstate
US20070078538A1 (en) Debug device
CN109684573A (en) Target Photo display methods and device, storage medium, electronic equipment
CN106294172A (en) App self-testing method based on terminal unit and device
US20230316946A1 (en) System and method for vr training
CN112783764B (en) Automatic testing method and device for application program, storage medium and terminal
CN112269577A (en) Configuration method and device of control interface
CN104008056A (en) Software testing method and device
KR20190135074A (en) Ui testing automation method using deep learning algorithem and tree and appratus for the same
CN112214416A (en) Method and device for debugging small program, electronic equipment and storage medium
CN112835787B (en) Path correction method and device for application program interface skipping, storage medium and terminal
CN112835786B (en) Optimal path calculation method and device for application program interface jump, storage medium and terminal
CN112765041B (en) Game automation testing method and device and electronic equipment
CN114185773A (en) Program testing method, program testing device, electronic equipment and computer readable storage medium
CN113778460A (en) Production environment deployment method and device
JP2009169628A (en) Construction device, construction method and program for monitoring control system
CN112306838A (en) Page layout compatibility testing method, device and equipment and readable storage medium
CN113986769A (en) Application testing method, system, device and computer readable storage medium
CN116302177A (en) Flow construction operation method, system, electronic equipment and storage medium
CN111708474A (en) Method and device for simulating user touch operation, storage medium and all-in-one machine equipment

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