Method and device for obtaining test results, electronic device and storage medium

By directly accessing automated deployment tools through software testing tools, test tasks can be created and executed, solving the problem of not being able to obtain the creation status of underlying Linux system resources in existing technologies, and achieving efficient test result acquisition.

CN112650686BActive Publication Date: 2024-11-05BEIJING TEAMSUN TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011607179.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-30
Publication Date
2024-11-05
Estimated Expiration
2040-12-30

AI Technical Summary

Technical Problem

In the existing technology, existing automated testing tools cannot obtain test results on whether the creation of underlying resources of the Linux system was successful, which makes it impossible to verify the creation status of resources such as k8s, Ceph, apache, and mysql.

Method used

By directly accessing automated deployment tools, such as Jenkins, through software testing tools, test tasks can be created and executed, test return values ​​can be obtained, and compared with expected return values ​​to determine the test results.

Benefits of technology

This technology enables the acquisition of test results to determine whether the creation of underlying Linux system resources was successful, thereby improving testing efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112650686B_ABST
    Figure CN112650686B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method and device for obtaining test results, an electronic device and a storage medium, the method comprising: creating a test task in an automated deployment tool; controlling the automated deployment tool to execute the test task and return a test return value; determining the test result according to the comparison between the test return value and an expected return value, the expected return value including the expected result information corresponding to the test task. The embodiments of the present disclosure can obtain test results, in particular, can obtain test results for verifying whether the creation of the underlying resources of the Linux system is successful.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of software testing, and in particular to a method and device for obtaining test results, an electronic device, and a storage medium. Background Art

[0002] Software automation testing exists in contrast to manual testing. Testers perform tests step by step according to the procedures described in the test cases to obtain a comparison between the actual results and the expected results. Compared with manual testing, the use of automated software testing methods saves manpower, time or hardware resources and has high testing efficiency. In the prior art, when testing the underlying resources of the Linux system, the test results cannot be obtained using the existing automated testing tools, resulting in the inability to verify whether the underlying resources of the Linux system (k8s, Ceph, apache, mysql, etc.) are successfully created. Summary of the invention

[0003] The present invention provides a method and device for obtaining test results, an electronic device and a storage medium, which can obtain test results, especially test results for verifying whether the underlying resources of a Linux system are successfully created.

[0004] According to one aspect of the present disclosure, a method for obtaining test results is provided, which is applied to a software testing tool, comprising:

[0005] Creating a test task in the automated deployment tool;

[0006] Controlling the automated deployment tool to execute the test task and return a test return value;

[0007] The test result is determined based on the comparison between the test return value and the expected return value, wherein the expected return value includes the expected result information corresponding to the test task.

[0008] In some possible implementations, before creating a test task in the automated deployment tool, the method further includes:

[0009] Receive and respond to a user's operation on configuring the software testing tool with user authentication information that allows access to the automated deployment tool;

[0010] After the user verification information is passed, the test task is created in the automated deployment tool.

[0011] In some possible implementations, creating a test task in the automated deployment tool includes:

[0012] Accessing the interface of the automated deployment tool, and filling the inherent configuration information of the test task into the format editing bar of the software testing tool;

[0013] Receiving the business logic input by the user in the format editing bar and forming a request for creating a test task;

[0014] Access an interface of an automated deployment tool, and send the request to create a test task to the automated deployment tool, so that the automated deployment tool creates the test task according to the request.

[0015] In some possible implementations, controlling the automated deployment tool to execute the test task and obtaining a test return value includes:

[0016] Accessing the interface of the automated deployment tool to enable the automated deployment tool to execute the test task, and returning the test return value obtained after the execution to the interface of the automated deployment tool;

[0017] Access the interface of the automated deployment tool to obtain the test return value.

[0018] In some possible implementations, before accessing the interface of the automated deployment tool and filling the inherent configuration information into the format editing bar of the software testing tool, the method further includes:

[0019] Access the interface of the automated deployment tool page to obtain the inherent configuration information of the test task.

[0020] According to a second aspect of the present disclosure, a device for obtaining test results is applied to a software testing tool, and includes:

[0021] A creation module, used to create a test task in the automated deployment tool;

[0022] A control module, used to control the automated deployment tool to execute the test task and return a test return value;

[0023] A comparison module is used to determine the test result corresponding to the test task based on the comparison between the test return value and the expected return value, wherein the expected return value includes the expected result information corresponding to the test task.

[0024] In some possible implementations, the device further includes:

[0025] The verification module is used to receive and respond to the user's operation on configuring the software testing tool to allow access to the automated deployment tool before creating a test task in the automated deployment tool; after the user verification information is passed, the test task is created in the automated deployment tool.

[0026] In some possible implementations, the creation module includes:

[0027] A filling submodule is used to access the interface of the automated deployment tool, fill the inherent configuration information of the test task into the format editing bar of the software testing tool; receive the business logic entered by the user in the format editing bar and form a request to create a test task;

[0028] The creation submodule is used to access the interface of the automated deployment tool and send the test task creation request to the automated deployment tool so that the automated deployment tool creates the test task according to the request.

[0029] In some possible implementations, the creation module further includes:

[0030] The acquisition submodule is used to access the interface of the automated deployment tool page to obtain the inherent configuration information of the test task and send it to the filling submodule

[0031] In some possible implementations, the control module is also used to access the interface of the automated deployment tool so that the automated deployment tool executes the test task and returns the test return value obtained after execution to the interface of the automated deployment tool; and access the interface of the automated deployment tool to obtain the test return value.

[0032] According to a third aspect of the present disclosure, there is provided an electronic device, comprising:

[0033] processor;

[0034] a memory for storing processor-executable instructions;

[0035] The processor is configured to call instructions stored in the memory to execute the method described in any one of the first aspects.

[0036] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the method described in any one of the first aspects is implemented.

[0037] In the disclosed embodiment, the software testing tool can directly access the automated deployment tool to build and execute test tasks and obtain test results. The test results can be obtained, especially the test results that verify whether the underlying resources of the Linux system are successfully created.

[0038] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.

[0039] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used to illustrate the technical solutions of the present disclosure together with the specification.

[0041] Figure 1 A flow chart showing a method for obtaining test results according to an embodiment of the present disclosure;

[0042] Figure 2 A flowchart showing authorization verification in a method for obtaining test results according to an embodiment of the present disclosure is shown;

[0043] Figure 3 A flowchart showing step S10 in the method for obtaining test results according to an embodiment of the present disclosure;

[0044] Figure 4 A flowchart showing step S20 in the method for obtaining test results according to an embodiment of the present disclosure;

[0045] Figure 5 A block diagram showing an apparatus for obtaining test results according to an embodiment of the present disclosure;

[0046] Figure 6 A block diagram of an electronic device according to an embodiment of the present disclosure is shown;

[0047] Figure 7 A block diagram of another electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0048] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0049] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0050] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.

[0051] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.

[0052] The execution subject of the method for obtaining the test result can be any device that can be used to test the application program, for example, the method can be executed by a terminal device or a server or other processing device, wherein the terminal device can be a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the method can be implemented by a processor calling a computer-readable instruction stored in a memory.

[0053] It can be understood that the above-mentioned various method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle logic. Due to space limitations, the present disclosure will not go into details.

[0054] Figure 1 A flow chart showing a method for obtaining test results according to an embodiment of the present disclosure is shown as follows: Figure 1 As shown, the method for obtaining the test result includes:

[0055] S10: Create test tasks in the automated deployment tool;

[0056] S20: Control the automated deployment tool to execute the test task and return a test return value;

[0057] S30: Determine the test result based on the comparison between the test return value and the expected return value, wherein the expected return value includes the expected result information corresponding to the test task.

[0058] In the disclosed embodiment, the software testing tool is preferably the software testing tool Postman. In the related art, in order to test whether the underlying resources of the Linux system are successfully created, the Postman software is usually used for automated testing. During the test, it is found that the test results cannot be obtained, which leads to the inability to verify whether the underlying resources (k8s, Ceph, apache, mysql, etc.) of the Linux system are successfully created. Therefore, the disclosed embodiment combines the automated deployment tool (preferably Jenkins) to obtain the test return value to verify whether the underlying resources of the Linux system are successfully created. Therefore, the disclosed embodiment directly accesses the automated deployment tool to achieve the creation and execution of the test task, and obtains the test return value, and can obtain the test results, especially the test results that can verify whether the underlying resources of the Linux system are successfully created. Of course, in actual applications, software testing tools and automated deployment tools can also use other corresponding tools, such as: jmeter, etc.; automated deployment tools can also use tekton, drone, jenkins x, etc.

[0059] Figure 2 A flowchart of authorization verification in a method for obtaining test results according to an embodiment of the present disclosure is shown. Figure 2 As shown, before creating a test task in the automated deployment tool, the method further includes:

[0060] S1: receiving and responding to a user's operation on configuring the software testing tool with user authentication information that allows access to the automated deployment tool;

[0061] S2: After the user verification information is passed, create a test task in the automated deployment tool.

[0062] Specifically, in the embodiment of the present disclosure, the user first pre-configures the user authentication information of the automated deployment tool Jenkins for the software testing tool. The user authentication information may include a set user name and user password, and may also include information such as user type and user authority, which is not specifically limited in the present disclosure. For example, the authorization that allows access to the automated deployment tool Jenkins can be pre-configured in the software testing tool Postman (specifically: select the user type TYPE as Basic Auth basic user, fill in the username Username and password Password as the account password of the Jenkins WEB page), so that Postman can operate Jenkins resources through the Jenkins interface. This process actually completes the authentication of Jenkins for the software testing tool Postman.

[0063] In some possible implementations, before the software testing tool uses the automated deployment tool to create a test task, it is necessary to first pass the access authentication of the automated deployment tool. That is, it is necessary to first obtain the user's verification information and determine whether the input user verification information is the pre-set user verification information that can access the automated deployment tool. The present disclosure is implemented in a database that can pre-store user verification information for accessing the automated deployment tool Jenkins, such as registered user name, password, user type, authority and other information. When the input user verification information is obtained, it is determined whether the user verification information is the user verification information stored in the database. If so, the verification is passed, otherwise, the verification fails. In the case of passing the verification, subsequent interface access, task creation and other processes can continue to be executed. If the verification fails, a prompt message indicating that the verification failed is output, and the automated deployment tool does not respond.

[0064] In an embodiment of the present disclosure, a method for obtaining user verification information may include at least one of the following methods: receiving user verification information transmitted by other electronic devices; receiving user verification information input by the user through an input component, wherein the input component may include a keyboard, a touch screen, a voice interface and other devices, and the present disclosure does not make specific limitations on this.

[0065] Figure 3 A flowchart of step S10 in the method for obtaining test results according to an embodiment of the present disclosure is shown. The step of creating a test task in the automated deployment tool includes:

[0066] S11: Access the interface of the automated deployment tool, and fill the inherent configuration information of the test task into the format editing bar of the software testing tool. Obtain the configuration information of the test task of the automated deployment tool;

[0067] In some possible implementations, when the inherent configuration information of the test task is obtained, the acquired inherent configuration information can be added to the format editing bar of the software testing tool to form a test task in an expected format. The format editing bar can be an editing area for planning the format of the test task.

[0068] S12: receiving the business logic input by the user in the format editing bar and forming a request for creating a test task;

[0069] S13: Accessing an interface of an automated deployment tool, and sending the request to create a test task to the automated deployment tool, so that the automated deployment tool creates the test task according to the request.

[0070] In some possible implementations, a user can input business logic information corresponding to the test of the application in the format editing bar of the software testing tool, and use the input business logic information and inherent configuration information obtained from the automated deployment tool to generate a request to create a test task. The test task creation request can be sent to the automated deployment tool through an access interface, and the automated deployment tool can then create a corresponding test task.

[0071] That is to say, by accessing the Jenkins API, Postman can fill the inherent configuration information (confing.xml information) of the Jenkins test task job in the Postman format editing bar (body), so that the technician can continue to configure the body according to the specific business logic to create a new test job task.

[0072] In different test scenarios, you only need to make corresponding edits in the format editing bar of the software testing tool to adapt to different test scenarios. This method is not only simple and easy, but also has wide adaptability.

[0073] In this embodiment, before S11: accessing the interface of the automated deployment tool and filling the inherent configuration information into the format editing bar of the software testing tool, the method further includes:

[0074] S110, accessing the interface of the automated deployment tool page to obtain inherent configuration information of the test task.

[0075] Specifically, the software testing tool postman first accesses the jenkins API on the jenkins WEB page to obtain the confing.xml information of the jenkins job, and then fills the confing.xml information in the body column of the postman.

[0076] Of course, in actual applications, the inherent configuration information confing.xml can be pre-stored and directly retrieved and pasted in step S10.

[0077] When a test task is created, the test task can be executed to complete the test of the application. Figure 4 A flowchart of step S20 in the method for obtaining test results according to an embodiment of the present disclosure is shown. The execution of the test task and obtaining the test return value includes:

[0078] S21: accessing the interface of the automated deployment tool so that the automated deployment tool executes the test task, and returns the test return value obtained after the execution to the interface of the automated deployment tool;

[0079] S22: Accessing the interface of the automated deployment tool to obtain the test return value.

[0080] When the test task is created, the program test tool is used to access the created interface to transmit the control instruction to the automated deployment tool so that the automated deployment tool executes the created test task. In addition, the automated deployment tool can also store the obtained test return value in real time.

[0081] In some possible implementations, the software testing tool can be used to access the automated deployment tool API, that is, the Jenkins API can be accessed through Postman, the entire test task job can be executed in the Linux system, and the result after execution can be generated and returned to the Jenkins API as a test return value. The software testing tool can obtain the test return value by accessing the interface.

[0082] It should be noted here that during the execution of the test task, the automated deployment tool can monitor all task nodes during the task execution, obtain intermediate results and final test results, and both the intermediate results and the final test results can be sent to the software testing tool as return test values.

[0083] In some possible implementations, when obtaining a test return value, the software testing tool may compare the test return value with an expected return value to determine a test result of the test task, where the test result includes the construction status of corresponding underlying resources.

[0084] When the test return value is obtained, the test return value can be compared with the expected return value corresponding to the test task, and the test result of the test task can be determined based on the comparison result of the test return value and the expected return value. The test result includes the construction status of the underlying architecture corresponding to the test task.

[0085] Specifically, the expected return value may include the expected generation result for the test task, that is, the result predicted to be generated when the application corresponding to the test task is executed. For example, it may include information such as expected intermediate parameters and final execution results, or it may also include information on the underlying resources constructed. This disclosure does not specifically limit this. As long as the parameters or results that can be obtained by executing the test task can be used as the expected return value.

[0086] When the test return value is obtained, the test return value can be compared with the expected return value. If the two are the same, it means that the application corresponding to the test task is consistent with the expectation. If there is a difference between the two, it can be determined that there is a fault or error in the application and it needs to be improved and modified.

[0087] In some possible implementations, the expected return value may include at least one return value, and the return value may match the underlying resources of the application. In the process of executing the test task, if the corresponding underlying resource runs correctly and is successfully created, a return value corresponding to the underlying resource may be generated, which is the test return value. Therefore, the test return value may indicate whether the underlying resources in the application corresponding to the test task are successfully created. In the embodiment of the present disclosure, the underlying resources may include at least one of k8s, Ceph, apache, and mysql. When the corresponding underlying resource is created, the generated return value may be a first identifier, and when the corresponding underlying resource fails to be created, the generated return value may be a second identifier, or no identifier is generated. The corresponding generated test return value may be a sequence consisting of a first identifier and a second identifier. The first identifier may be 1, and the second identifier may be 0, which is not specifically limited in the embodiment of the present disclosure.

[0088] In some possible real-time methods, when the expected return value includes a parameter value other than the test return value, the parameter value can be used to determine the underlying resource that failed to be created. As described above, when the underlying resource fails to be created, the second identifier corresponding to the underlying resource may not be generated. Therefore, the test return value includes only the first identifier corresponding to the successfully created underlying resource, and the underlying resource corresponding to the first identifier that was not generated fails to be created.

[0089] In some possible implementations, when the expected return value is different from the corresponding parameter value in the test return value, different parameter values ​​can be used to determine the underlying resource that failed to be created. As described above, when the creation of the underlying resource fails, a second identifier corresponding to the underlying resource is generated. Therefore, each first identifier in the expected return value can represent the expected result of the creation of each underlying resource in the tested application. At this time, the number of return values ​​in the test return value and the expected return value is the same, and the second identifier corresponding to the underlying resource that failed to be created is different from the first identifier in the expected return value. Different identifiers can be used to determine the underlying resource that failed to be created. On the contrary, if the test return value is consistent with the expected return value, it is determined that the underlying resource is successfully constructed.

[0090] In summary, in the embodiments of the present disclosure, the program testing tool can be used to access the automated deployment tool, complete the creation and execution of the test task, and obtain the test results, especially the test results that verify whether the underlying resource creation of the Linux system is successful.

[0091] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0092] It can be understood that the above-mentioned various method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle logic. Due to space limitations, the present disclosure will not go into details.

[0093] In addition, the present disclosure also provides an apparatus for obtaining test results, an electronic device, a computer-readable storage medium, and a program, all of which can be used to implement any method for obtaining test results provided by the present disclosure. The corresponding technical solutions and descriptions are referred to the corresponding records in the method part and will not be repeated here.

[0094] Figure 5 A block diagram of a device for obtaining test results according to an embodiment of the present disclosure is shown, Figure 5 As shown, the device for obtaining the test result includes:

[0095] A creation module 10 is used to create a test task in an automated deployment tool;

[0096] The control module 20 is used to control the automated deployment tool to execute the test task and return the test return value;

[0097] The comparison module 30 is used to compare the test return value with the expected return value to determine the test result, and the expected return value includes the expected result information corresponding to the test task.

[0098] The device also includes: a verification module, which is used to receive and respond to the user's operation on configuring the software testing tool to allow access to the automated deployment tool before creating a test task in the automated deployment tool; and after the user verification information is passed, create a test task in the automated deployment tool.

[0099] In some possible implementations, the creation module includes:

[0100] The filling submodule is used to access the interface of the automated deployment tool, fill the inherent configuration information of the test task into the format editing bar of the software testing tool; receive the business logic entered by the user in the format editing bar and form a request to create a test task,

[0101] The creation submodule is used to access the interface of the automated deployment tool and send a request to create a test task to the automated deployment tool so that the automated deployment tool creates the test task according to the request.

[0102] Preferably, the creation module further includes:

[0103] The acquisition submodule is used to access the interface of the automated deployment tool page to obtain the inherent configuration information of the test task and send it to the filling submodule.

[0104] The control module is also used to access the interface of the automated deployment tool so that the automated deployment tool executes the test task and returns the test return value obtained after execution to the interface of the automated deployment tool; access the interface of the automated deployment tool to obtain the test return value.

[0105] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0106] The embodiment of the present disclosure also provides a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the above method is implemented. The computer-readable storage medium may be a non-volatile computer-readable storage medium.

[0107] The embodiment of the present disclosure further proposes an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured as the above method.

[0108] The electronic device may be provided as a terminal, a server, or a device in other forms.

[0109] Figure 6 A block diagram of an electronic device 800 according to an embodiment of the present disclosure is shown. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.

[0110] Reference Figure 6 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0111] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0112] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0113] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.

[0114] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0115] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0116] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0117] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of the components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0118] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0119] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0120] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 804 including computer program instructions, which can be executed by a processor 820 of an electronic device 800 to perform the above method.

[0121] Figure 7 1 is a block diagram of another electronic device 1900 according to an embodiment of the present disclosure. For example, the electronic device 1900 may be provided as a server. Figure 7 , the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions executable by the processing component 1922, such as an application. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.

[0122] The electronic device 1900 may also include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input / output (I / O) interface 1958. The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.

[0123] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to perform the above method.

[0124] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.

[0125] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0126] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0127] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0128] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0129] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0130] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0131] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0132] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A method for obtaining test results, characterized in that: Applied to software testing tools, including: Create test tasks in automated deployment tools; Controlling the automated deployment tool to execute the test task and return a test return value; Determine the test result by comparing the test return value with the expected return value, wherein the expected return value includes the expected result information corresponding to the test task, and the test result includes the construction status of the underlying resources in the Linux system; The step of controlling the automated deployment tool to execute the test task and return a test return value includes: Access the interface of the automated deployment tool so that the automated deployment tool executes the test task in the Linux system, and returns the test return value obtained after the execution to the interface of the automated deployment tool; Accessing the interface of the automated deployment tool to obtain the test return value; The method further comprises: during the process of the automated deployment tool executing the test task, monitoring all task nodes during the task execution to obtain intermediate results and final test results, wherein the test return value includes the intermediate results and final test results; The method further includes: in the process of the automated deployment tool executing the test task, if the underlying resource is successfully created, a first identifier corresponding to the underlying resource is generated; if the underlying resource is not successfully created, a second identifier corresponding to the underlying resource is generated, and the returned test value also includes the first identifier and / or the second identifier.

2. The method according to claim 1, characterized in that Before creating the test task in the automated deployment tool, the method further includes: Receive and respond to a user's operation on configuring the software testing tool with user authentication information that allows access to the automated deployment tool; After the user verification information is passed, the test task is created in the automated deployment tool.

3. The method according to claim 1, characterized in that: The step of creating a test task in the automated deployment tool includes: Accessing the interface of the automated deployment tool, and filling the inherent configuration information of the test task into the format editing bar of the software testing tool; Receiving the business logic input by the user in the format editing bar and forming a request for creating a test task; Access an interface of an automated deployment tool, and send the request to create a test task to the automated deployment tool, so that the automated deployment tool creates the test task according to the request.

4. The method according to claim 3, characterized in that Before accessing the interface of the automated deployment tool and filling the inherent configuration information into the format editing bar of the software testing tool, the method further includes: Access the interface of the automated deployment tool page to obtain the inherent configuration information of the test task.

5. A device for obtaining test results, characterized in that: Applied to software testing tools, including: Create a module for creating test tasks in automated deployment tools; A control module, used to control the automated deployment tool to execute the test task and return a test return value; A comparison module is used to compare the test return value with the expected return value to determine the test result, wherein the expected return value includes the expected result information corresponding to the test task, and the test result includes the construction status of the underlying resources in the Linux system; Wherein, the control module is also used to access the interface of the automated deployment tool so that the automated deployment tool executes the test task in the Linux system and returns the test return value obtained after execution to the interface of the automated deployment tool; access the interface of the automated deployment tool to obtain the test return value; Wherein, during the process of the automated deployment tool executing the test task in the Linux system, the control module is also used to monitor all task nodes during the task execution, obtain intermediate results and final test results, and the test return value includes the intermediate results and final test results; In which, during the process of the automated deployment tool executing the test task in the Linux system, the control module is also used to generate a first identifier corresponding to the underlying resource when the underlying resource is successfully created, and to generate a second identifier corresponding to the underlying resource when the underlying resource is not successfully created, and the return test value also includes the first identifier and / or the second identifier.

6. The device according to claim 5, characterized in that The device also includes: The verification module is used to receive and respond to the user's operation on configuring the software testing tool to allow access to the automated deployment tool before creating a test task in the automated deployment tool, and to create a test task in the automated deployment tool after the user verification information is passed.

7. The device according to claim 5, characterized in that The creation module includes: A filling submodule is used to access the interface of the automated deployment tool, fill the inherent configuration information of the test task into the format editing bar of the software testing tool; receive the business logic entered by the user in the format editing bar and form a request to create a test task; The creation submodule is used to access the interface of the automated deployment tool and send the test task creation request to the automated deployment tool so that the automated deployment tool creates the test task according to the request.

8. The device according to claim 7, characterized in that The creation module also includes: The acquisition submodule is used to access the interface of the automated deployment tool page to obtain the inherent configuration information of the test task and send it to the filling submodule.

9. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to call the instructions stored in the memory to execute the method described in any one of claims 1 to 4.

10. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 4 is implemented.