CN111865437B - Digital conversion method and device - Google Patents
Digital conversion method and device Download PDFInfo
- Publication number
- CN111865437B CN111865437B CN202010595781.9A CN202010595781A CN111865437B CN 111865437 B CN111865437 B CN 111865437B CN 202010595781 A CN202010595781 A CN 202010595781A CN 111865437 B CN111865437 B CN 111865437B
- Authority
- CN
- China
- Prior art keywords
- test
- combination
- element combination
- content
- condition
- 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.)
- Active
Links
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 53
- 238000000034 method Methods 0.000 title claims abstract description 44
- 238000012360 testing method Methods 0.000 claims abstract description 284
- 238000012797 qualification Methods 0.000 claims description 25
- 238000012545 processing Methods 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- GVVPGTZRZFNKDS-JXMROGBWSA-N geranyl diphosphate Chemical compound CC(C)=CCC\C(C)=C\CO[P@](O)(=O)OP(O)(O)=O GVVPGTZRZFNKDS-JXMROGBWSA-N 0.000 description 4
- 230000003068 static effect Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000001914 filtration Methods 0.000 description 3
- 230000006399 behavior Effects 0.000 description 2
- 238000007689 inspection Methods 0.000 description 2
- 238000003672 processing method Methods 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B17/00—Monitoring; Testing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application discloses a digital conversion method and a digital conversion device, wherein the method comprises the following steps: acquiring test configuration information, wherein the test configuration information comprises at least one element combination, the at least one element combination comprises at least one test element value, one or more element combinations further comprise an identification of a limiting condition, the test configuration information further comprises content of the at least one limiting condition, and the identification of the limiting condition is used for indicating the content of the corresponding limiting condition; and determining a target element combination from at least one element combination according to the content of the defined condition indicated by the identification of the defined condition in one or more element combinations and at least one test element value included in each element combination, and obtaining target configuration information. By the method, the digitalized code of the radio frequency consistency test document can be simple, easy to maintain and easy to expand.
Description
Technical Field
The present application relates to the field of communications technologies and computer technologies, and in particular, to a digital conversion method and apparatus.
Background
The radio frequency conformance test needs to be performed using an automated tool for radio frequency conformance testing, which is standardized by a radio frequency conformance test document provided by the third Generation Partnership Project (3 GPP). In the development process of the automation tool, the parameter configuration of each chapter test item in the radio frequency consistency document and the condition limitation attached to the parameter configuration need to be digitalized (namely, converted into code text) so as to be recognized by the automation tool.
At present, the digital conversion of the radio frequency consistency test document combines different limiting conditions and different test elements in each chapter and embodies the logical relationship between the limiting conditions and the test elements through a plurality of judgment sentences.
For example, given a defined condition: for a frequency band meeting a first condition, when the carrier type is a first carrier, testing in a medium-low frequency domain at a first carrier position and testing in a high frequency at a second carrier position; when the carrier type is a second carrier, the high frequency test at the first carrier position and the middle and low frequency test at the second carrier position are needed. In this definition, four elements are involved: frequency band, carrier type, carrier location, frequency domain. The current processing method uses a multilayer judgment statement to perform nesting processing, and the expression form is roughly as follows:
if the limiting conditions are further complicated, more judgment steps are needed, so that the digitally obtained codes are too bulky, difficult to maintain and poor in expansibility.
Disclosure of Invention
The application discloses a digitization conversion method and a digitization conversion device, which can enable codes of a radio frequency consistency test document after digitization to be simple, easy to maintain and easy to expand.
In a first aspect, an embodiment of the present application provides a method for digital conversion, where the method includes:
acquiring test configuration information, wherein the test configuration information comprises at least one element combination, the at least one element combination comprises at least one test element value, one or more element combinations further comprise an identification of a limiting condition, the test configuration information further comprises content of the at least one limiting condition, and the identification of the limiting condition is used for indicating the content of the corresponding limiting condition;
and determining a target element combination from at least one element combination according to the content of the defined condition indicated by the identification of the defined condition in one or more element combinations and at least one test element value included in each element combination, and obtaining target configuration information.
In one embodiment, a configuration table in a test document is converted into a first code text, the configuration table comprising at least one test element value and an identification of one or more qualifying conditions; obtaining at least one group of test element values according to each test element value in the first code text; and determining at least one element combination according to the at least one group of test element values and the identification of the limiting condition corresponding to one or more test element values.
In one embodiment, a qualification table in the test document is converted into second code text, wherein the qualification table comprises the content of at least one qualification; and acquiring the content of one or more defined conditions from the second code text.
In an embodiment, if the first element combination includes an identifier of a limiting condition, determining whether at least one test element value in the first element combination satisfies the content of the limiting condition corresponding to the identifier of the limiting condition, where the first element combination is any one element combination in the at least one element combination; if so, determining the first element combination as a target element combination; and if the first element combination does not comprise the identification of the limiting condition, determining the first element combination as a target element combination to obtain target configuration information.
In an embodiment, according to the content of a limiting condition corresponding to one or more element combinations and each element combination including at least one test element, determining a target element combination from the at least one element combination, and before obtaining target configuration information, determining whether at least one test element value in a second element combination satisfies a preset condition, where the second element combination is any one element combination in the at least one element combination; if not, deleting the second element combination from the test configuration information.
In one embodiment, limit information is acquired, and the limit information is used for indicating a standard range of a test result; and pairing the target element combination with the limit information to obtain configuration limit information.
In one embodiment, a test standard document is converted into a third code text, the test standard document comprises configuration information and standard information, the configuration information comprises at least one standard element value, the standard information comprises the content of at least one standard condition, and one or more standard element values comprise the identification of the standard condition; and processing the configuration information according to the standard information to obtain limit value information.
In a second aspect, an embodiment of the present application provides a digital conversion apparatus, including:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring test configuration information, the test configuration information comprises at least one element combination, the at least one element combination comprises at least one test element value, one or more element combinations further comprise identification of a defined condition, the test configuration information further comprises content of the at least one defined condition, and the identification of the defined condition is used for indicating the content of the identified corresponding defined condition;
and the processing unit is used for determining a target element combination from at least one element combination according to the content of the limiting condition indicated by the identification of the limiting condition in one or more element combinations and at least one test element value included in each element combination to obtain target configuration information.
In a third aspect, an embodiment of the present application provides a digital conversion apparatus, which includes a processor, a memory, and a user interface, where the processor, the memory, and the user interface are connected to each other, where the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the digital conversion method described in the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where one or more instructions are stored in the computer-readable storage medium, and the one or more instructions are adapted to be loaded by a processor and execute the digital conversion method described in the first aspect.
In the embodiment of the application, the digital conversion device acquires test configuration information, the test configuration information comprises at least one element combination, the at least one element combination comprises at least one test element value, the one or more element combinations further comprise an identifier of a limiting condition, the test configuration information further comprises content of the at least one limiting condition, and the identifier of the limiting condition is used for indicating the content of the corresponding limiting condition; and determining a target element combination from the at least one element combination according to the content of the defined condition indicated by the identification of the defined condition in one or more element combinations and at least one test element value included in each element combination, so as to obtain target configuration information. By the method, the digitalized code of the radio frequency consistency test document can be simple, easy to maintain and easy to expand.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a system architecture diagram of a digital conversion method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a digital conversion method according to an embodiment of the present application;
FIG. 3a is a diagram illustrating a configuration table in a test document according to an embodiment of the present application;
fig. 3b is a schematic diagram of test configuration information provided in an embodiment of the present application;
FIG. 4 is a diagram illustrating element relationships in the content of a constraint provided in an embodiment of the present application;
fig. 5 is a schematic diagram of a unit of a digital conversion apparatus according to an embodiment of the present application;
fig. 6 is a simplified schematic diagram of an entity structure of a digital conversion apparatus according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention.
In order to better understand the embodiments of the present application, the following description refers to the terms and the technical knowledge involved in the embodiments of the present application:
radio Frequency (RF) conformance testing: the method is an important test for the mobile terminal before business in the communication field industry, and is also a test which is very concerned by operators, mobile phone manufacturers and the like. Various mobile communication protocol standards clearly define the behaviors and reactions of the mobile phone and the network in various states, and a consistency test checks whether the behaviors of the mobile phone are consistent with the protocol standard regulations. The RF conformance test is performed based on RF conformance test documents provided by the third Generation Partnership Project (3 GPP). The RF conformance test documentation provides a high degree of authority over the test elements, test conditions and test criteria of the device under test. The RF conformance test is performed by a dedicated instrument, which may be a comprehensive tester.
Procedure for RF conformance testing: the tested equipment and the comprehensive testing instrument establish communication connection; configuring different test parameters by the comprehensive tester; the comprehensive tester checks whether the signal sent by the tested equipment is normal or whether the tested equipment can normally receive the signal.
Restriction conditions (Note): is the part of the radio frequency conformance document where the test elements are conditionally defined. Each Note is a limiting condition, and can indicate a condition that one or more test elements related to the Note need to meet, so that the element combination related to the Note can be subjected to screening and filtering, and target configuration information formed by the target element combination is obtained. Wherein, the Note can include static, dynamic, semi-static and negligible four types. The static Note is a condition that does not relate to the capability or information of a User Equipment (UE). Dynamic notes are then conditions related to the capabilities or information of the UE. The semi-static Note indicates that the higher-order data (determining paramlist) includes both static elements and dynamic elements. The deterministic paramlist is a list for storing elements that determine whether a Note is true, and each element includes an element type name, an upper limit, a lower limit, or a value space. An ignorable Note is a requirement that some notes describe, and the conversion process is performed by default.
In addition, when notes are entered into the code text, a corresponding Note data structure is required to store each Note. The data structure includes the name (noteCasename) of the configuration list where the Note is located, the Note number (noteNumber), the Note text description content (notcontent), and whether the Note text description content is global (isglobal). Here, the global Not means that the Note acts on the entire configuration table. The four data are the underlying data in the Note data structure.
It should be noted that the high-level data is parsed from the Note text description (noteconent). The Note corresponds to a condition of the target element combination, and whether the condition is satisfied is determined by the element involved in the noteconent. When each element in the target combination of elements is within the required range, then the Note is true, that is, the target combination of elements is allowed. Since the noteconent may be arbitrary text, sufficient accumulation is needed for semantic segmentation and parsing of arbitrary text, the current high-order data is filled in manually, named DeterminationParamList. The target element combination may be a configuration combination, and refers to a plurality of element combinations obtained by arranging and combining test elements in a configuration table of a test document according to different values. In general, the notes are only valid when the elements in the DeterminationParamList are all required to be within the required range, that is, the relationship between the elements is logical and. However, there are some cases, such as when both element a and element B are true, or both element C and element D are true, and Note can be true as long as either of these two states is satisfied. In order to cope with this situation, a member is also required in the Note data structure, and the member is used for describing the relationship of each element. This member is named calcbol. The member of the callboot is a delegated type of data that receives incoming methods from outside the data structure and can handle binary relationships between any number of elements.
In order to better understand the embodiments of the present application, a system architecture to which the embodiments of the present application can be applied is described below.
Referring to fig. 1, fig. 1 is a system architecture diagram of a digital conversion method according to an embodiment of the present disclosure. The system architecture as shown in fig. 1 includes a UI, a 3GPP module, and a Unibusiness module. The 3GPP module further includes a conversion module and a static Note processing module, and original data in a test document provided by the 3GPP can be converted into target configuration information through the two modules, where the target configuration information may also be referred to as a target configuration list, and the original data may include a configuration table and a constraint table. The test elements to which the test document relates, the value of each test element, and the combination of a plurality of test elements by taking different values are described in the configuration table. The constraint table is a table including at least one constraint content. The target configuration list is sent to the Unibusiness module through an external interface, and a small part of information in the target configuration category is sent to the UI through an Extensible Markup Language (XML) for display, and a user may operate the small part of information through display content of the UI interface, for example, check or edit related information. Finally, the edited small part of information is also sent to the Unibussiness module. And the edited small part of information can become UI information, and the Unibussiness module can screen and filter the target configuration list according to the UI information. The Unibussiness module also comprises a dynamic Note processing module, a measurement operation module and an instrument interface. The dynamic Note module may further conditionally define the target configuration information according to the capability of the terminal device or a condition related to the information, and the dynamic Note may be included in a test standard document provided by 3 GPP.
In the current technology, it is common practice to digitize the test documents provided by 3GPP using separate codes to process different chapters. In three stages of generating a test sequence, establishing communication and executing a test process related to the RF consistency test, various judgment sentences need to be added to process different limiting conditions, so that the method can cause the finally obtained code to be bloated, difficult to maintain and poor in expansibility.
In order to make the digitized code of the radio frequency conformance test document simple, easy to maintain and easy to expand, the embodiments of the present application provide a method and an apparatus for digital conversion, and the method and the apparatus for digital conversion provided in the embodiments of the present application are further described in detail below.
Referring to fig. 2, fig. 2 is a schematic flowchart of a digital conversion method according to an embodiment of the present disclosure. The main body of this embodiment may be a digital conversion device, and this embodiment may be implemented in a 3GPP module. The digital conversion method can comprise the following steps:
210. acquiring test configuration information, wherein the test configuration information comprises at least one element combination, the at least one element combination comprises at least one test element value, one or more element combinations further comprise an identification of a limiting condition, the test configuration information further comprises the content of the at least one limiting condition, and the identification of the limiting condition is used for indicating the content of the corresponding limiting condition.
The digitizer may obtain test configuration information, which may be a table in code form. The table includes at least one combination of elements, each combination of elements further including at least one test element value. Wherein the at least one test element value may be provided by a test document of 3 GPP. Each element value in the at least one test element value may be a value, a value range, or a type of the test element corresponding to the test element value. For example, if the test element is a frequency, the corresponding test element value may be a specific value, such as 5MHz, 10MHz, or a value range of low frequency, intermediate frequency, high frequency, or the like; for another example, if the test element is a modulation scheme, the corresponding test element value may be of QPSK, 16QAM, or the like. One or more element combinations may also include an identifier of a constraint condition, that is, one element combination may or may not include an identifier of a constraint condition. The test configuration information further includes content of at least one limiting condition, and the content of the at least one limiting condition may be acquired by the digital conversion apparatus according to an identifier of the limiting condition included in one or more element combinations. The identification of the qualification is used to indicate the content identifying the corresponding qualification. If one element combination in at least one element combination comprises the identification of the limiting condition, the digital conversion device can acquire the content of the limiting condition indicated by the identification of the limiting condition.
The digitizer obtains the test configuration information, and in fact obtains the contents of the at least one combination of elements, and the at least one qualification, respectively. The obtaining of the at least one combination of elements is based on a configuration table in the test document, and the obtaining of the content of at least the defining condition is based on a limit condition table in the test document.
The digital conversion device obtains at least one element combination, and may convert a configuration table in a test document provided by 3GPP into a first code text, where the configuration table includes at least one test element value and an identifier of one or more limiting conditions. The configuration table is converted into the first code text, which can be manually input or obtained by identifying and converting in a manual intelligent mode such as machine learning. The configuration table is converted into a first code text, and the digital conversion device can identify the configuration table without hindrance. The configuration table lists the test elements for the device under test, such as test conditions, test channels, test bandwidth, etc. The configuration table also provides each test element value, i.e., the value, value range, or category of explicit test elements that each test element can take. The configuration table includes initial conditions and channel bandwidth test parameters, and the test element included in the initial conditions (initialconditionings) includes all test element values of the test element, such as test element a in fig. 3 a. The Test Parameters (Test Parameters for XXX) of a Test object may include a plurality of Test elements, such as Test element B and Test element C in FIG. 3a, in combination. The digital conversion device can obtain at least one group of test element values according to each test element value in the first code text. The device can select one test element value from each test element in sequence to be combined to obtain a group of test element values; then, a test element value different from the last one is selected from each test element to be combined to obtain another group of test element values, at least one group of finally obtained test element values can cover all permutation and combination, and each group of test element values is not repeated with the other group of test element values. After obtaining the at least one set of test element values, the digitizer may determine at least one combination of elements based on the at least one set of test element values and the identification of the qualifying condition corresponding to the one or more test element values. The digitizer will strip the identification of the qualifying condition when obtaining at least one set of test element values from each test element value in the first code text, i.e., the obtained at least one set of test element values does not include the identification of the qualifying condition. The digitizer associates the identification of the qualifying condition with the at least one set of test element values after obtaining the at least one set of test element values. It should be noted that the identifier of the constraint may be present anywhere in the configuration table, and when the identifier of the constraint and a certain test element value are present at the same place in the configuration table, the identifier represents a group of test element values including the test element value, and is associated with the content of the constraint indicated by the identifier of the constraint. The device then manages the set of test element values with the identification of the qualifying condition, and an element combination is obtained. In addition, for the constraint conditions that do not appear in the configuration table but only appear in the constraint condition table, the constraint conditions are global, that is, each element combination obtained by the digital conversion device contains the identification of the global constraint condition. In the case where a set of test element values is associated with an identification of a qualifying condition, the set of test element values associated with the identification of the qualifying condition may then be an element combination that includes the set of test element values and the identification of the qualifying condition.
For example, the configuration table as shown in FIG. 3a provides three test elements, A, B, C. Wherein the test element values for test element a may include a1, a2, a 3; test element values for test element B may include B1, B2; the test element values for test element C may include C1, C2. And the combination of test element B and test element C is given in the configuration table. The digitizer may take a1 from test element a and B1, C1 from test element B and test element C to obtain a first set of test element values: a1, b1, c 1; a1 from A, B1, C2 from B and C, gave a second set of test element values: a1, b1, c2, and so on. The final digitizer can determine 12 sets of test element values. As shown in fig. 3a, c1 and Note1 (condition 1 defined) in the combination of test element values b2 and c1 appear in the same place in the configuration table, then a group of test element values including b2, c1 would be associated with Note1, such as a1, b2, c 1; multiple sets of test element values, a2, b2, c1, etc., are associated with Note 1. Similarly, c2 in the combination of b2 and c2 also appears in the same place in the configuration table as Note1, then a set of test element values including b2, c2 would all be associated with Note1, such as a1, b2, c 2; a2, b2, c2, and the like. The digital conversion device can obtain a1, b1 and c 1; a1, b1, c 2; a1, b2, c1, Note 1; a1, b2, c2, Note1 and other element combinations. Further, Note2 in fig. 3a does not appear in the configuration table, but appears in the constraint table, the action scope of Note2 may be global, and one Note2 is added to each element combination in the at least one element combination, as shown in fig. 3 b.
The digital conversion device obtains the content of at least one limiting condition, and can convert a limiting condition table in the test document into a second code text, wherein the limiting condition table comprises the content of at least one limiting condition. And further acquiring the content of one or more defined conditions from the second code text. At least one element combination acquired by the digital conversion device can comprise an identification of a limiting condition, the identification of the limiting condition is stored in the element combination in a character string type format, and the content of the corresponding limiting condition needs to be acquired in the second code text. The data structure of the content of the constraint condition in the second text code is a caseNote class, and the caseNote class includes specific test elements for determining whether the constraint condition is satisfied, that is, a direct logical relationship between the test elements. In the converted second text code, the contents of at least one of the qualifiers are all stored in a List < caseNote > NoteList.
220. And determining a target element combination from at least one element combination according to the content of the defined condition indicated by the identification of the defined condition in one or more element combinations and at least one test element value included in each element combination, and obtaining target configuration information.
Specifically, if the first element combination includes the identifier of the limitation condition, it is determined whether at least one test element value in the first element combination satisfies the content of the limitation condition corresponding to the identifier of the limitation condition, where the first element combination is any one element combination in the at least one element combination. If so, determining the first element combination as the target element combination. The content of the qualification may give a condition that an element combination including an identification of the qualification corresponding to the content of the qualification needs to satisfy, or a relationship between individual test elements. When the digital conversion device judges that the element combination meets the content of the limited condition, the element combination can be determined as a target element combination; and if the element combination does not meet the content of the limiting condition, filtering the element combination. And if the first element combination does not comprise the identification of the limiting condition, determining the first element combination as a target element combination to obtain the target configuration information. That is, for an identified element combination that does not include a qualifying condition, it can be directly determined as a target element combination.
Before filtering the element combination according to the content of the constraint condition, the logical relationship of the content of the constraint condition needs to be clarified. The logical relationship of how to explicitly define the contents of the conditions is described below with reference to examples. For example, in fig. 3a, the content of Note1 (constraint 1) is clarified. The content of Note1 may be: for test element C, which takes C1, a1 and a2 tests on b1 are required; for test element C taking C1, the a3 test on b2 is also required; for test element C, which takes C2, a3 test on b1 is required; for test element C, which takes C2, a1 and a2 tests on b2 are also required. From the contents of Note1, it can be known that: c is C1, it may be a1 and a2 configuration on b1, or a3 configuration on b 2; when C is C2, it may be a configuration of a3 on b1, or a1 and a2 on b 2. States allowed by the three test elements can be obtained, namely { (C1& & B1& & a1) | (C1& & B2& & a2) } | { (C2& & B1& & a2) | (C2& & B2& & a1) }. Wherein, C1 represents that the test element C takes C1, and C2 represents that the test element C takes C2; b1 indicates that test element B takes B1, and B2 indicates that test element B takes B2; a1 indicates that test element A takes a1 and a2, and A2 indicates that test element A takes A3. The logical relationship is shown in fig. 4. According to the logical relationship, a section of code corresponding to the content of Note1 can be obtained:
known as Ndp0_ N1_ C1, Ndp1_ N1_ C2, Ndp2_ N1_ B1, Ndp3_ N1_ B2, Ndp4_ N1_ a1, Ndp5_ N1_ a 2. Wherein Ndp0_ N1_ C1 indicates that the test element C in Note1 takes the test element value C1; ndp2_ N1_ B1 indicates the state of Note1 where test element B takes test element value B1, and so on. The following codes can be obtained from Ndp1 to Ndp 5:
wherein In [0] & & In [2] & & In [4] represents the state of C1& & B1& & a1, In [0] & & In [3] & & In [5] represents the state of C1& & B2& & a2, and so on. Similarly, Note2 (qualifier 2) shown in fig. 3a can also be converted into corresponding code by the above method.
In a possible implementation manner, the content of one constraint may include an identifier of another constraint, and the processing method is similar to the above example, and it is only necessary to use the content of the constraint indicated by the identifier of another constraint to clarify the logical relationship of the test element values therein.
The digitizer may further determine a target combination of elements from the at least one combination of elements based on the content of the defined condition. Inheriting the test element A, B, C and its corresponding test element value in the above example shown in fig. 3a and 3b, and the content of Note1, it can be known that, in at least one element combination, the element combination containing the identity of Note1 includes a1, b2, and c 1; a2, b2, c 1; a3, b2, c 1; a1, b2, c 2; a2, b2, c 2; a3, b2, c 2. The digitizer may determine the combination of elements of the content that satisfies Note1, i.e., a3, b2, c1, from the combination of elements. Note2 is also included in each element combination shown in fig. 3b, which indicates that if the combination of a3, b2, and c1 also satisfies the content of Note2, the digital conversion apparatus may determine a3, b2, c1, Note1, and Note2 as the target element combination, and add the target element combination to the target configuration information. Correspondingly, the digital conversion device can filter and screen each other element combination, and finally complete target configuration information can be obtained.
In a possible implementation manner, before determining a target element combination from at least one element combination according to the content of a limiting condition corresponding to one or more element combinations and each element combination including at least one test element and obtaining target configuration information, the digital conversion apparatus determines whether at least one test element value in a second element combination satisfies a preset condition, where the second element combination is any one element combination in the at least one element combination; if not, deleting the second element combination from the test configuration information. The combination feasibility of at least one test element value in each element combination can be filtered and screened through the preset condition, and the preset condition can be set by research personnel or can be defaulted by a digital conversion device. The digital conversion device can sequentially carry out multilayer circulation on each test element value in each element combination according to the preset condition, carry out frequency band inspection, bandwidth inspection and the like, and filter out the element combinations which do not accord with the preset condition. That is, at least one element combination needs to be filtered through combination feasibility and also through the content of the defined condition, so as to finally obtain the target configuration information.
The digitizer apparatus needs to acquire limit information indicating a standard range of the test result in addition to the target configuration information. That is to say, when the comprehensive tester detects the device to be tested, the comprehensive tester needs to perform the detection according to the test conditions and the test element values provided by the target configuration information, and the comprehensive tester finally detects whether the signal sent by the device to be tested is normal or whether the device to be tested can normally receive the signal, and thus the judgment needs to be performed according to the limit value information. The digital conversion device acquires the limit value information, and can convert a test standard document into a third code text, wherein the test standard document comprises configuration information and standard information. Wherein the configuration information comprises at least one standard element value, the standard information comprises content of at least one standard condition, and the one or more standard element values comprise an identification of the standard condition, which may indicate the content of the standard condition. The digital conversion device can process the configuration information according to the standard information to obtain the limit value information. The at least one criterion element value may indicate a criterion value of the test result and an allowable error (Tolerance) of the criterion value of the test result. The content of the at least one criterion condition included in the criterion information may include content of a dynamic criterion condition (dynamic Note). The Tolerance in the configuration information may include an identifier of a standard condition, which indicates that the Tolerance needs to satisfy the content of the corresponding standard condition. The content of the standard condition can further expand or reduce the error range of the above Tolerance.
After the digital conversion device obtains the limit information, the target configuration information and the limit information can be paired to obtain the configuration limit information. That is, the digitizer may combine the limit information with the target configuration information, and each combination of elements in the target configuration information corresponds to a standard range of the test result, and the correspondence is provided by the 3GPP document. After the limit information is paired with one or more element combinations in the target configuration information, the configuration limit information can be obtained.
For example, in the first band, the comprehensive tester considers that the power received by the device to be tested is 23dBm and the Tolerance is plus or minus 2.7dBm, i.e. 20.3dBm to 25.7dBm, according to the configuration limit information, the Tolerance also includes a Note identifier, if the content of the Note is: for the power received to the device under test on the first band, a range of plus or minus 1.5dBm may be added to the current Tolerance. Namely Tolerance is changed into 4.2dBm, and the comprehensive tester considers that the power of the tested equipment receiving 18.8 dBm-27.2 dBm all meets the standard.
According to the embodiment of the application, the digital conversion device stores the content of each limiting condition and the relation between each limiting condition by using a universal data structure and is also described by using a function, so that the aim of generalization can be fulfilled. And the digital conversion device screens and filters at least one element combination according to the contents of different limiting conditions to obtain target configuration information. The device can also obtain limit value information according to a test standard document in the test document, and the limit value information and the target configuration information are paired to finally obtain the configuration limit value information. Because the function is used for describing the content of each limiting condition and the relation between each limiting condition, the finally obtained code is simple and easy to understand, and meanwhile, the code is easy to maintain and has stronger expansibility.
Referring to fig. 5, fig. 5 is a schematic diagram of a unit of a digital conversion apparatus according to an embodiment of the present disclosure. The digitizer shown in fig. 5 may be used to perform some or all of the functions described above in the method embodiment of fig. 2. The device can be an automatic testing tool, can also be a device in the automatic testing tool, or can be a device matched with the automatic testing tool for use. The logical structure of the apparatus may include: an acquisition unit 510 and a processing unit 520. Wherein:
an obtaining unit 510, configured to obtain test configuration information, where the test configuration information includes at least one element combination, the at least one element combination includes at least one test element value, one or more element combinations further include an identifier of a constraint, and the test configuration information further includes content of at least one constraint, and the identifier of the constraint is used to indicate the content of the corresponding constraint;
a processing unit 520, configured to determine a target element combination from the at least one element combination according to the content of the constraint condition indicated by the identification of the constraint condition in one or more element combinations and at least one test element value included in each element combination, so as to obtain target configuration information.
In a possible implementation manner, the processing unit 520 is further configured to convert a configuration table in the test document into a first code text, where the configuration table includes at least one test element value and an identifier of one or more limiting conditions; obtaining at least one group of test element values according to each test element value in the first code text; and determining at least one element combination according to the at least one group of test element values and the identification of the limiting condition corresponding to one or more test element values.
In a possible implementation manner, the processing unit 520 is further configured to convert a constraint condition table in the test document into a second code text, where the constraint condition table includes contents of at least one constraint condition; and acquiring the content of one or more defined conditions from the second code text.
In a possible implementation manner, if the first element combination includes an identifier of a constraint condition, the processing unit 520 is further configured to determine whether at least one test element value in the first element combination satisfies a content of the constraint condition corresponding to the identifier of the constraint condition, where the first element combination is any one element combination in the at least one element combination; if so, determining the first element combination as a target element combination; and if the first element combination does not comprise the identification of the limiting condition, determining the first element combination as a target element combination to obtain target configuration information.
In a possible implementation manner, before determining a target element combination from at least one element combination according to the content of a limiting condition corresponding to one or more element combinations and each element combination includes at least one test element and obtaining target configuration information, the processing unit 520 is further configured to determine whether at least one test element value in a second element combination satisfies a preset condition, where the second element combination is any one element combination in the at least one element combination; if not, deleting the second element combination from the test configuration information.
In a possible implementation manner, the obtaining unit 510 is further configured to obtain limit information, where the limit information is used to indicate a standard range of a test result; and matching the target element combination with the limit information to obtain configuration limit information.
In a possible implementation manner, the processing unit 520 is further configured to convert a test standard document into a third code text, where the test standard document includes configuration information and standard information, the configuration information includes at least one standard element value, the standard information includes content of at least one standard condition, and one or more standard element values include an identifier of the standard condition; and processing the configuration information according to the standard information to obtain limit value information.
In the embodiment of the application, the digital conversion device can acquire a first code text corresponding to a configuration table and a second code text corresponding to a limiting condition table in a test document through an acquisition unit, the code texts include all configuration parameters of the two tables, and the codes describe the configuration parameters, the content of each limiting condition and the relationship among each limiting condition by using functions, and the logical relationship in each function is clear and concise, so that the codes are simpler and have readability.
Referring to fig. 6, fig. 6 is a simplified schematic diagram of an entity structure of a digital conversion apparatus provided in an embodiment of the present application, where the apparatus includes a processor 610, a memory 620, and a communication interface 630, and the processor 610, the memory 620, and the communication interface 630 are connected through one or more communication buses.
The processor 610 is configured to support the digitizer to perform the corresponding functions of the method of fig. 2. The processor 610 may be a Central Processing Unit (CPU), a Network Processor (NP), a hardware chip, or any combination thereof.
The memory 620 is used to store program codes and the like. Memory 620 may include volatile memory (volatile memory), such as Random Access Memory (RAM); the memory 620 may also include a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory (flash memory), a Hard Disk Drive (HDD) or a solid-state drive (SSD); the memory 620 may also comprise a combination of the above types of memory.
In the embodiment of the present application, when the digitizer is applied to an automated test tool, the processor 610 may call the program code stored in the memory 620 to perform the following operations:
the processor 610 may call program code stored in the memory 620 to obtain test configuration information, the test configuration information including at least one element combination, the at least one element combination including at least one test element value, the one or more element combinations further including an identification of a qualification, the test configuration information further including content of the at least one qualification, the identification of the qualification indicating the content of the corresponding qualification;
the processor 610 may invoke program code stored in the memory 620 to determine a target combination of elements from the at least one combination of elements based on the content of the qualification indicated by the identification of the qualification in the one or more combinations of elements and the at least one test element value included in each of the combinations of elements, resulting in target configuration information.
In one possible implementation, the processor 610 may invoke program code stored in the memory 620 to convert a configuration table in the test document to a first code text, the configuration table including at least one test element value, and an identification of one or more qualifying conditions; obtaining at least one group of test element values according to each test element value in the first code text; and determining at least one element combination according to the at least one group of test element values and the identification of the limiting condition corresponding to one or more test element values.
In one possible implementation, the processor 610 may call the program code stored in the memory 620 to convert a qualification table in the test document into a second code text, the qualification table including contents of at least one qualification; and acquiring the content of one or more defined conditions from the second code text.
In a possible implementation manner, if the first element combination includes the identifier of the constraint condition, the processor 610 may call the program code stored in the memory 620, and then determine whether at least one test element value in the first element combination satisfies the content of the constraint condition corresponding to the identifier of the constraint condition, where the first element combination is any one element combination in the at least one element combination; if so, determining the first element combination as a target element combination; and if the first element combination does not comprise the identification of the limiting condition, determining the first element combination as a target element combination to obtain target configuration information.
In a possible implementation manner, according to the content of the limiting condition corresponding to one or more element combinations and each element combination includes at least one test element, before the target element combination is determined from the at least one element combination and the target configuration information is obtained, the processor 610 may call a program code stored in the memory 620 to determine whether at least one test element value in a second element combination satisfies a preset condition, where the second element combination is any one element combination in the at least one element combination; if not, deleting the second element combination from the test configuration information.
In a possible implementation manner, the obtaining unit 510 is further configured to obtain limit information, where the limit information is used to indicate a standard range of a test result; and matching the target element combination with the limit information to obtain configuration limit information.
In one possible implementation, the processor 610 may invoke program code stored in the memory 620 to convert a test standard document to third code text, the test standard document including configuration information and standard information, the configuration information including at least one standard element value, the standard information including content of at least one standard condition, the one or more standard element values including an identification of the standard condition; and processing the configuration information according to the standard information to obtain limit value information.
It should be noted that, in the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to relevant descriptions of other embodiments for parts that are not described in detail in a certain embodiment.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The units in the processing equipment of the embodiment of the invention can be merged, divided and deleted according to actual needs.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, memory Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.
Claims (9)
1. A method of digital conversion, the method comprising:
acquiring test configuration information, wherein the test configuration information comprises at least one element combination, the at least one element combination comprises at least one test element value, one or more element combinations further comprise an identification of a defined condition, and the test configuration information further comprises the content of at least one defined condition, and the identification of the defined condition is used for indicating the content of the defined condition corresponding to the identification; wherein, obtaining the content of at least one limiting condition comprises: converting a qualification table in the test document into second code text, wherein the qualification table comprises the content of at least one qualification; acquiring the content of one or more defined conditions from the second code text, wherein the content of the defined conditions in the second code text comprises the logical relationship between the test elements contained in the defined conditions and the test element values corresponding to the test elements contained in the defined conditions;
and determining a target element combination from at least one element combination according to the content of the defined condition indicated by the identification of the defined condition in one or more element combinations and at least one test element value included in each element combination, and obtaining target configuration information.
2. The method of claim 1, wherein obtaining at least one combination of elements comprises:
converting a configuration table in the test document to a first code text, the configuration table including the at least one test element value, and an identification of one or more qualifying conditions;
obtaining at least one group of test element values according to each test element value in the first code text;
and determining the at least one element combination according to the at least one group of test element values and the identification of the limiting condition corresponding to the one or more test element values.
3. The method according to claim 1 or 2, wherein the determining a target element combination from the at least one element combination according to the content of the qualification indicated by the identification of the qualification in the one or more element combinations and the at least one test element value included in each element combination to obtain the target configuration information comprises:
if the first element combination comprises the identification of the limiting condition, judging whether at least one test element value in the first element combination meets the content of the limiting condition corresponding to the identification of the limiting condition, wherein the first element combination is any one element combination in the at least one element combination; if so, determining the first element combination as the target element combination;
and if the first element combination does not comprise the identification of the limiting condition, determining the first element combination as the target element combination to obtain the target configuration information.
4. The method according to claim 1 or 2, wherein before determining a target element combination from the at least one element combination according to the content of the qualification indicated by the identification of the qualification in the one or more element combinations and the at least one test element value included in each element combination, and obtaining the target configuration information, the method further comprises:
judging whether at least one test element value in a second element combination meets a preset condition, wherein the second element combination is any one element combination in the at least one element combination;
and if not, deleting the second element combination from the test configuration information.
5. The method of claim 1, further comprising:
acquiring limit information, wherein the limit information is used for indicating a standard range of a test result;
and matching the target configuration information with the limit information to obtain configuration limit information.
6. The method of claim 5, wherein the obtaining limit information comprises:
converting a test standard document into a third code text, the test standard document comprising configuration information and standard information, the configuration information comprising at least one standard element value, the standard information comprising content of at least one standard condition, the one or more standard element values comprising an identification of the standard condition;
and processing the configuration information according to the standard information to obtain the limit information.
7. A digital conversion apparatus, comprising:
an obtaining unit, configured to obtain test configuration information, where the test configuration information includes at least one element combination, where the element combination includes at least one test element value, one or more of the element combinations further includes an identifier of a constraint, and the test configuration information further includes content of at least one constraint; wherein, obtaining the content of at least one limiting condition comprises: converting a limiting condition table in the test document into a second code text, wherein the limiting condition table comprises the content of at least one limiting condition; acquiring the content of one or more limiting conditions from the second code text, wherein the content of the limiting conditions in the second code text comprises the logical relationship between the test elements contained in the limiting conditions and the test element values corresponding to the test elements contained in the limiting conditions;
and the processing unit is used for determining a target element combination from at least one element combination according to the content of the definition condition corresponding to one or more element combinations and at least one test element included in each element combination.
8. A digitizer, comprising a processor, a memory and a user interface, the processor, the memory and the user interface being interconnected, wherein the memory is configured to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the digitizer method according to any one of claims 1-6.
9. A computer-readable storage medium, having stored thereon one or more instructions adapted to be loaded by a processor and to execute the method of digital conversion of any of claims 1 to 6.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010595781.9A CN111865437B (en) | 2020-06-24 | 2020-06-24 | Digital conversion method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010595781.9A CN111865437B (en) | 2020-06-24 | 2020-06-24 | Digital conversion method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111865437A CN111865437A (en) | 2020-10-30 |
| CN111865437B true CN111865437B (en) | 2022-07-19 |
Family
ID=72988574
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010595781.9A Active CN111865437B (en) | 2020-06-24 | 2020-06-24 | Digital conversion method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111865437B (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104618955A (en) * | 2015-03-04 | 2015-05-13 | 上海华东电信研究院 | Mobile communication terminal consistency test item set generating method and system |
| CN108647305A (en) * | 2018-05-09 | 2018-10-12 | 天津字节跳动科技有限公司 | document format conversion method and device |
| CN109254912A (en) * | 2018-08-13 | 2019-01-22 | 北京金堤科技有限公司 | A kind of method and device of automatic test |
| CN111143643A (en) * | 2019-12-23 | 2020-05-12 | 中汇信息技术(上海)有限公司 | Element identification method and device, readable storage medium and electronic equipment |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3828379B2 (en) * | 2001-05-17 | 2006-10-04 | 富士通株式会社 | Test specification generation support apparatus, method, program, and recording medium |
-
2020
- 2020-06-24 CN CN202010595781.9A patent/CN111865437B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104618955A (en) * | 2015-03-04 | 2015-05-13 | 上海华东电信研究院 | Mobile communication terminal consistency test item set generating method and system |
| CN108647305A (en) * | 2018-05-09 | 2018-10-12 | 天津字节跳动科技有限公司 | document format conversion method and device |
| CN109254912A (en) * | 2018-08-13 | 2019-01-22 | 北京金堤科技有限公司 | A kind of method and device of automatic test |
| CN111143643A (en) * | 2019-12-23 | 2020-05-12 | 中汇信息技术(上海)有限公司 | Element identification method and device, readable storage medium and electronic equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111865437A (en) | 2020-10-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR100540241B1 (en) | Message Management | |
| JP3810053B2 (en) | Method and apparatus for configuring software heterogeneous for electronic devices | |
| US8681700B2 (en) | System and method for executed function management and program for mobile terminal | |
| CN104641673A (en) | A method and a test system for automatically configuring a tester | |
| US7920899B2 (en) | Electronic device with wireless card to communicate with a plurality of network service providers | |
| US8881973B2 (en) | Connection setting method using barcode pattern, connection setting system and user equipment thereof | |
| WO2010118379A1 (en) | Method and apparatus for unifying different multi-mode system selection frameworks | |
| CN105531977A (en) | Mobile device connection control for synchronization and remote data access | |
| CN110633198A (en) | Block chain-based software test data storage method and system | |
| CN104902547A (en) | WiFi network connection method and device | |
| US12342273B2 (en) | Method and apparatus for manually selecting a network | |
| US7369983B2 (en) | Device and method for simulating communication system capable of easily controlling protocol message | |
| CN101772056B (en) | A method and system for managing multi-mode network elements and a multi-mode network element | |
| CN111865437B (en) | Digital conversion method and device | |
| CN116455740A (en) | Custom industrial protocol deep analysis method, system and electronic equipment | |
| US10111120B2 (en) | Apparatus and method for diagnosing anomaly in mobile communication network | |
| CN104169930B (en) | resource access method and device | |
| US20190394152A1 (en) | Message processing method and electronic device supporting the same | |
| EP2566292A1 (en) | Method, system and mobile terminal for configuring access point and application information | |
| CN116208942A (en) | Near field communication relay node discovery method and related equipment | |
| CN113407446A (en) | Test case generation method and electronic equipment | |
| US20060112100A1 (en) | Document management apparatus, document management method, and document management program | |
| CN112559470A (en) | File format conversion method and device, storage medium and electronic equipment | |
| KR100959836B1 (en) | Client provisioning over the link | |
| CN111541680B (en) | Smart device registration method, smart device, system, and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |