CN113535578A - CTS (clear to send) testing method, device and testing equipment - Google Patents

CTS (clear to send) testing method, device and testing equipment Download PDF

Info

Publication number
CN113535578A
CN113535578A CN202110858493.2A CN202110858493A CN113535578A CN 113535578 A CN113535578 A CN 113535578A CN 202110858493 A CN202110858493 A CN 202110858493A CN 113535578 A CN113535578 A CN 113535578A
Authority
CN
China
Prior art keywords
cts
test
tested
equipment
cts test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110858493.2A
Other languages
Chinese (zh)
Other versions
CN113535578B (en
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.)
Spreadtrum Semiconductor Chengdu Co Ltd
Original Assignee
Spreadtrum Semiconductor Chengdu 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 Spreadtrum Semiconductor Chengdu Co Ltd filed Critical Spreadtrum Semiconductor Chengdu Co Ltd
Priority to CN202110858493.2A priority Critical patent/CN113535578B/en
Publication of CN113535578A publication Critical patent/CN113535578A/en
Application granted granted Critical
Publication of CN113535578B publication Critical patent/CN113535578B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3696Methods or tools to render software testable
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The application discloses a CTS test method, a CTS test device and test equipment, wherein the method comprises the following steps: acquiring system information of equipment to be tested; when the operating system indicated by the system information is not the android system, calling a driving program corresponding to the system information; acquiring port information related to a CTS test in equipment to be tested through a driver; and executing the CTS test based on the port information related to the CTS test, and generating a CTS test report of the device to be tested. The CTS test can be executed on the equipment to be tested of which the operating system is not an android system, and the compatibility of the CTS test is improved.

Description

CTS (clear to send) testing method, device and testing equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a CTS testing method, apparatus, and testing device.
Background
With the rapid development of science and technology, electronic devices are more and more popular. In order to guarantee the user experience, a Compatibility Test Suite (CTS) Test needs to be performed on the electronic device, and only the electronic device passing the CTS Test can obtain the trademark and the corresponding service right. However, because the CTS test is a test program based on the android system, and cannot be directly performed on the electronic devices of other operating systems, how to improve the compatibility of the CTS test is a problem that needs to be solved.
Disclosure of Invention
The embodiment of the application provides a CTS testing method, a CTS testing device and testing equipment. The method can execute the CTS test on the equipment to be tested of which the operating system is not an android system, and improves the compatibility of the CTS test.
In a first aspect, an embodiment of the present application provides a CTS testing method, where the CTS testing method includes:
acquiring system information of equipment to be tested;
when the operating system indicated by the system information is not the android system, calling a driving program corresponding to the system information;
acquiring port information related to a CTS test in equipment to be tested through a driver;
and executing the CTS test based on the port information related to the CTS test, and generating a CTS test report of the device to be tested.
In the embodiment of the application, the test equipment can acquire system information of the equipment to be tested, and when an operating system indicated by the system information is not an android system, a driver corresponding to the system information is called; acquiring port information related to the CTS test in the equipment to be tested through a driving program; and executing the CTS test based on the port information related to the CTS test, and generating a CTS test report of the device to be tested. When the system information of the device to be tested indicates that the operating system of the device to be tested is not the android system, the test device can call the driver corresponding to the system information to acquire the port information associated with the CTS test, and when the system information of the device to be tested indicates that the operating system of the device to be tested is the android system, the test device can acquire the port information associated with the CTS test by using a preset instruction. Therefore, the test equipment can execute the CTS test on the equipment to be tested of which the operating system is the android system, and can also execute the CTS test on the equipment to be tested of which the operating system is not the android system, so that the compatibility of the CTS test is improved.
With reference to the first aspect, in some possible embodiments, the performing a CTS test based on the port information associated with the CTS test, and generating a CTS test report for the device under test includes:
configuring a CTS test environment;
installing a CTS test installation package in a CTS test environment and generating a CTS test case;
acquiring a test file from the equipment to be tested based on the port information associated with the CTS test;
and calling the CTS test case in the CTS test environment to perform CTS test on the test file, and generating a CTS test report of the equipment to be tested.
With reference to the first aspect, in some possible implementations, generating a CTS test case includes:
generating a CTS operation page based on the CTS test installation package;
receiving user operation in a CTS operation page;
and responding to the user operation in the CTS operation page to generate a CTS test case.
With reference to the first aspect, in some possible implementations, generating a CTS test case in response to a user operation in a CTS operation page includes:
acquiring a trigger instruction;
calling an operation simulation model to generate user operation in a CTS operation page in response to the trigger instruction;
generating a CTS test case in response to a user operation within the CTS operation page,
with reference to the first aspect, in some possible embodiments, the method further comprises:
and when the system information indicates that the equipment to be tested is the android system, acquiring port information related to the CTS test in the equipment to be tested through a preset instruction.
With reference to the first aspect, in some possible embodiments, the method further comprises:
verifying the CTS test report of the equipment to be tested, and if the CTS test report passes the verification, performing consensus verification on the CTS test report of the equipment to be tested through a consensus node in the block chain network;
and if the consensus verification is passed, packaging the CTS test report of the equipment to be tested into a block, and writing the block into a block chain.
In a second aspect, an embodiment of the present application provides a CTS testing device, including:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring system information of equipment to be tested;
the calling unit is used for calling a driving program corresponding to the system information when the operating system indicated by the system information is not the android system;
the acquiring unit is also used for acquiring port information related to the CTS test in the equipment to be tested through the driving program;
and the test unit is used for executing the CTS test based on the port information related to the CTS test and generating a CTS test report of the equipment to be tested.
With reference to the second aspect, in some possible embodiments, the performing, by the testing unit, a CTS test based on the port information associated with the CTS test, and generating a CTS test report for the device under test includes:
configuring a CTS test environment;
installing a CTS test installation package in a CTS test environment and generating a CTS test case;
acquiring a test file from the equipment to be tested based on the port information associated with the CTS test;
and calling the CTS test case in the CTS test environment to perform CTS test on the test file, and generating a CTS test report of the equipment to be tested.
In combination with the second aspect, in some possible embodiments, the test unit generates a CTS test case, including:
generating a CTS operation page based on the CTS test installation package;
receiving user operation in a CTS operation page;
and responding to the user operation in the CTS operation page to generate a CTS test case.
With reference to the second aspect, in some possible embodiments, the test unit generates a CTS test case in response to a user operation in the CTS operation page, including:
acquiring a trigger instruction;
calling an operation simulation model to generate user operation in a CTS operation page in response to the trigger instruction;
generating a CTS test case in response to a user operation within the CTS operation page,
with reference to the second aspect, in some possible embodiments, the obtaining unit is further configured to:
and when the system information indicates that the equipment to be tested is the android system, acquiring port information related to the CTS test in the equipment to be tested through a preset instruction.
In combination with the second aspect, in some possible embodiments, the test unit is further configured to:
verifying the CTS test report of the equipment to be tested, and if the CTS test report passes the verification, performing consensus verification on the CTS test report of the equipment to be tested through a consensus node in the block chain network;
and if the consensus verification is passed, packaging the CTS test report of the equipment to be tested into a block, and writing the block into a block chain.
In a third aspect, an embodiment of the present application provides a testing device, which includes a processor and a memory, where the processor is connected to the memory, where the memory is used to store program codes, and the processor is used to call the program codes to execute the CTS testing method of the first aspect.
In a fourth aspect, an embodiment of the present application provides a chip, where the chip is used to obtain system information of a device to be tested;
when the operating system indicated by the system information is not the android system, calling a driving program corresponding to the system information;
acquiring port information related to a CTS test in equipment to be tested through a driver;
and executing a CTS test based on the port information associated with the CTS test, and generating a CTS test report of the equipment to be tested.
In a fifth aspect, an embodiment of the present application provides a module device, where the module device includes a processor and a communication interface, the processor is connected to the communication interface, the communication interface is used for receiving and sending signals, and the processor is used for:
acquiring system information of equipment to be tested;
when the operating system indicated by the system information is not the android system, calling a driving program corresponding to the system information;
acquiring port information related to a CTS test in equipment to be tested through a driver;
and executing the CTS test based on the port information related to the CTS test, and generating a CTS test report of the device to be tested.
In a sixth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the CTS testing method of the first aspect.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic structural diagram of a CTS testing system according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of a CTS testing method according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a blockchain according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of another CTS testing method provided by the embodiments of the present application;
FIG. 5 is a schematic structural diagram of a CTS testing device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a test apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a CTS testing system according to an embodiment of the present disclosure, and the technical solution according to the embodiment of the present disclosure may be implemented in the CTS testing system illustrated in fig. 1 by way of example or a similar system. As shown in fig. 1, the CTS test system may include a test device 100 and a plurality of devices under test, and as shown in fig. 1, may specifically include a device under test 200a, a device under test 200b, and a device under test 200 c. The test device 100 may obtain system information of a device under test (such as the device under test 200a, the device under test 200b, or the device under test 200 c); when the operating system indicated by the system information is not the android system, calling a driving program corresponding to the system information; acquiring port information related to a CTS test in equipment to be tested through a driver; and executing the CTS test based on the port information related to the CTS test, and generating a CTS test report of the device to be tested.
As described above, the device under test 200a, the device under test 200b, and the device under test 200c may be a smart phone, a smart wearable device, a tablet computer, a laptop computer, a function machine, an IOT device, a desktop computer, or the like having the above functions. The testing device 100 may be a terminal device with the above functions, such as a smart phone, a smart wearable device, a tablet computer, a laptop computer, a desktop computer, and the like. The testing device 100 may also be a server with an interactive interface, where the server may be one server, a server cluster composed of multiple servers, or a cloud computing service center. The test device 100 may establish communication connection with the device under test 200a, the device under test 200b, and the device under test 200c through a wireless network and a wired network.
In some embodiments, the wireless network may include, but is not limited to, one or more of the following: global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), time division multiple access (TD-SCDMA), Long Term Evolution (LTE), fifth generation mobile communication technology (5th generation mobile networks, 5G), Wireless Local Area Network (WLAN), and wireless fidelity (Wi-Fi) networks.
In some embodiments, the wired network may include, but is not limited to, a computer network employing coaxial cables, twisted pair wires, and fiber optic connections.
Next, the CTS test method of the embodiment of the present application will be explained in detail. Referring to fig. 2, fig. 2 is a flow chart illustrating a CTS testing method. The CTS test method may be applied to a test apparatus as shown in fig. 1. As shown in fig. 2, the CTS testing method may specifically include S201 to S204:
s201: and acquiring system information of the equipment to be tested.
Specifically, the test device may respond to a trigger operation of performing a CTS test on the device to be tested, and obtain system information of the device to be tested. The triggering operation for performing the CTS test on the device under test may include various forms. Optionally, the CTS test task may be triggered by a preset timing trigger instruction, and when the test device detects the timing trigger instruction, it may be determined that a trigger operation of performing a CTS test on the device to be tested is detected. For example, the CTS test task may be triggered by deployment of a timed task by a blue shield, Soda, or like tool. Optionally, the CTS test task may also be triggered manually.
The system information may include, but is not limited to, one or more of the following: name information, model information, and operating system information. In one embodiment, an information list may be obtained in the test device, where the information list includes system information of each device under test. As shown in the information list of table 1, the information list may include a name list item, a model list item, and an operating system list item. Wherein, the name list item can be used for storing the name information of the equipment to be tested, the name list item can be expressed as "name", the model list item can be used for storing the model information of the equipment to be tested, the model list item can be expressed as "model", the operating system list item can be used for storing the operating system information of the equipment to be tested, and the operating system list item can be expressed as "operating system". The name information of the device to be tested can be stored at the first position of the name list item, then the model information of the device to be tested is stored at the position, corresponding to the first position, in the model list item, and the operating system information of the device to be tested is stored at the position, corresponding to the first position, in the operating system list item. For example, assuming that the name information of the device to be tested 1 is "XX", the model information of the device to be tested 1 is "XX", the core system information of the device to be tested 1 is "Android system (Android)", the name information of the device to be tested 2 is "YY", the model information of the device to be tested 1 is "YY", and the operating system information of the device to be tested 1 is "apple system (iOS)", as shown in table 1, the name information "XX" of the device to be tested 1 may be stored in a first column of a name list item, the model information "XX" of the device to be tested 1 may be stored in a first column of a model list item, and the operating system information "Android system" of the device to be tested 1 is also stored in a first column of an operating system list item; the name information "YY" of the device to be tested 2 can be stored in the second column of the name list item, the model information "YY" of the device to be tested 2 is stored in the second column of the model list item, and the operating system information "iOS system" of the device to be tested 2 is also stored in the second column of the operating system list item.
Name (R) Model number Operating system
Device under test 1 XX xx Android
Device under test 1 YY yy iOS
TABLE 1
S202: and when the operating system indicated by the system information is not the android system, calling a driving program corresponding to the system information.
Since the CTS test is a test for the android system, when the CTS test is executed to generate the CTS test report, if the operating system of the device to be tested is the android system, the test device may directly obtain the port information associated with the CTS test in the device to be tested through a preset instruction (such as an adb command) in the CTS test. Specifically, the test device may send the preset instruction to the device to be tested, and the device to be tested may return port information associated with the CTS test in response to the preset instruction.
If the operating system of the device to be tested is not the android system, the test device cannot directly acquire the port information associated with the CTS test in the device to be tested through the preset instruction in the CTS test. Specifically, since the CTS test is a test for the android system, when the operating system of the device to be tested is not the android system, the device to be tested cannot recognize the preset instruction, that is, when the preset instruction is sent to the device to be tested, the test device cannot respond to the preset instruction and return port information associated with the CTS test. At this time, the test device may call a driver corresponding to the system information.
Wherein, the operating system which is not an android system may include any one or more of the following: apple system, microsoft system (windows phone), nokia system (Symbian), BlackBerry system (BlackBerry OS), hong meng system (Harmony), mac operating system (macOS), linux operating system, and internet of things system, among others.
In one embodiment, the test device may determine the operating system of the device under test according to the system information of the device under test, that is, may determine the operating system of the device under test according to the operating system information in the system information. And determines the driver from the operating system. For example, if the operating system of the device under test is an apple system, the driver may be a driver corresponding to the apple system; for another example, if the operating system of the device under test is a nokia system, the driver may be a driver corresponding to the nokia system; for another example, if the operating system of the device under test is an internet of things system, the driver may be a driver corresponding to the internet of things system, and so on.
S203: and acquiring the port information related to the CTS test in the equipment to be tested through the driving program.
Specifically, the test device may detect each port of the device to be tested through the driver, obtain port information of an unoccupied port in the device to be tested, and use the port information of the unoccupied port as the port information associated with the CTS.
The driver includes a port detection command. Due to differences in operating systems, port detect commands differ. Optionally, when the system information indicates that the operating system of the device under test is windows, the test device may invoke a netstat-ano | findstr command in the driver to detect each port of the device under test. Optionally, when the system information indicates that the operating system of the device under test is a mac operating system or a linux operating system, the test device may call an lsof-i command in the driver to detect each port of the device under test.
S204: and executing the CTS test based on the port information related to the CTS test, and generating a CTS test report of the device to be tested.
Specifically, the test equipment can configure a CTS test environment, install a CTS test installation package in the CTS test environment, and generate a CTS test case. Acquiring a test file from the equipment to be tested based on the port information associated with the CTS test; and calling the CTS test case in the CTS test environment to perform CTS test on the test file, and generating a CTS test report of the equipment to be tested.
In one embodiment, the testing device may verify the CTS test report of the device to be tested, and if the verification passes, perform consensus verification on the CTS test report of the device to be tested through a consensus node in the blockchain network; and if the consensus verification is passed, packaging the CTS test report of the equipment to be tested into a block, and writing the block into a block chain.
The block chain is a chain data structure formed by combining data blocks in a sequential connection mode according to a time sequence, and a distributed account book which can not be tampered and forged of data is guaranteed in a cryptographic mode. Multiple independent distributed nodes maintain the same record. The blockchain technology realizes decentralization and becomes a foundation for credible digital asset storage, transfer and transaction.
Taking the block chain structure diagram shown in fig. 3 as an example, when the CTS test report of the device to be tested is written into the block chain, the CTS test report of the device to be tested may be packaged as a block and added to the end of the existing block chain, and it is ensured that the newly added blocks of each node are completely the same through a consensus algorithm. The CTS test reports of a plurality of devices to be tested are recorded in each block, and simultaneously the CTS test reports comprise the hash value of the previous block, and all the blocks store the hash value of the previous block in the way, and are connected in sequence to form a block chain. The hash value of the previous block is stored in the block head of the next block in the block chain, and when the CTS test report of the device to be tested in the previous block changes, the hash value of the block changes, so that the CTS test report uploaded to the device to be tested in the block chain is difficult to tamper, and the reliability of data is improved.
In one embodiment, the device under test may obtain the CTS test reports of the device under test from the blockchain, and analyze and summarize the CTS test reports of the multiple devices under test. Optionally, the device under test may simply summarize the CTS test report of each test device, and summarize the number of passed test cases, the number of failed test cases, the number of unexecuted test cases, the number of overtime test cases, and the like in the CTS test.
Optionally, the test device may further record the class name, the name of the CTS test case, the failure trace, and corresponding system information of the device to be tested by reading the test result of each CTS test case in the CTS test report; in one embodiment, when the failed CTS test cases in different CTS test reports have the same class name and CTS test case name, the failure traces of the failed CTS test cases in all the CTS test reports are compared to determine the probability of the failed CTS test cases. Specifically, if a certain failed CTS test case appears in multiple CTS test reports and the failure traces of the failed CTS test case in the multiple CTS test reports are all the same, the failed CTS test case is determined to be present; and if the failed CTS test case does not appear in all the CTS test reports, judging that the failed CTS test case is a rare occurrence.
The CTS test method provided by the embodiment of the invention can upload the CTS test report of the equipment to be tested to the block chain, so that the CTS test report in the block chain is difficult to be tampered, and the reliability of data is improved. Therefore, the result obtained by analyzing and summarizing the CTS test report based on the equipment to be tested in the block chain is more accurate.
In the embodiment of the application, the test equipment can acquire system information of the equipment to be tested, and when an operating system indicated by the system information is not an android system, a driver corresponding to the system information is called; acquiring port information related to the CTS test in the equipment to be tested through a driving program; and executing the CTS test based on the port information related to the CTS test, and generating a CTS test report of the device to be tested. When the system information of the device to be tested indicates that the operating system of the device to be tested is not the android system, the test device can call the driver corresponding to the system information to acquire the port information associated with the CTS test, and when the system information of the device to be tested indicates that the operating system of the device to be tested is the android system, the test device can acquire the port information associated with the CTS test by using a preset instruction. Therefore, the test equipment can execute the CTS test on the equipment to be tested of which the operating system is the android system, and can also execute the CTS test on the equipment to be tested of which the operating system is not the android system, so that the compatibility of the CTS test is improved.
As can be seen from the above description of the method embodiment shown in fig. 2, the test device may perform a CTS test on a device under test whose operating system is not an android system, by using the CTS test method shown in fig. 2. The process of generating the CTS test report by the test device executing the CTS test on the device under test is described in detail below. Referring to fig. 4, fig. 4 is a flow chart illustrating another CTS testing method. As shown in fig. 4, the CTS test method includes S401 to S404:
s401: and configuring a CTS test environment.
Specifically, in this embodiment, the testing device acquires the CTS testing frame, and may configure the CTS testing environment in the CTS testing frame by using an adaptation operation of environment auto-configuration.
S402: and installing a CTS test installation package in the CTS test environment and generating a CTS test case.
Specifically, the test device may generate a CTS operation page based on the CTS test installation package, receive a user operation in the CTS operation page, and generate a CTS test case in response to the user operation in the CTS operation page. In one embodiment, the options to be tested can be configured on the CTS operation page through user operation to form a CTS test case. In another embodiment, the user operation can be simulated through the operation simulation model to configure the option to be tested on the CTS operation page to form a CTS test case. Specifically, the test device may obtain a trigger instruction, call an operation simulation model in response to the trigger instruction to generate a user operation in a CTS operation page, and generate a CTS test case in response to the user operation in the CTS operation page. The operation simulation model may be a model generated based on a simulation user operation technology, for example, uiautomator technology. Specifically, relevant options can be configured by simulating a user clicking a screen on the device to be tested through the uiautomator technology, for example, a Jar package is installed to configure the relevant options to form a CTS test case.
S403: and acquiring a test file from the equipment to be tested based on the port information associated with the CTS test.
Specifically, the test device may obtain a test file from the device to be tested based on the port information associated with the CTS test, where the test file includes a source code to be tested, and the source code to be tested refers to a code developed and written by a developer. Optionally, the test file may include all codes in the device under test. Optionally, the test file may include only codes associated with the CTS test.
S404: and calling the CTS test case in the CTS test environment to perform CTS test on the test file, and generating a CTS test report of the equipment to be tested.
In the embodiment of the application, the test equipment can configure the CTS test environment, install the CTS test installation package in the CTS test environment and generate the CTS test case, so that the CTS test case can be called to perform CTS test on the test file. The CTS test installation package can be installed on the test equipment to generate a CTS operation page, a CTS operation case can be generated in the CTS operation page through user operation, an operation simulation model can be called to simulate the user operation in the CTS operation page to generate the CTS test case, complex operation is not needed, the test case can be carried conveniently, and human resources are saved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a CTS testing device according to an embodiment of the present disclosure. The device can be a test device, a device in the test device, or a device capable of being matched with the test device for use. The CTS test apparatus shown in fig. 5 may include an acquisition unit 501, a calling unit 502, and a test unit 503. Wherein:
an obtaining unit 501, configured to obtain system information of a device to be tested;
a calling unit 502, configured to call a driver corresponding to the system information when the operating system indicated by the system information is not an android system;
the acquiring unit 501 is further configured to acquire, through a driver, port information associated with a CTS test in the device under test;
the testing unit 503 is configured to execute a CTS test based on the port information associated with the CTS test, and generate a CTS test report of the device under test.
In some possible embodiments, the testing unit 503 performs a CTS test based on the port information associated with the CTS test, and generates a CTS test report for the device under test, including:
configuring a CTS test environment;
installing a CTS test installation package in a CTS test environment and generating a CTS test case;
acquiring a test file from the equipment to be tested based on the port information associated with the CTS test;
and calling the CTS test case in the CTS test environment to perform CTS test on the test file, and generating a CTS test report of the equipment to be tested.
In some possible embodiments, the test unit 503 generates a CTS test case, including:
generating a CTS operation page based on the CTS test installation package;
receiving user operation in a CTS operation page;
and responding to the user operation in the CTS operation page to generate a CTS test case.
In some possible embodiments, the test unit 503 generates a CTS test case in response to a user operation in the CTS operation page, including:
acquiring a trigger instruction;
calling an operation simulation model to generate user operation in a CTS operation page in response to the trigger instruction;
generating a CTS test case in response to a user operation within the CTS operation page,
in some possible embodiments, the obtaining unit 501 is further configured to:
and when the system information indicates that the equipment to be tested is the android system, acquiring port information related to the CTS test in the equipment to be tested through a preset instruction.
In some possible embodiments, the test unit 503 is further configured to:
verifying the CTS test report of the equipment to be tested, and if the CTS test report passes the verification, performing consensus verification on the CTS test report of the equipment to be tested through a consensus node in the block chain network;
and if the consensus verification is passed, packaging the CTS test report of the equipment to be tested into a block, and writing the block into a block chain.
The CTS test device may be, for example: a chip, or a modular device. Each unit included in each apparatus and product described in the above embodiments may be a software unit, a hardware unit, or a part of the software unit and a part of the hardware unit. For example, for each device or product applied to or integrated into a chip, each unit included in the device or product may be implemented by hardware such as a circuit, or at least a part of the units may be implemented by a software program running on a processor integrated within the chip, and the rest (if any) part of the units may be implemented by hardware such as a circuit; for each device and product applied to or integrated in the module device, each unit included in the device and product may be implemented in a hardware manner such as a circuit, and different units may be located in the same component (e.g., a chip, a circuit unit, etc.) or different components of the module device, or at least a part of the units may be implemented in a software program running on a processor integrated in the module device, and the rest (if any) part of the units may be implemented in a hardware manner such as a circuit; for each device and product applied to or integrated in the testing apparatus, each unit included in the testing apparatus may be implemented by using hardware such as a circuit, different units may be located in the same component (e.g., a chip, a circuit unit, etc.) or different components in the testing apparatus, or at least a part of the units may be implemented by using a software program running on a processor integrated in the testing apparatus, and the remaining (if any) part of the units may be implemented by using hardware such as a circuit.
The relevant content of this embodiment can be referred to the relevant content of the above method embodiment. And will not be described in detail herein. The embodiments of the present application and the embodiments of the method described above are based on the same concept, and the technical effects brought by the embodiments are also the same.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a testing apparatus according to an embodiment of the present disclosure. The test apparatus includes: the processor 601, the memory 602, the processor 601 and the memory 602 are connected by one or more communication buses 603.
The Processor 601 may be a Central Processing Unit (CPU), and may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The processor 601 is configured to support the testing device to perform the corresponding functions of the testing device in the CTS testing method described above.
The memory 602 may include read-only memory and random access memory, and provides computer programs and data to the processor 601. A portion of the memory 602 may also include non-volatile random access memory. When the processor 601 calls the computer program, it is used to execute:
acquiring system information of equipment to be tested;
when the operating system indicated by the system information is not the android system, calling a driving program corresponding to the system information;
acquiring port information related to a CTS test in equipment to be tested through a driver;
and executing the CTS test based on the port information related to the CTS test, and generating a CTS test report of the device to be tested.
In some possible embodiments, the processor 601 executes a CTS test based on the port information associated with the CTS test, and generates a CTS test report for the device under test, including:
configuring a CTS test environment;
installing a CTS test installation package in a CTS test environment and generating a CTS test case;
acquiring a test file from the equipment to be tested based on the port information associated with the CTS test;
and calling the CTS test case in the CTS test environment to perform CTS test on the test file, and generating a CTS test report of the equipment to be tested.
In some possible implementations, the processor 601 generates a CTS test case, including:
generating a CTS operation page based on the CTS test installation package;
receiving user operation in a CTS operation page;
and responding to the user operation in the CTS operation page to generate a CTS test case.
In some possible implementations, the processor 601 generates the CTS test case in response to a user operation within the CTS operation page, including:
acquiring a trigger instruction;
calling an operation simulation model to generate user operation in a CTS operation page in response to the trigger instruction;
generating a CTS test case in response to a user operation within the CTS operation page,
in some possible embodiments, the processor 601 is further configured to:
and when the system information indicates that the equipment to be tested is the android system, acquiring port information related to the CTS test in the equipment to be tested through a preset instruction.
In some possible embodiments, the processor 601 is further configured to:
verifying the CTS test report of the equipment to be tested, and if the CTS test report passes the verification, performing consensus verification on the CTS test report of the equipment to be tested through a consensus node in the block chain network;
and if the consensus verification is passed, packaging the CTS test report of the equipment to be tested into a block, and writing the block into a block chain.
The relevant content of this embodiment can be referred to the relevant content of the above method embodiment. And will not be described in detail herein. The embodiments of the present application and the embodiments of the method described above are based on the same concept, and the technical effects brought by the embodiments are also the same.
Embodiments of the present application provide a chip, where the chip may perform relevant steps of the test equipment in the foregoing method embodiments. The chip is used for:
acquiring system information of equipment to be tested;
when the operating system indicated by the system information is not the android system, calling a driving program corresponding to the system information;
acquiring port information related to a CTS test in equipment to be tested through a driver;
and executing the CTS test based on the port information related to the CTS test, and generating a CTS test report of the device to be tested.
In some possible embodiments, the chip executes a CTS test based on the port information associated with the CTS test, and generates a CTS test report of the device under test, including:
configuring a CTS test environment;
installing a CTS test installation package in a CTS test environment and generating a CTS test case;
acquiring a test file from the equipment to be tested based on the port information associated with the CTS test;
and calling the CTS test case in the CTS test environment to perform CTS test on the test file, and generating a CTS test report of the equipment to be tested.
In some possible embodiments, the chip generates a CTS test case, including:
generating a CTS operation page based on the CTS test installation package;
receiving user operation in a CTS operation page;
and responding to the user operation in the CTS operation page to generate a CTS test case.
In some possible embodiments, the chip generates the CTS test case in response to a user operation in the CTS operation page, including:
acquiring a trigger instruction;
calling an operation simulation model to generate user operation in a CTS operation page in response to the trigger instruction;
generating a CTS test case in response to a user operation within the CTS operation page,
in some possible embodiments, the chip is further configured to:
and when the system information indicates that the equipment to be tested is the android system, acquiring port information related to the CTS test in the equipment to be tested through a preset instruction.
In some possible embodiments, the chip is further configured to:
verifying the CTS test report of the equipment to be tested, and if the CTS test report passes the verification, performing consensus verification on the CTS test report of the equipment to be tested through a consensus node in the block chain network;
and if the consensus verification is passed, packaging the CTS test report of the equipment to be tested into a block, and writing the block into a block chain.
The relevant content of this embodiment can be referred to the relevant content of the above method embodiment. And will not be described in detail herein. The embodiments of the present application and the embodiments of the method described above are based on the same concept, and the technical effects brought by the embodiments are also the same.
The embodiment of the present application further provides a module device, and the module device includes a processor and a communication interface, and the processor is connected to the communication interface, and the communication interface is used for receiving and transmitting signals, and the processor is used for:
acquiring system information of equipment to be tested;
when the operating system indicated by the system information is not the android system, calling a driving program corresponding to the system information;
acquiring port information related to a CTS test in equipment to be tested through a driver;
and executing the CTS test based on the port information related to the CTS test, and generating a CTS test report of the device to be tested.
In some possible embodiments, the processor is configured to perform a CTS test based on port information associated with the CTS test, and generate a CTS test report for the device under test, including:
configuring a CTS test environment;
installing a CTS test installation package in a CTS test environment and generating a CTS test case;
acquiring a test file from the equipment to be tested based on the port information associated with the CTS test;
and calling the CTS test case in the CTS test environment to perform CTS test on the test file, and generating a CTS test report of the equipment to be tested.
In some possible embodiments, the processor is configured to generate a CTS test case, including:
generating a CTS operation page based on the CTS test installation package;
receiving user operation in a CTS operation page;
and responding to the user operation in the CTS operation page to generate a CTS test case.
In some possible implementations, the processor is configured to generate a CTS test case in response to a user operation within a CTS operation page, including:
acquiring a trigger instruction;
calling an operation simulation model to generate user operation in a CTS operation page in response to the trigger instruction;
generating a CTS test case in response to a user operation within the CTS operation page,
in some possible embodiments, the processor is further configured to:
and when the system information indicates that the equipment to be tested is the android system, acquiring port information related to the CTS test in the equipment to be tested through a preset instruction.
In some possible embodiments, the processor is further configured to:
verifying the CTS test report of the equipment to be tested, and if the CTS test report passes the verification, performing consensus verification on the CTS test report of the equipment to be tested through a consensus node in the block chain network;
and if the consensus verification is passed, packaging the CTS test report of the equipment to be tested into a block, and writing the block into a block chain.
The relevant content of this embodiment can be referred to the relevant content of the above method embodiment. And will not be described in detail herein. The embodiments of the present application and the embodiments of the method described above are based on the same concept, and the technical effects brought by the embodiments are also the same.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program may be used to implement the CTS testing method described in the embodiments of the present application, and details are not described herein again.
The computer readable storage medium may be an internal storage unit of the test device of any of the foregoing embodiments, such as a hard disk or a memory of the test device. The computer readable storage medium may also be an external storage device of the test equipment, such as a plug-in hard disk provided on the test equipment, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the computer-readable storage medium may also include both an internal storage unit of the test device and an external storage device. The computer-readable storage medium is used for storing computer programs and other programs and data required for testing the device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
It will be understood by those skilled in the art that all or part of the processes in the methods of the embodiments described above may be implemented by a computer program, which may be stored in a readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (11)

1. A CTS testing method, the method comprising:
acquiring system information of equipment to be tested;
when the operating system indicated by the system information is not the android system, calling a driving program corresponding to the system information;
acquiring port information related to a CTS test of a compatibility test suite in the equipment to be tested through the driving program;
and executing a CTS test based on the port information associated with the CTS test, and generating a CTS test report of the equipment to be tested.
2. The method of claim 1, wherein the performing a CTS test based on the port information associated with the CTS test, generating a CTS test report for the device under test, comprises:
configuring a CTS test environment;
installing a CTS test installation package in the CTS test environment and generating a CTS test case;
acquiring a test file from the equipment to be tested based on the port information associated with the CTS test;
and calling the CTS test case in the CTS test environment to perform CTS test on the test file, and generating a CTS test report of the equipment to be tested.
3. The method of claim 2, wherein the generating a CTS test case comprises:
generating a CTS operation page based on the CTS test installation package;
receiving user operation in the CTS operation page;
and responding to the user operation in the CTS operation page to generate the CTS test case.
4. The method of claim 3, wherein the generating the CTS test case in response to a user action within the CTS action page comprises:
acquiring a trigger instruction;
calling an operation simulation model to generate user operation in the CTS operation page in response to the trigger instruction;
and responding to the user operation in the CTS operation page to generate the CTS test case.
5. The method of any one of claims 1-4, further comprising:
and when the system information indicates that the equipment to be tested is the android system, acquiring port information associated with a CTS test in the equipment to be tested through a preset instruction.
6. The method of any one of claims 1-4, further comprising:
verifying the CTS test report of the equipment to be tested, and if the CTS test report passes the verification, performing consensus verification on the CTS test report of the equipment to be tested through a consensus node in a block chain network;
and if the consensus verification is passed, packaging the CTS test report of the equipment to be tested into a block, and writing the block into a block chain.
7. A CTS testing apparatus, the apparatus comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring system information of equipment to be tested;
the calling unit is used for calling a driving program corresponding to the system information when the operating system indicated by the system information is not an android system;
the acquiring unit is further configured to acquire, through the driver, port information associated with a CTS test in the device under test;
and the testing unit is used for executing a CTS test based on the port information related to the CTS test and generating a CTS test report of the equipment to be tested.
8. A test device comprising a processor and a memory, the processor coupled to the memory, wherein the memory is configured to store program code and the processor is configured to invoke the program code to perform the CTS test method of any of claims 1 to 6.
9. A chip, characterized in that,
the chip is used for acquiring system information of the equipment to be tested;
when the operating system indicated by the system information is not the android system, calling a driving program corresponding to the system information;
acquiring port information related to a CTS test in the equipment to be tested through the driver;
and executing a CTS test based on the port information associated with the CTS test, and generating a CTS test report of the equipment to be tested.
10. A modular device comprising a processor and a communication interface, the processor coupled to the communication interface, the communication interface configured to transceive signals, the processor configured to:
acquiring system information of equipment to be tested;
when the operating system indicated by the system information is not the android system, calling a driving program corresponding to the system information;
acquiring port information related to a CTS test in the equipment to be tested through the driver;
and executing a CTS test based on the port information associated with the CTS test, and generating a CTS test report of the equipment to be tested.
11. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the CTS testing method as claimed in any one of the preceding claims 1 to 6.
CN202110858493.2A 2021-07-28 2021-07-28 CTS test method, CTS test device and CTS test equipment Active CN113535578B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110858493.2A CN113535578B (en) 2021-07-28 2021-07-28 CTS test method, CTS test device and CTS test equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110858493.2A CN113535578B (en) 2021-07-28 2021-07-28 CTS test method, CTS test device and CTS test equipment

Publications (2)

Publication Number Publication Date
CN113535578A true CN113535578A (en) 2021-10-22
CN113535578B CN113535578B (en) 2023-04-21

Family

ID=78089509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110858493.2A Active CN113535578B (en) 2021-07-28 2021-07-28 CTS test method, CTS test device and CTS test equipment

Country Status (1)

Country Link
CN (1) CN113535578B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114051027A (en) * 2021-11-09 2022-02-15 中国联合网络通信集团有限公司 Acquisition method of test instrument, protocol conversion node and instrument demand node

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107423207A (en) * 2016-05-24 2017-12-01 展讯通信(天津)有限公司 System compatibility automated testing method and device
CN109446069A (en) * 2018-09-26 2019-03-08 平安普惠企业管理有限公司 Compatibility test method, device, computer equipment and medium
WO2019218444A1 (en) * 2018-05-14 2019-11-21 平安科技(深圳)有限公司 Test report generating method, apparatus and device, and storage medium
CN112231199A (en) * 2019-07-15 2021-01-15 北京京东尚科信息技术有限公司 Test method and device for object to be tested and test system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107423207A (en) * 2016-05-24 2017-12-01 展讯通信(天津)有限公司 System compatibility automated testing method and device
WO2019218444A1 (en) * 2018-05-14 2019-11-21 平安科技(深圳)有限公司 Test report generating method, apparatus and device, and storage medium
CN109446069A (en) * 2018-09-26 2019-03-08 平安普惠企业管理有限公司 Compatibility test method, device, computer equipment and medium
CN112231199A (en) * 2019-07-15 2021-01-15 北京京东尚科信息技术有限公司 Test method and device for object to be tested and test system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114051027A (en) * 2021-11-09 2022-02-15 中国联合网络通信集团有限公司 Acquisition method of test instrument, protocol conversion node and instrument demand node
CN114051027B (en) * 2021-11-09 2023-04-18 中国联合网络通信集团有限公司 Acquisition method of test instrument, protocol conversion node and instrument demand node

Also Published As

Publication number Publication date
CN113535578B (en) 2023-04-21

Similar Documents

Publication Publication Date Title
CN105487966B (en) Program testing method, device and system
CN106940695B (en) Data source information verification method and device
CN108255701B (en) Scene testing method and mobile terminal
CN111427803B (en) Automated random test method, apparatus, computer device and medium
CN108459850B (en) Method, device and system for generating test script
CN109683997B (en) Method for accessing application program interface through sandbox, sandbox and sandbox equipment
CN109408309B (en) Multi-terminal testing method and device
CN114024884B (en) Test method, test device, electronic equipment and storage medium
CN112035344A (en) Multi-scenario test method, device, equipment and computer readable storage medium
CN107293330B (en) Method and system for performing simulation verification on Random Access Memory (RAM)
CN106872879A (en) Hardware wireless debugging method, device, communication chip and electronic equipment
CN114003445B (en) BMC I2C monitoring function test method, system, terminal and storage medium
CN113535578B (en) CTS test method, CTS test device and CTS test equipment
CN113535580B (en) CTS test method, CTS test device and test equipment
US8391162B2 (en) Apparatus and method for testing SMNP cards
CN112115060A (en) Audio test method and system based on terminal
CN112527678A (en) Method, apparatus, device and storage medium for testing protocol
CN104424098A (en) Application test method and application testing device
CN107247661B (en) Method and system for supporting automatic verification of installation package of application
CN105354075A (en) Synchronization method for software and hardware collaborative simulation
CN116107781A (en) Log tracking method, device, electronic equipment and computer program product
CN107678967B (en) Unit test coverage rate generation method and device, readable storage medium and equipment
CN115242658B (en) Open system access method, device, computer equipment and storage medium
CN114968864B (en) Verification environment construction method, chip verification method and system
CN115242625B (en) Service deployment method, device, computer equipment and readable 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