CN113535578B - CTS test method, CTS test device and CTS test equipment - Google Patents

CTS test method, CTS test device and CTS test equipment Download PDF

Info

Publication number
CN113535578B
CN113535578B CN202110858493.2A CN202110858493A CN113535578B CN 113535578 B CN113535578 B CN 113535578B CN 202110858493 A CN202110858493 A CN 202110858493A CN 113535578 B CN113535578 B CN 113535578B
Authority
CN
China
Prior art keywords
cts
test
tested
cts test
equipment
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
Application number
CN202110858493.2A
Other languages
Chinese (zh)
Other versions
CN113535578A (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

Abstract

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

Description

CTS test method, CTS test device and CTS test equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a CTS testing method, device, and test equipment.
Background
With rapid development of science and technology, electronic devices are becoming more popular. In order to ensure the user experience, a compatibility test suite (Compatibility Test Suite, CTS) test needs to be performed on the electronic device, and only the electronic device that passes the CTS test can obtain the trademark and the corresponding service authority. However, since the CTS test is a test program based on the android system, the CTS test cannot be directly performed on the electronic devices of other operating systems, so how to improve the compatibility of the CTS test is a problem to be solved.
Disclosure of Invention
The embodiment of the application provides a CTS test method, a CTS test device and test equipment. The method can execute CTS test on the device to be tested, the operating system of which is not an android system, and compatibility of the CTS test is improved.
In a first aspect, an embodiment of the present application provides a CTS testing method, including:
acquiring system information of equipment to be tested;
when the operating system indicated by the system information is not an android system, calling a driver corresponding to the system information;
acquiring port information associated with CTS test in the device to be tested through a driver;
and executing CTS test based on the port information associated with 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 the system information of the equipment to be tested, and when the operating system indicated by the system information is not an android system, a driver corresponding to the system information is called; acquiring port information associated with CTS test in the device to be tested through a driver; and executing CTS test based on the port information associated with the CTS test, and generating a CTS test report of the device to be tested. Because the test equipment can call the driver corresponding to the system information to acquire the port information related to the CTS test when the system information of the equipment to be tested indicates that the operating system of the equipment to be tested is not an android system, and can acquire the port information related to the CTS test by utilizing the preset instruction when the system information of the equipment to be tested indicates that the operating system of the equipment to be tested is the android system. The test device can not only execute CTS test on the device to be tested with the operating system being the android system, but also execute CTS test on the device to be tested with the operating system not being the android system, and compatibility of CTS test is improved.
With reference to the first aspect, in some possible implementations, performing a CTS test based on port information associated with the CTS test, generating a CTS test report for a 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 device to be tested based on port information associated with CTS test;
and calling a CTS test case in a CTS test environment to carry out CTS test on the test file, and generating a CTS test report of the device to be tested.
With reference to the first aspect, in some possible embodiments, 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 generating the CTS test case in response to the user operation in the CTS operation page.
With reference to the first aspect, in some possible implementations, generating the CTS test case in response to a user operation within the CTS operation page includes:
acquiring a trigger instruction;
responding to the triggering instruction to call an operation simulation model to generate user operation in the CTS operation page;
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 includes:
When the system information indicates that the equipment to be tested is an android system, acquiring port information associated with CTS testing in the equipment to be tested through a preset instruction.
With reference to the first aspect, in some possible embodiments, the method further includes:
checking a CTS test report of the equipment to be tested, and if the check is passed, performing consensus verification on the CTS test report of the equipment to be tested through a consensus node in a block chain network;
if the consensus verification is passed, packaging a CTS test report of the device to be tested into a block, and writing the block into a block chain.
In a second aspect, embodiments of the present application provide a CTS testing device, including:
the acquisition unit is used for acquiring system information of the equipment to be tested;
the calling unit is used for calling a driver corresponding to the system information when the operating system indicated by the system information is not an android system;
the acquisition unit is also used for acquiring port information related to CTS test in the equipment to be tested through a driver;
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 device to be tested.
With reference to the second aspect, in some possible embodiments, the test unit performs a CTS test based on 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 device to be tested based on port information associated with CTS test;
and calling a CTS test case in a CTS test environment to carry out CTS test on the test file, and generating a CTS test report of the device to be tested.
With reference to the second aspect, in some possible embodiments, the generating, by the test unit, 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 generating the CTS test case in response to the user operation in the CTS operation page.
With reference to the second aspect, in some possible embodiments, the generating, by the test unit, a CTS test case in response to a user operation in the CTS operation page includes:
acquiring a trigger instruction;
responding to the triggering instruction to call an operation simulation model to generate user operation in the CTS operation page;
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:
when the system information indicates that the equipment to be tested is an android system, acquiring port information associated with CTS testing in the equipment to be tested through a preset instruction.
With reference to the second aspect, in some possible embodiments, the test unit is further configured to:
checking a CTS test report of the equipment to be tested, and if the check is passed, performing consensus verification on the CTS test report of the equipment to be tested through a consensus node in a block chain network;
if the consensus verification is passed, packaging a CTS test report of the device to be tested into a block, and writing the block into a block chain.
In a third aspect, embodiments of the present application provide a test apparatus, where the test apparatus includes a processor and a memory, where the processor is connected to the memory, and 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 the first aspect.
In a fourth aspect, an embodiment of the present application provides a chip, where the chip is configured to obtain system information of a device to be tested;
when the operating system indicated by the system information is not an android system, calling a driver corresponding to the system information;
acquiring port information associated with CTS test in the device to be tested through a driver;
and executing CTS test based on the port information associated with the CTS test, and generating a CTS test report of the device 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, where the processor is connected to the communication interface, the communication interface is used to send and receive signals, and the processor is used to:
Acquiring system information of equipment to be tested;
when the operating system indicated by the system information is not an android system, calling a driver corresponding to the system information;
acquiring port information associated with CTS test in the device to be tested through a driver;
and executing CTS test based on the port information associated with the CTS test, and generating a CTS test report of the device to be tested.
In a sixth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program which, when executed by a processor, implements the CTS test 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 apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 is a schematic structural diagram of a CTS test system according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a CTS testing method according to an embodiment of the present application;
FIG. 3 is a block chain architecture diagram provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of another CTS testing method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a CTS testing device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a test apparatus according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a CTS test system provided in an embodiment of the present application, and the technical solution of the embodiment of the present application may be implemented in the CTS test system illustrated in fig. 1 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 200c. 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 an android system, calling a driver corresponding to the system information; acquiring port information associated with CTS test in the device to be tested through a driver; and executing CTS test based on the port information associated with 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 smart phones, smart wearable devices, tablet computers, laptop computers, functional computers, IOT devices, desktop computers, and the like, which have the above functions. The test device 100 may be a terminal device with the above functions, for example, a smart phone, a smart wearable device, a tablet computer, a laptop computer, a desktop computer, and the like. The test device 100 may also be a server with an interactive interface, where the server may be a server, a server cluster formed by a plurality of 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 (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), fifth generation mobile communication technology (5th generation mobile networks,5G), wireless local area network (wireless local area networks, WLAN), and wireless fidelity (wireless fidelity, wi-Fi) networks.
In some embodiments, the wired network may include, but is not limited to, a computer network employing coaxial cable, twisted pair, and fiber optic connections.
Next, the CTS test method of the embodiment of the present application will be described in detail. Referring to fig. 2, fig. 2 is a flow chart of a CTS testing method. The CTS test method may be applied to a test device as shown in fig. 1. As shown in fig. 2, the CTS test method may specifically include S201-S204:
s201: and acquiring system information of the device to be tested.
Specifically, the test device may obtain system information of the device to be tested in response to a trigger operation of performing a CTS test on the device to be tested. The triggering operation of performing the CTS test on the device to be tested 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 for performing the CTS test on the device to be tested is detected. For example, a timing task may be deployed through tools such as blue shield, soda, etc., triggering a CTS test task. Alternatively, 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, a list of information may be obtained within the test device, the list of information including system information for each device under test. As shown in the information list of table 1, a name list item, a model list item, and an operating system list item may be included in the information list. The name list item may be used to store name information of the device under test, the name list item may be denoted as "name", the model list item may be used to store model information of the device under test, the model list item may be denoted as "model", the operating system list item may be used to store operating system information of the device under test, and the operating system list item may be denoted as "operating system". The name information of the device under test may be stored at a first location of the name list item, then the model information of the device under test is stored at a location in the model list item corresponding to the first location, and the operating system information of the device under test is stored at a location in the operating system list item corresponding to the first location. For example, assuming that the name information of the device 1 to be measured is "XX", the model information of the device 1 to be measured is "XX", the handling system information of the device 1 to be measured is "Android system (Android)", the name information of the device 2 to be measured is "YY", the model information of the device 1 to be measured is "YY", the operating system information of the device 1 to be measured is "apple system (iOS)", as shown in table 1, the name information "XX" of the device 1 to be measured may be stored in the first column of the name list item, the model information "XX" of the device 1 to be measured may be stored in the first column of the model list item, and the operating system information "Android system" of the device 1 to be measured may be also stored in the first column of the operating system list item; the name information "YY" of the device under test 2 may be stored in the second column of the name list item, the model information "YY" of the device under test 2 may be stored in the second column of the model list item, and the operating system information "iOS system" of the device under test 2 may also be stored in the second column of the operating system list item.
Name of the name 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 an android system, calling a driver corresponding to the system information.
When the CTS test is executed to generate a CTS test report, if the operating system of the device to be tested is the android system, the test device can directly acquire 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 a 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 an android system, the testing device cannot directly acquire port information associated with CTS test in the device to be tested through a 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 identify 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 to 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 can comprise any one or more of the following: apple system, microsoft system (windows phone), nokia system (Symbian), blackBerry system (BlackBerry OS), hong Mony system (Harmony), mac operating system (macOS), linux operating system and Internet of things system, etc.
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, i.e. 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, the operating system of the device to be tested is an apple system, and then the driver may be a driver corresponding to the apple system; for another example, the operating system of the device under test is the nokia system, and the driver may be a driver corresponding to the nokia system; for another example, the operating system of the device to be tested is the internet of things system, then the driver may be a driver corresponding to the internet of things system, and so on.
S203: and acquiring port information associated with CTS test in the device to be tested through a driver.
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 port information associated with CTS.
The driver comprises a port detection command. Due to the difference of the operating systems, the port detection commands are also different. Optionally, when the system information indicates that the operating system of the device under test is windows, the test device may call 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 CTS test based on the port information associated with the CTS test, and generating a CTS test report of the device to be tested.
Specifically, the test device may configure a CTS test environment, install a CTS test setup package in the CTS test environment, and generate a CTS test case. Acquiring a test file from the device to be tested based on port information associated with CTS test; and calling a CTS test case in a CTS test environment to carry out CTS test on the test file, and generating a CTS test report of the device to be tested.
In one embodiment, the test device may verify the CTS test report of the device under test, and if the verification is passed, perform consensus verification on the CTS test report of the device under test through a consensus node in the blockchain network; if the consensus verification is passed, packaging a CTS test report of the device to be tested into a block, and writing the block into a block chain.
The block chain is a chain type data structure which is formed by combining data blocks in a sequential connection mode according to time sequence, and the data cannot be tampered and counterfeited in a cryptographic mode. Multiple independent distributed nodes maintain the same record. Blockchain technology enables decentralization, becoming a cornerstone for trusted digital asset storage, transfer, and transactions.
Taking the schematic block chain structure shown in fig. 3 as an example, when writing the CTS test report of the device under test into the block chain, the CTS test report of the device under test may be packaged into a block and added at the end of the existing block chain, so as to ensure that the newly added block of each node is identical through a consensus algorithm. Each block records a plurality of CTS test reports of the devices to be tested, and meanwhile, the CTS test reports contain hash (hash) values of the previous block, and all the blocks are sequentially connected to form a block chain by storing the hash values in the previous block in the mode. 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 equipment to be tested in the previous block is changed, the hash value of the current block is also changed, so that the CTS test report uploaded to the equipment to be tested in the block chain is difficult to tamper, and the reliability of data is improved.
In one embodiment, a device under test may obtain CTS test reports for the device under test from a blockchain and analyze and aggregate the CTS test reports for multiple devices under test. Alternatively, the device under test may simply summarize the CTS test report of each test device, summarize the number of test cases passed, the number of failed test cases, the number of test cases that have not been executed, the number of test cases that have timed out, and so on in the CTS test.
Optionally, the test device may further record the class name of the failed CTS test case, the name of the CTS test case, the failure tracking, and the system information of the corresponding device to be tested by reading the test result of each CTS test case in the CTS test report; in one embodiment, when the CTS test cases with failures in different CTS test reports have the same class name and CTS test case name, failure tracking of the CTS test cases with failures in all CTS test reports is compared, and the occurrence probability of the failures of the CTS test cases with failures is determined. Specifically, if a certain failed CTS test case appears in multiple CTS test reports and the failed CTS test cases have the same failure tracking in the multiple CTS test reports, determining that the failed CTS test case is necessary; if the failed CTS test case does not appear in all CTS test reports, then the failed CTS test case is determined to be an even occurrence.
The CTS test method provided by the embodiment of the invention can upload the CTS test report of the device to be tested to the block chain, so that the CTS test report in the block chain is difficult to tamper, and the reliability of data is improved. Therefore, the result obtained by analyzing and summarizing CTS test reports based on the equipment to be tested in the blockchain is more accurate.
In the embodiment of the application, the test equipment can acquire the system information of the equipment to be tested, and when the operating system indicated by the system information is not an android system, a driver corresponding to the system information is called; acquiring port information associated with CTS test in the device to be tested through a driver; and executing CTS test based on the port information associated with the CTS test, and generating a CTS test report of the device to be tested. Because the test equipment can call the driver corresponding to the system information to acquire the port information related to the CTS test when the system information of the equipment to be tested indicates that the operating system of the equipment to be tested is not an android system, and can acquire the port information related to the CTS test by utilizing the preset instruction when the system information of the equipment to be tested indicates that the operating system of the equipment to be tested is the android system. The test device can not only execute CTS test on the device to be tested with the operating system being the android system, but also execute CTS test on the device to be tested with the operating system not being the android system, and compatibility of CTS test is improved.
Referring to the above description of the method embodiment shown in fig. 2, the test device may perform the CTS test on the device under test whose operating system is not the android system by using the CTS test method shown in fig. 2. The process by which the test device performs a CTS test on the device under test to generate a CTS test report is described in detail below. Referring to fig. 4, fig. 4 is a flow chart of another CTS testing method. As shown in fig. 4, the CTS test method includes S401 to S404:
s401: the CTS test environment is configured.
Specifically, in this embodiment, the test apparatus acquires a CTS test frame, and may configure a CTS test environment in the CTS test frame using an adaptation operation of environment auto-configuration.
S402: the CTS test installation package is installed in a CTS test environment, and CTS test cases are generated.
Specifically, the test device may generate a CTS operation page based on the CTS test setup packet, 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 may be configured on the CTS operation page by user operation to form a CTS test case. In another embodiment, the user operation can be simulated by an operation simulation model to configure the options to be tested on the CTS operation page so as to form a CTS test case. Specifically, the test device may obtain a trigger instruction, call the operation simulation model to generate a user operation in the CTS operation page in response to the trigger instruction, 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 technique, for example, uiautomatic technique. Specifically, relevant options can be configured by simulating a user clicking on a screen on the device to be tested by using the uiautomatic 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 device to be tested based on the port information related to the CTS test.
Specifically, the test device may obtain a test file from the device to be tested based on port information associated with CTS test, where the test file includes source code to be tested, where the source code to be tested refers to code developed and written by a developer. Alternatively, the test file may include all the codes in the device under test. Alternatively, only the code associated with the CTS test may be included in the test file.
S404: and calling a CTS test case in a CTS test environment to carry out CTS test on the test file, and generating a CTS test report of the device to be tested.
In the embodiment of the application, 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 so that the CTS test case can be called to carry out CTS test on the test file. The CTS test installation package can be installed by the test equipment to generate a CTS operation page, so that a CTS operation case can be generated in the CTS operation page through user operation, the operation simulation model can be invoked to simulate the user operation in the CTS operation page to generate the CTS test case, complicated operation is not needed, the portable test case can be used, 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 application. The device can be a test device, a device in the test device or a device which can be matched with the test device for use. The CTS test device shown in fig. 5 may include an acquisition unit 501, a calling unit 502, and a test unit 503. Wherein:
an acquiring unit 501, configured to acquire 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 obtaining unit 501 is further configured to obtain port information associated with CTS test in a device to be tested through a driver;
and a test unit 503, configured to perform 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 test unit 503 performs a CTS test based on 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 device to be tested based on port information associated with CTS test;
And calling a CTS test case in a CTS test environment to carry out CTS test on the test file, and generating a CTS test report of the device to be tested.
In some possible implementations, 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 generating the CTS test case in response to the user operation in the CTS operation page.
In some possible embodiments, the test unit 503 generates a CTS test case in response to a user operation within a CTS operation page, including:
acquiring a trigger instruction;
responding to the triggering instruction to call an operation simulation model to generate user operation in the CTS operation page;
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:
when the system information indicates that the equipment to be tested is an android system, acquiring port information associated with CTS testing in the equipment to be tested through a preset instruction.
In some possible embodiments, the test unit 503 is further configured to:
checking a CTS test report of the equipment to be tested, and if the check is passed, performing consensus verification on the CTS test report of the equipment to be tested through a consensus node in a block chain network;
If the consensus verification is passed, packaging a CTS test report of the device 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. With respect to each unit and each unit included in the product described in the above embodiments, it may be a software unit, or may be a hardware unit, or may be a part of a software unit, or a part of a hardware unit. For example, for each device or product applied to or integrated in a chip, each unit included in the device or product may be implemented by hardware such as a circuit, or at least part of units may be implemented by software programs running on a processor integrated in the chip, and the rest (if any) of 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 contained in the device and product can be realized by adopting hardware such as a circuit, different units can be located in the same component (such as a chip, a circuit unit and the like) or different components of the module device, or at least part of units can be realized by adopting a software program, the software program runs on a processor integrated in the module device, and the rest (if any) of units can be realized by adopting hardware such as a circuit; for each device and product applied to or integrated in the test equipment, each unit included in the device and product may be implemented by hardware such as a circuit, different units may be located in the same component (for example, a chip, a circuit unit, etc.) or different components in the test equipment, or at least part of units may be implemented by using a software program, where the software program runs on a processor integrated in the test equipment, and the rest (if any) of units may be implemented by using hardware such as a circuit.
The relevant content of the embodiment can be referred to the relevant content of the method embodiment. And will not be described in detail herein. The technical effects brought by the embodiments of the present application and the embodiments of the above method are the same based on the same conception, and the specific principle is referred to the description of the embodiments of the above method, and is not repeated here.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a test apparatus according to an embodiment of the present application. The test apparatus includes: processor 601, memory 602, processor 601 and memory 602 are connected by one or more communication buses 603.
The processor 601 may be a central processing unit (Central Processing Unit, CPU) which may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or 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 test device to perform the corresponding functions of the test device in the CTS test 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. Wherein the processor 601, when calling the computer program, is configured to perform:
acquiring system information of equipment to be tested;
when the operating system indicated by the system information is not an android system, calling a driver corresponding to the system information;
acquiring port information associated with CTS test in the device to be tested through a driver;
and executing CTS test based on the port information associated with the CTS test, and generating a CTS test report of the device to be tested.
In some possible embodiments, the processor 601 performs a CTS test based on port information associated with the CTS test, generating 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 device to be tested based on port information associated with CTS test;
and calling a CTS test case in a CTS test environment to carry out CTS test on the test file, and generating a CTS test report of the device to be tested.
In some possible implementations, the processor 601 generates CTS test cases including:
Generating a CTS operation page based on the CTS test installation package;
receiving user operation in a CTS operation page;
and generating the CTS test case in response to the user operation in the CTS operation page.
In some possible implementations, the processor 601 generates a CTS test case in response to a user operation within a CTS operation page, including:
acquiring a trigger instruction;
responding to the triggering instruction to call an operation simulation model to generate user operation in the CTS operation page;
generating a CTS test case in response to a user operation within the CTS operation page,
in some possible implementations, the processor 601 is further configured to:
when the system information indicates that the equipment to be tested is an android system, acquiring port information associated with CTS testing in the equipment to be tested through a preset instruction.
In some possible implementations, the processor 601 is further configured to:
checking a CTS test report of the equipment to be tested, and if the check is passed, performing consensus verification on the CTS test report of the equipment to be tested through a consensus node in a block chain network;
if the consensus verification is passed, packaging a CTS test report of the device to be tested into a block, and writing the block into a block chain.
The relevant content of the embodiment can be referred to the relevant content of the method embodiment. And will not be described in detail herein. The technical effects brought by the embodiments of the present application and the embodiments of the above method are the same based on the same conception, and the specific principle is referred to the description of the embodiments of the above method, and is not repeated here.
The embodiment of the application provides a chip, which can execute relevant steps of the test equipment in the embodiment of the method. The chip is used for:
acquiring system information of equipment to be tested;
when the operating system indicated by the system information is not an android system, calling a driver corresponding to the system information;
acquiring port information associated with CTS test in the device to be tested through a driver;
and executing CTS test based on the port information associated with the CTS test, and generating a CTS test report of the device to be tested.
In some possible embodiments, the chip performs a CTS test based on port information associated with the CTS test, 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 device to be tested based on port information associated with CTS test;
and calling a CTS test case in a CTS test environment to carry out CTS test on the test file, and generating a CTS test report of the device 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 generating the CTS test case in response to the user operation in the CTS operation page.
In some possible embodiments, the chip generates a CTS test case in response to a user operation within a CTS operation page, including:
acquiring a trigger instruction;
responding to the triggering instruction to call an operation simulation model to generate user operation in the CTS operation page;
generating a CTS test case in response to a user operation within the CTS operation page,
in some possible embodiments, the chip is further to:
when the system information indicates that the equipment to be tested is an android system, acquiring port information associated with CTS testing in the equipment to be tested through a preset instruction.
In some possible embodiments, the chip is further to:
checking a CTS test report of the equipment to be tested, and if the check is passed, performing consensus verification on the CTS test report of the equipment to be tested through a consensus node in a block chain network;
if the consensus verification is passed, packaging a CTS test report of the device to be tested into a block, and writing the block into a block chain.
The relevant content of the embodiment can be referred to the relevant content of the method embodiment. And will not be described in detail herein. The technical effects brought by the embodiments of the present application and the embodiments of the above method are the same based on the same conception, and the specific principle is referred to the description of the embodiments of the above method, and is not repeated here.
The embodiment of the application also provides a module device, the module device includes a processor and a communication interface, the processor is connected with the communication interface, 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 an android system, calling a driver corresponding to the system information;
acquiring port information associated with CTS test in the device to be tested through a driver;
and executing CTS test based on the port information associated with 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, 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 device to be tested based on port information associated with CTS test;
and calling a CTS test case in a CTS test environment to carry out CTS test on the test file, and generating a CTS test report of the device to be tested.
In some possible implementations, 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 generating the CTS test case in response to the user operation in the CTS operation page.
In some possible embodiments, 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;
responding to the triggering instruction to call an operation simulation model to generate user operation in the CTS operation page;
generating a CTS test case in response to a user operation within the CTS operation page,
in some possible implementations, the processor is further configured to:
when the system information indicates that the equipment to be tested is an android system, acquiring port information associated with CTS testing in the equipment to be tested through a preset instruction.
In some possible implementations, the processor is further configured to:
checking a CTS test report of the equipment to be tested, and if the check is passed, performing consensus verification on the CTS test report of the equipment to be tested through a consensus node in a block chain network;
if the consensus verification is passed, packaging a CTS test report of the device to be tested into a block, and writing the block into a block chain.
The relevant content of the embodiment can be referred to the relevant content of the method embodiment. And will not be described in detail herein. The technical effects brought by the embodiments of the present application and the embodiments of the above method are the same based on the same conception, and the specific principle is referred to the description of the embodiments of the above method, and is not repeated here.
The embodiment of the present application further provides 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 test method described in the embodiment of the present application, which is not described herein again.
The computer readable storage medium may be an internal storage unit of the test device of any of the previous 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 device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like, which are provided on the test device. Further, the computer readable storage medium may also include both an internal storage unit and an external storage device of the test device. The computer readable storage medium is used to store a computer program and other programs and data required for the test device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in the embodiments may be accomplished by computer programs to instruct related hardware, where the programs may be stored on a readable storage medium, and where the programs, 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 (Random Access Memory, RAM), or the like.
The foregoing disclosure is only illustrative of the preferred embodiments of the present application and is not intended to limit the scope of the claims herein, as the equivalent of the claims herein shall be construed to fall within the scope of the claims herein.

Claims (11)

1. A method of CTS testing, said method comprising:
acquiring system information of equipment to be tested;
when the operating system indicated by the system information is not an android system, calling a driver corresponding to the system information;
acquiring port information related to CTS test of a compatibility test suite in the equipment to be tested through the driver;
and executing CTS test based on the port information associated with the CTS test, and generating a CTS test report of the device to be tested.
2. The method of claim 1, wherein the performing a CTS test based on the CTS test associated port information, 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 related to the CTS test;
and calling the CTS test case in the CTS test environment to carry out 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 generating CTS test cases comprises:
generating a CTS operation page based on the CTS test installation packet;
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 operation within the CTS operation page comprises:
acquiring a trigger instruction;
responding to the trigger instruction to call an operation simulation model to generate user operation in the CTS operation page;
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, wherein the method further comprises:
and when the system information indicates that the equipment to be tested is the android system, acquiring port information associated with CTS test in the equipment to be tested through a preset instruction.
6. The method of any one of claims 1-4, wherein the method further comprises:
checking the CTS test report of the equipment to be tested, and if the check is passed, performing consensus verification on the CTS test report of the equipment to be tested through a consensus node in a blockchain network;
And if the common identification 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 device, said device comprising:
the acquisition unit is used for acquiring system information of the equipment to be tested;
the calling unit is used for calling a driver corresponding to the system information when the operating system indicated by the system information is not an android system;
the acquisition unit is also used for acquiring port information associated with CTS test in the device to be tested through the driver;
and the test unit is used for executing CTS test based on the port information related to the CTS test and generating a CTS test report of the device to be tested.
8. A test apparatus comprising a processor and a memory, the processor being coupled to the memory, wherein the memory is configured to store program code, the processor being configured to invoke the program code to perform the CTS test method of any of claims 1 to 6.
9. A chip, wherein the chip comprises a processor;
the processor is used for acquiring system information of the equipment to be tested;
when the operating system indicated by the system information is not an android system, calling a driver corresponding to the system information;
Acquiring port information associated with CTS test in the device to be tested through the driver;
and executing CTS test based on the port information associated with the CTS test, and generating a CTS test report of the device to be tested.
10. A CTS test related modular device, wherein the modular device includes a processor and a communication interface, the processor is connected to the communication interface, 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 an android system, calling a driver corresponding to the system information;
acquiring port information associated with CTS test in the device to be tested through the driver;
and executing CTS test based on the port information associated with the CTS test, and generating a CTS test report of the device 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 test method of any 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 CN113535578A (en) 2021-10-22
CN113535578B true 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)

Families Citing this family (1)

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

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112231199A (en) * 2019-07-15 2021-01-15 北京京东尚科信息技术有限公司 Test method and device for object to be tested and test system

Family Cites Families (3)

* 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
CN109726103B (en) * 2018-05-14 2021-09-21 平安科技(深圳)有限公司 Test report generation method, device, equipment and storage medium
CN109446069A (en) * 2018-09-26 2019-03-08 平安普惠企业管理有限公司 Compatibility test method, device, computer equipment and medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112231199A (en) * 2019-07-15 2021-01-15 北京京东尚科信息技术有限公司 Test method and device for object to be tested and test system

Also Published As

Publication number Publication date
CN113535578A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN107870860B (en) Buried point verification system and method
CN108255701B (en) Scene testing method and mobile terminal
CN105487966A (en) Program testing method, device and system
US11893331B2 (en) Device verification method, UVM verification platform, electronic apparatus and storage medium
CN109683997B (en) Method for accessing application program interface through sandbox, sandbox and sandbox equipment
CN104579830B (en) service monitoring method and device
CN109408309B (en) Multi-terminal testing method and device
CN113672441B (en) Method and device for testing intelligent equipment
CN107293330B (en) Method and system for performing simulation verification on Random Access Memory (RAM)
CN113535578B (en) CTS test method, CTS test device and CTS test equipment
CN105589928A (en) Simulation testing method for distributed data processing system
US8391162B2 (en) Apparatus and method for testing SMNP cards
CN113535580B (en) CTS test method, CTS test device and test equipment
CN117076330B (en) Access verification method, system, electronic equipment and readable storage medium
CN104050054A (en) Processing method for installation package installation failure and cause determining method and device
CN112115060A (en) Audio test method and system based on terminal
CN107678967B (en) Unit test coverage rate generation method and device, readable storage medium and equipment
CN110532186B (en) Method, device, electronic equipment and storage medium for testing by using verification code
CN116107781A (en) Log tracking method, device, electronic equipment and computer program product
CN109189369B (en) Method and device for compressing codes
CN105553759A (en) Smart card and mobile terminal consistency test method and device
CN112560035B (en) Application detection method, device, equipment and storage medium
CN107885659A (en) Method and device, the equipment of request analog response to client
CN116028339A (en) Method, device and system for testing graphic library of train terminal equipment
CN115242658B (en) Open system access method, device, computer equipment 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