CN115269364A - Cloud device testing method and device, cloud server and storage medium - Google Patents

Cloud device testing method and device, cloud server and storage medium Download PDF

Info

Publication number
CN115269364A
CN115269364A CN202110483244.XA CN202110483244A CN115269364A CN 115269364 A CN115269364 A CN 115269364A CN 202110483244 A CN202110483244 A CN 202110483244A CN 115269364 A CN115269364 A CN 115269364A
Authority
CN
China
Prior art keywords
test
tested
equipment
cloud
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110483244.XA
Other languages
Chinese (zh)
Inventor
张爱花
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SF Technology Co Ltd
Original Assignee
SF Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SF Technology Co Ltd filed Critical SF Technology Co Ltd
Priority to CN202110483244.XA priority Critical patent/CN115269364A/en
Publication of CN115269364A publication Critical patent/CN115269364A/en
Pending legal-status Critical Current

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/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
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0645Rental transactions; Leasing transactions

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to a method and a device for testing cloud equipment, a cloud server and a storage medium. The method comprises the following steps: the method comprises the steps that a cloud server responds to a test request which is sent by a client and aims at a cloud device connected with the cloud server, and a test type corresponding to the test request is determined; if the test type is a first test type for remotely testing the cloud equipment, acquiring the equipment type corresponding to the test request and the to-be-tested application corresponding to the test request; and determining test equipment from the cloud equipment according to the equipment type, performing operation test on the application to be tested by using the operation environment of the test equipment, and returning the test result of the application to be tested to the client. By adopting the method, the user can automatically test the cloud equipment without inputting a test instruction through the client, so that the reliability of the test result of the cloud equipment can be improved.

Description

Cloud device testing method and device, cloud server and storage medium
Technical Field
The present application relates to the field of device testing technologies, and in particular, to a method and an apparatus for testing a cloud device, a cloud server, and a storage medium.
Background
With the development of equipment testing technology, a technology for performing online testing by using a real cloud machine appears, communication is established between a client and a cloud server connected with a plurality of real cloud machines, a user can display an interface image of the real cloud machine to be tested by using the client and send a corresponding operating instruction by using the client, and the client can transmit the operating instruction to the cloud server, so that the cloud server can execute automatic testing on the real cloud machine according to the received operating instruction.
However, in the current testing method for the cloud device, a user is required to input a testing instruction through a client to test the cloud device, and when a tester is unfamiliar with a testing process, some testing contents are often omitted, so that the reliability of a testing result of the current testing method for the cloud device is low.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a method and an apparatus for testing a cloud device, a cloud server, and a storage medium.
A cloud device testing method is applied to a cloud server, and comprises the following steps:
responding to a test request which is sent by a client and aims at cloud equipment connected with a cloud server, and determining a test type corresponding to the test request;
if the test type is a first test type for remotely testing the cloud equipment, acquiring an equipment type corresponding to the test request and an application to be tested corresponding to the test request;
determining test equipment from the cloud equipment according to the equipment type, performing operation test on the application to be tested by using the operation environment of the test equipment, and returning the test result of the application to be tested to the client.
In one embodiment, the first test type includes: a first sub-test type for performing remote test on the cloud equipment without a test script; the running test of the application to be tested by using the running environment of the test equipment comprises the following steps: if the test type is the first sub-test type, determining a target test mode corresponding to the test request from preset automatic test modes; wherein, the automatic test mode comprises: automatically traversing at least one of a test mode, a test tool test mode and a combined test mode for simultaneously performing automatic traversal test and test tool test; and based on the target test mode, performing operation test on the application to be tested by using the operation environment of the test equipment.
In one embodiment, the first test type includes: a second sub-test type for performing remote test on the cloud device by using the test script; the running test of the application to be tested by using the running environment of the test equipment comprises the following steps: if the test type is the second subtest type, obtaining a test script corresponding to the test request; and based on the test script, performing operation test on the application to be tested by utilizing the operation environment of the test equipment.
In one embodiment, after determining the test type corresponding to the test request, the method further includes: if the test type is a second test type for performing physical test on the cloud equipment, receiving a lease request for the physical equipment to be tested, which corresponds to the test request, triggered by the client; responding to the renting request, and sending first notification information for notifying a user corresponding to the client to acquire the to-be-tested physical equipment from the cloud server to the client.
In one embodiment, the lease request carries a lease duration for the physical device to be tested; after the first notification information for notifying the user corresponding to the client to acquire the physical device to be tested from the cloud server is sent to the client, the method further comprises the following steps: acquiring the current renting time of the to-be-tested physical equipment; and if the current renting time reaches the renting time length, sending reminding information for reminding the user to return the to-be-tested physical equipment to the client.
In one embodiment, after receiving a lease request for a physical device to be tested corresponding to the test request, the method further includes: if the renting state of the to-be-tested physical equipment is that the to-be-tested physical equipment is rented, returning the renting state to the client; responding to a reservation request of the client for the to-be-tested physical equipment triggered based on the renting state, and sending the first notification information to the client when the to-be-tested physical equipment is returned.
In one embodiment, after receiving a lease request triggered by the client and aiming at a physical device to be tested matched with the test request, the method further includes: if the fact that the physical device to be tested does not exist in the cloud device is detected, returning second notification information to the client; the second notification information is used for notifying the user that the physical device to be tested does not exist in the cloud device; responding to a purchase request of the to-be-tested physical equipment triggered by the client based on the second notification information, sending the purchase request to an approval terminal, and acquiring an approval result of the purchase request from the approval terminal; and if the approval result is that the approval is passed, purchasing the to-be-tested physical equipment, and after the purchase is finished, sending third notification information for notifying the user of receiving the purchased to-be-tested physical equipment to the client.
In one embodiment, after the sending, to the client, third notification information for notifying the user of receiving the purchased physical device to be tested, the method further includes: acquiring the use frequency of the purchased physical equipment to be tested; and if the use frequency is less than a preset frequency threshold value, recycling the purchased material object equipment to be tested.
A cloud device testing device is applied to a cloud server, and comprises:
the request response module is used for responding to a test request which is sent by a client and aims at the cloud end equipment connected with the cloud end server, and determining a test type corresponding to the test request;
the application acquisition module is used for acquiring the equipment type corresponding to the test request and the to-be-tested application corresponding to the test request if the test type is a first test type for remotely testing the cloud equipment;
and the remote testing module is used for determining testing equipment from the cloud equipment according to the equipment type, performing operation testing on the application to be tested by using the operation environment of the testing equipment, and returning the testing result of the application to be tested to the client.
A cloud server comprises a storage and a processor, wherein the storage stores a computer program, and the processor realizes the steps of the method when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
According to the method and the device for testing the cloud equipment, the cloud server and the storage medium, the cloud server responds to a test request which is sent by the client and aims at the cloud equipment connected with the cloud server, and determines a test type corresponding to the test request; if the test type is a first test type for remotely testing the cloud equipment, acquiring the equipment type corresponding to the test request and the to-be-tested application corresponding to the test request; and determining test equipment from the cloud equipment according to the equipment type, performing operation test on the application to be tested by using the operation environment of the test equipment, and returning the test result of the application to be tested to the client. Compared with the traditional cloud equipment testing method, the cloud equipment testing method provided by the application has the advantages that the user does not need to input a testing instruction through the client, the automatic testing of the cloud equipment can be carried out, and the reliability of a testing result of the cloud equipment can be improved.
Drawings
Fig. 1 is a diagram of an application environment of a method for testing a cloud device according to an embodiment;
fig. 2 is a schematic flowchart illustrating a method for testing a cloud device according to an embodiment;
FIG. 3 is a schematic flow chart illustrating renting physical devices to be tested in one embodiment;
FIG. 4 is a schematic diagram of a process for purchasing physical devices under test in one embodiment;
fig. 5 is a schematic flowchart illustrating a method for testing cloud devices in another embodiment;
FIG. 6 is a schematic diagram of an automated compatibility test process without test scripts in an application example;
FIG. 7 is a diagram illustrating an exemplary scenario-specific automated compatibility test process in an application instance;
FIG. 8 is a schematic diagram illustrating a purchase and use process of a cloud-based fax machine in an application example;
fig. 9 is a block diagram illustrating a configuration of a cloud device testing apparatus according to an embodiment;
fig. 10 is an internal structure diagram of the cloud server in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The cloud device testing method provided by the application can be applied to the application environment shown in fig. 1. The client 101 communicates with the cloud server 102 through a network, and the cloud server 102 may be connected in advance with a cloud device that needs to be tested, for example, a cloud host stored in a resource pool of the cloud server 102. Specifically, when a user needs to test cloud equipment connected to the cloud server 102, a corresponding test request may be initiated to the cloud server 102 through the client 101, the cloud server 102 may determine a test type according to the test request, if the test type is a first test type representing that the user performs a remote test, the cloud server 102 may determine an equipment type of the cloud equipment to be tested and an application program to be run and tested in a running environment of the equipment, execute a running test on the application program by using the cloud equipment of the equipment type, and finally return a test result to the client 101. The client 101 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the cloud server 102 may be implemented by an independent server or a server cluster formed by multiple servers.
In an embodiment, as shown in fig. 2, a method for testing a cloud device is provided, which is described by taking the method as an example for being applied to the cloud server 102 in fig. 1, and includes the following steps:
in step S201, the cloud server 102 responds to a test request sent by the client 101 and addressed to a cloud device connected to the cloud server 102, and determines a test type corresponding to the test request.
The test request is a test request for testing the cloud device connected to the cloud server 102 through the client 101, and may be a test request for testing the cloud device stored in the resource pool of the cloud server 102, when the user needs to test the cloud device of the cloud server 102, the communication connection between the client 101 and the cloud server 102 may be established in a manner of logging in the client 101, and then the user may upload relevant information to be tested, such as test content or cloud device information to be tested, to the cloud server 102 through the client 101 to trigger the test request. The cloud server 102 may then determine, from the obtained test request, a test type of the cloud device test that the user needs to perform, where the test type may include a test type of performing a remote test on the cloud device and a test type of directly performing an entity test on the obtained entity cloud device.
In step S202, if the test type is a first test type for performing a remote test on the cloud end device, the cloud end server 102 obtains a device type corresponding to the test request and an application to be tested corresponding to the test request.
The device type refers to a device type of a cloud device connected to the cloud server 102, the cloud device connected to the cloud server 102 may be composed of devices of different device types, for example, cloud devices of different machine models and cloud devices of different operating systems may be included, and the application to be tested refers to an application program that needs to be tested on the cloud device. Specifically, when a user initiates a test request that requires a remote test on the cloud device, the device type of the cloud device to be tested needs to be specified, and an application program for performing a test on the cloud device needs to be sent to the cloud server 102 together with the test request. When determining that the test request initiated by the user is to perform remote test on the cloud device, the cloud server 102 may simultaneously determine the device type of the cloud device that the user indicates to perform the test, as the device type corresponding to the test request, and read the application program uploaded together with the test request, as the application to be tested corresponding to the test request.
In step S203, the cloud server 102 determines a testing device from the cloud devices according to the device type, performs an operation test on the application to be tested by using an operation environment of the testing device, and returns a test result of the application to be tested to the client 101.
Finally, the cloud server 102 may determine, based on the device type obtained in step S202, a cloud device matching the device type from the multiple types of cloud devices, and use the cloud device as a test device for testing, install the application to be tested in the test device, and perform an operation test on the application to be tested through an operation environment of the test device, for example, an automatic operation test may be performed on the application to be tested through a preset automatic test tool such as Monkey, and after the test is completed, the cloud server 102 may return the obtained automatic test result to the client 101 for display, for example, the test result may be displayed in the form of a test report.
In the above method for testing the cloud device, the cloud server 102 responds to a test request sent by the client 101 and addressed to the cloud device connected to the cloud server 102, and determines a test type corresponding to the test request; if the test type is a first test type for remotely testing the cloud equipment, acquiring the equipment type corresponding to the test request and the application to be tested corresponding to the test request; determining test equipment from the cloud equipment according to the equipment type, performing operation test on the application to be tested by using the operation environment of the test equipment, and returning the test result of the application to be tested to the client 101. Compared with the traditional cloud equipment test method, the cloud equipment test method provided by the application has the advantages that the user does not need to input the test instruction through the client 101, the automatic test of the cloud equipment can be carried out, and the reliability of the test result of the cloud equipment can be improved.
In one embodiment, the first test type includes: a first sub-test type for performing remote test on the cloud equipment without a test script; step S203 may further include: if the test type is the first sub-test type, the cloud server 102 determines a target test mode corresponding to the test request from preset automatic test modes; wherein, automatic test mode includes: at least one of an automatic traversal test mode, a test tool test mode and a combined test mode for simultaneously performing an automatic traversal test and a test tool test; and based on the target test mode, performing operation test on the application to be tested by using the operation environment of the test equipment.
The first test type for remotely testing the cloud device may be composed of different sub-test types, for example, the first test type may include a first sub-test type that can be performed without writing an automated test script, and the first sub-test type may be implemented in a plurality of different automated test modes, for example, the first test type may be implemented in an automated traversal mode, or may be implemented in a combined test mode in which automated traversal and automated test tools are invoked, for example, the automated traversal and the automated test tools are invoked.
Specifically, if the user needs to perform an automatic test that can be achieved without passing a test script, after the application to be tested is uploaded, the type of the test that needs to be performed may be selected by the client 101, for example, the client 101 may display controls for representing different test modes on an interface, and the user may select a corresponding test mode by clicking the corresponding display control. Then, after determining that the test type corresponding to the test request triggered by the client 101 is the first sub-test type, the cloud server 102 may further determine, as a target test mode, a test mode selected by the user and required to implement the automated test, and perform an operation test on the application to be tested through the target test mode by using an operation environment of the test equipment.
In addition, the first test type may further include: a second sub-test type for performing remote test on the cloud equipment by using the test script; step S203 may further include: if the test type is the second sub-test type, the cloud server 102 acquires a test script corresponding to the test request; and based on the test script, performing operation test on the application to be tested by using the operation environment of the test equipment.
Meanwhile, the first test type may further include a second sub-test type, where the second sub-test type may be implemented in the form of a pre-written automated test script to perform remote automated testing on the cloud device, and the automated test script may be pre-written by a user and uploaded to the cloud server 102 through the client 101.
Specifically, if the user needs to perform remote testing on the cloud device through the test script, after uploading the application to be tested, the user may also upload, through the client 101, an automated test script written in advance for executing the application to be tested to the cloud server 102. Then, after determining that the test type corresponding to the test request triggered by the client 101 is the second sub-test type, the cloud server 102 may read the test script uploaded by the client 101, and perform an operation test on the application to be tested through the test script by using an operation environment of the test device.
In this embodiment, for the remote test that does not need to be implemented through the test script, the user only needs to select the corresponding target test mode, and the cloud server 102 can execute the remote test on the application to be tested by using the target test mode, so that the workload of writing the test script by the user can be reduced, and the efficiency of the remote test of the cloud device can be improved. For remote testing of the cloud device in some specific scenes or remote testing which cannot be supported in a preset automatic testing mode, the cloud server 102 also supports a technical scheme of testing through a testing script compiled by a user, so that the universality of remote testing of the cloud device can be improved.
For some cloud device tests that cannot be implemented by remote testing, for example, when the two-dimensional code scanning function of the cloud device needs to be tested, in an embodiment, as shown in fig. 3, after step S201, the method may further include:
step S301, if the test type is a second test type for performing a physical test on the cloud end device, the cloud end server 102 receives a lease request for the physical device to be tested, which is triggered by the client 101 and corresponds to the test request.
If a certain test for the cloud device cannot be implemented in a remote test manner, that is, when a user needs to obtain a physical device for physical test, the user needs to initiate a test request to the cloud server 102 through the client 101, and at the same time, needs to initiate a lease request for the physical device to be tested, that is, a lease request for the physical device to be tested, to the cloud server 102. After determining that the test request currently triggered by the client 101 is of the second test type that the user needs to perform physical test on the cloud device, the cloud server 102 may further receive a lease request for the physical device to be tested, which is triggered by the client 101, as the lease request corresponding to the test request.
Step S302, in response to the lease request, the cloud server 102 sends, to the client 101, first notification information for notifying a user corresponding to the client 101 to obtain the to-be-tested physical device from the cloud server 102.
The first notification information is used for notifying a user of the client 101 to obtain notification information of a corresponding physical device to be tested from the cloud devices stored in the resource pool of the cloud server 102, and after the cloud server 102 receives a lease request for the physical device to be tested, the cloud server can respond to the lease request and send the first notification information to the client 101, so that the user of the client 101 can obtain the physical device to be tested, which is adapted to the test request, from the cloud devices stored in the resource pool of the cloud server 102 according to the first notification information and perform physical test on the obtained physical device to be tested.
Further, the lease request can also carry lease duration for the to-be-tested physical equipment; after step S302, the method may further include: the cloud server 102 acquires the current lease time of the physical equipment to be tested; and if the current lease time reaches the lease duration, sending reminding information for reminding the user to return the to-be-tested physical equipment to the client 101.
The lease duration refers to the lease duration that the client 101 can lease the to-be-tested physical device, where the lease duration may be filled by a user when initiating a lease request through the client 101, or may be a default value preset by the client 101, when initiating a lease request, the client 101 may use the set default value as the lease duration of the to-be-tested physical device, and the current lease time refers to the time length from when the user of the client 101 starts to lease the to-be-tested physical device to the current time.
Specifically, when the client 101 receives a lease request for the physical device to be tested, which is triggered by a user, the lease time corresponding to the physical device to be tested may be obtained, and the lease request carrying the lease time is sent to the cloud server 102. Then, the cloud server 102 can also monitor the current lease time of the client 101 for the to-be-tested physical equipment in real time, and if the current lease time reaches the lease time of the to-be-tested physical equipment, that is, when the lease time of the user reaches the lease time limit value, the cloud server 102 can also send a reminding message to the client 101 so as to remind the user of the client 101 to return the to-be-tested physical equipment.
In addition, after step S301, the method may further include: if the renting state of the physical equipment to be tested is that the physical equipment to be tested is rented, the cloud server 102 returns the renting state to the client 101; responding to a subscription request of the client 101 for the to-be-tested physical device triggered based on the renting state, and sending first notification information to the client 101 when the to-be-tested physical device is returned.
If the physical device to be tested, which is requested to be rented, is rented by users of other clients, that is, the renting state of the physical device to be tested is that the physical device to be tested is rented, the cloud server 102 can also return the renting state of the physical device to be tested to the client 101 in the form of notification information, so that the client 101 can display the notification information. When receiving the notification information that the physical device to be tested is rented, the user of the client 101 can further trigger a reservation request for the rented physical device to be tested through the client 101 and return to the cloud server 102, the cloud server 102 can respond to the reservation request, and when the physical device to be tested is returned, the user of the client 101 can be notified to receive first notification information of the physical device to be tested and send the first notification information to the client 101.
In this embodiment, for the cloud device test that cannot be realized through the remote test, the user may also obtain the physical device to be tested from the resource pool of the cloud server 102 in a manner of triggering the lease request, so as to realize the physical test of the cloud device. Meanwhile, the cloud server 102 can also remind the user to return the to-be-tested physical device on time by reading that the current renting time of the to-be-tested physical device reaches the renting time, and when the to-be-tested physical device is rented, the user can also make an appointment with the to-be-tested physical device, and the cloud server 102 informs the user to get the to-be-tested physical device when the device is returned, so that the cloud device standard management can be realized.
In addition, if there is no physical device to be tested that the user needs to rent in the cloud device to which the cloud server 102 establishes the connection in advance, the cloud server 102 may also purchase the physical device to be tested that the user needs to rent, in an embodiment, as shown in fig. 4, after step S301, the method may further include:
step S401, if the cloud server 102 detects that no real object device to be tested exists in the cloud device, returning second notification information to the client 101; the second notification information is used for notifying the user that no real object device to be tested exists in the cloud device.
If the cloud server 102 detects that the cloud device connected to the cloud server does not have the physical device to be tested, that is, the physical device to be tested may not exist in the resource pool of the cloud server 102, the cloud server 102 may further return second notification information for notifying the user of the client 101 that the physical device to be tested does not exist in the cloud device to the client 101.
Step S402, the cloud server 102 responds to the purchase request of the physical device to be tested, triggered by the client 101 based on the second notification information, sends the purchase request to the approval terminal, and obtains an approval result of the purchase request from the approval terminal.
The purchase request is a purchase request triggered by a user of the client 101 and used for purchasing a physical device to be tested, the approval terminal is a terminal held by an approver who approves whether the purchase of the physical device to be tested is permitted, the approver can approve the purchase request sent by the cloud server 102, and the cloud server 102 performs the purchase of the physical device to be tested only after the approval is passed.
Specifically, after receiving the second notification information that the physical device to be tested does not exist in the cloud device returned by the cloud server 102, the user may initiate a purchase request for the physical device to be tested through the client 101, and send the purchase request to the cloud server 102. The cloud server 102 may respond to the purchase request, send the request to an approval terminal of an approver, and read an approval result of the purchase request from the approval terminal after approval by the approver is completed.
Step S403, if the approval result is that the approval is passed, the cloud server 102 purchases the to-be-tested physical device, and after the purchase is completed, sends third notification information for notifying the user to receive the purchased to-be-tested physical device to the client 101.
Finally, if the approval result obtained by the cloud server 102 for the purchase request of the physical device to be tested is that the approval is passed, the physical device to be tested may be purchased, where the purchasing may be performed according to a variety of purchasing rules, for example, the purchasing may include: the method is characterized in that purchasing is carried out through a credible second-hand trading platform, new machine purchasing is carried out on hot or typical machine types through private idle integrity recovery in a company, other machine types can be purchased through a second-hand channel preferentially, machine types with the smallest storage capacity or cold colors are purchased for machine types of the same type, and meanwhile, other accessories except a host machine are used as low as possible. After the purchase is completed, the cloud server 102 may return third notification information to the client 101 to notify the user of the client 101 to receive the purchased physical device to be tested.
Further, after step S403, the method may further include: the cloud server 102 acquires the use frequency of purchased physical equipment to be tested; and if the using frequency is less than the preset frequency threshold value, recovering the purchased physical equipment to be tested.
Meanwhile, the cloud server 102 may also count the use frequency of the purchased physical device to be tested on the hand of the user, and if the use frequency is lower than a preset frequency threshold, for example, under a situation that the user may not return after completing the device test, the cloud server 102 may also recycle the purchased physical device to be tested and store the recycled physical device to the resource pool.
In the above embodiment, if there is no real object device to be tested in the cloud device connected to cloud server 102, the user may initiate a purchase request to the real object device to be tested, cloud server 102 may respond to the purchase request, and after approval is passed through the approval terminal, purchase of the real object device to be tested may be performed, smooth implementation of the real object test may be ensured, and when the use frequency of the purchased real object device to be tested is low, the real object device to be tested may be recovered, so that the purchased real object device to be tested may be rented by other users, thereby ensuring the circulation of the real object device to be tested.
In an embodiment, as shown in fig. 5, a method for testing a cloud device is further provided, which is described by taking the method as an example applied to the cloud server 102 in fig. 1, and includes the following steps:
step S501, the cloud server 102 responds to a test request sent by the client 101 and aiming at the cloud equipment connected with the cloud server 102, and determines a test type corresponding to the test request;
step S502, if the test type is a first sub-test type without the need of a test script for remotely testing the cloud end equipment, the cloud end server 102 acquires the equipment type corresponding to the test request and the application to be tested corresponding to the test request, and determines a target test mode corresponding to the test request from the preset automatic test modes;
step S503, the cloud server 102 performs operation test on the application to be tested by using the operation environment of the test equipment based on the target test mode, and returns the test result of the application to be tested to the client 101;
step S504, if the test type is a second sub-test type for remotely testing the cloud equipment by using the test script, the cloud server 102 acquires the test script corresponding to the test request;
step S505, the cloud server 102 performs operation test on the application to be tested by using the operation environment of the test equipment based on the test script;
step S506, if the test type is a second test type for performing physical test on the cloud end equipment, the cloud end server 102 receives a lease request for the physical equipment to be tested, which corresponds to the test request, and is triggered by the client 101; the renting request carries the renting time aiming at the to-be-tested physical equipment;
step S507, in response to the lease request, the cloud server 102 sends first notification information for notifying a user corresponding to the client 101 of acquiring the to-be-tested physical device from the cloud server 102 to the client 101;
step S508, the cloud server 102 obtains the current lease time of the physical device to be tested; and if the current lease time reaches the lease duration, sending reminding information for reminding the user to return the to-be-tested physical equipment to the client 101.
In the above embodiment, the user does not need to input the test instruction through the client, and then the automatic test of the cloud device can be performed, so that the reliability of the test result of the cloud device can be improved, and for the remote test which does not need to be realized through the test script, the user only needs to select the corresponding target test mode, and the cloud server 102 can execute the remote test on the application to be tested by using the target test mode, so that the workload of writing the test script by the user can be reduced, and the efficiency of the remote test of the cloud device is improved. For remote testing of cloud equipment in certain specific scenes or remote testing which cannot be supported in a preset automatic testing mode, the cloud server 102 also supports a technical scheme of testing through a testing script compiled by a user, so that the universality of the remote testing of the cloud equipment can be improved. Meanwhile, for the cloud equipment test which cannot be realized through the remote test, the user can also obtain the physical equipment to be tested from the resource pool of the cloud server 102 in a manner of triggering the renting request, so that the physical test of the cloud equipment can be realized. Meanwhile, the cloud server 102 can also remind the user to return the to-be-tested physical device on time by reading that the current lease time of the to-be-tested physical device reaches the lease time.
In an application example, a management method of a mobile device is further provided, which is used for solving the problems that a user performs batch test of a mobile APP, tests a mobile phone without the user, has part of mobile phones but does not have a required model, or needs to verify multiple models in a short time in batch but test manpower is insufficient, and the like, and adopts the following technical measures:
1. the cloud reality machine is used on line. Preferentially using a scientific and technical self-built cloud real-machine platform to find the required mobile phone, performing remote debugging and remotely operating cloud equipment
1) The scientific and technological self-building cloud real machine platform belongs to a shared resource pool and supports remote online debugging;
2) Safe and free, and no repeated purchase is needed;
the use process comprises the following steps:
applying for the authority of the cloud real machine platform → logging in the cloud real machine platform → clicking 'online use' → test completion, and quitting the equipment.
2. And (4) carrying out automatic testing. When the test manpower is not enough and need test APP in the short time when having the compatibility problem, can use the real quick-witted platform of cloud to carry out compatibility test in batches, can select 2 kinds of modes to realize automatic compatibility test: the automatic test without writing script and the automatic test with appointed test range:
1) The method supports automatic compatibility test without a test script, only needs to upload an application package, selects tested equipment, test duration, submits test, supports automatic traversal and monkey, and can be shown in FIG. 6;
2) Supporting the automated compatibility test of a specific scene: an automatic script starting instruction is initiated from the automatic testing platform, a designated cloud real machine is called to realize the automatic testing of the mobile terminal, and the automatic compatibility testing process of a specific scene can be shown in fig. 7.
3. And (4) renting the equipment. When some test items can not be realized in a remote mode, for example, when two-dimensional code scanning operation is carried out, physical equipment needs to be taken at the moment, and then the test items can be
1) Clicking to rent and submitting rent duration on a cloud real machine platform
2) When the required mobile phone is used, online reservation can be carried out; rentable when a device is restored to a usable state
3) When the lease time expires, a message prompt is received to remind the user to return
4. And (5) purchasing the equipment. When the cloud real machine lacks some devices, a purchase application can be proposed on line, the purchase and use process is as shown in fig. 8, the purchase reason needs to be filled in during purchase, the purchase process is automatically initiated by auditing, and the following rules need to be followed during purchase: a. new machine + second hand hybrid purchase, including: purchasing through a credible second-hand idle transaction platform, recovering private idle integrity in a company, purchasing a new machine for a typical annual popular machine type, and uniformly and preferentially purchasing other machines from a second-hand channel; b. minimizing purchases, including: the storage capacity is selected to be the smallest, the same model is selected to be not hot (if the color is cold and has price advantage), and the parts except the host can be saved. After the goods are purchased, the user returns to the cloud real-time platform again, and the user can use the cloud real-time platform on line or rent physical equipment in the same way.
In the above-mentioned application example, through the real quick-witted platform of cloud, realize resource sharing, improve mobile device resource utilization, reduce the repeated purchase, secondly, the real quick-witted platform of cloud lives the mobile device, lets the mobile device no longer confine the inside flow of little team, realizes flowing in the company, can also the quick response simultaneously, satisfies urgent demand, batch demand, improves team development efficiency to the real machine of cloud supports automatic test, further improved resource utilization, improved efficiency of software testing, reduces the human input.
It should be understood that although the various steps in the flow diagrams of fig. 2-8 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-8 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 9, there is provided a cloud device testing apparatus, including: a request response module 901, an application acquisition module 902 and a remote test module 903, wherein:
a request response module 901, configured to determine, in response to a test request sent by a client and directed to a cloud device connected to a cloud server, a test type corresponding to the test request;
an application obtaining module 902, configured to obtain, if the test type is a first test type for performing a remote test on the cloud device, a device type corresponding to the test request and a to-be-tested application corresponding to the test request;
the remote testing module 903 is configured to determine a testing device from the cloud device according to the device type, perform an operation test on the application to be tested by using an operation environment of the testing device, and return a test result of the application to be tested to the client.
In one embodiment, the first test type includes: the first sub-test type is used for remotely testing the cloud equipment without a test script; the remote test module 903 is further configured to determine, if the test type is the first subtest type, a target test mode corresponding to the test request from preset automatic test modes; wherein, the automatic test mode includes: automatically traversing at least one of a test mode, a test tool test mode and a combined test mode for simultaneously performing automatic traversal test and test tool test; and based on the target test mode, performing operation test on the application to be tested by using the operation environment of the test equipment.
In one embodiment, the first test type includes: a second sub-test type for performing remote test on the cloud device by using the test script; the remote test module 903 is further configured to obtain a test script corresponding to the test request if the test type is the second subtest type; and based on the test script, performing operation test on the application to be tested by using the operation environment of the test equipment.
In one embodiment, the cloud device testing apparatus further includes: the physical test module is used for receiving a lease request which is triggered by the client and aims at the physical equipment to be tested and corresponds to the test request if the test type is a second test type for physically testing the cloud equipment; responding to the renting request, and sending first notification information for notifying a user corresponding to the client to acquire the to-be-tested physical equipment from the cloud server to the client.
In one embodiment, the lease request carries a lease duration for the physical device to be tested; the physical testing module is also used for acquiring the current renting time of the physical equipment to be tested; and if the current lease time reaches the lease duration, sending reminding information for reminding a user to return the to-be-tested physical equipment to the client.
In one embodiment, the physical test module is further configured to return the rental state to the client if the rental state of the physical device to be tested is that the physical device to be tested is rented; responding to a reservation request of the client terminal triggered based on the renting state and aiming at the to-be-tested physical equipment, and sending first notification information to the client terminal when the to-be-tested physical equipment is returned.
In one embodiment, the cloud device testing apparatus further includes: the equipment purchasing module is used for returning second notification information to the client side if the fact that the real object equipment to be tested does not exist in the cloud equipment is detected; the second notification information is used for notifying the user that no real object device to be tested exists in the cloud device; responding to a purchase request of the to-be-tested physical equipment triggered by the client based on the second notification information, sending the purchase request to an approval terminal, and acquiring an approval result of the purchase request from the approval terminal; and if the approval result is that the approval is passed, purchasing the to-be-tested physical equipment, and after the purchase is completed, sending third notification information for notifying a user to receive the purchased to-be-tested physical equipment to the client.
In one embodiment, the equipment purchasing module is further used for acquiring the use frequency of purchased physical equipment to be tested; and if the using frequency is less than the preset frequency threshold value, recovering the purchased physical equipment to be tested.
For specific limitations of the cloud device testing apparatus, reference may be made to the above limitations of the cloud device testing method, which is not described herein again. All modules in the cloud equipment testing device can be completely or partially realized through software, hardware and a combination of the software and the hardware. Each module can be embedded in a hardware form or be independent of a processor in the cloud server, and can also be stored in a memory in the cloud server in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a cloud server is provided, which may be a server, and the internal structure thereof may be as shown in fig. 10. The cloud server comprises a processor, a memory and a network interface which are connected through a system bus. The processor of the cloud server is used for providing computing and control capacity. The memory of the cloud server comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The database of the cloud server is used for storing cloud equipment data. The network interface of the cloud server is used for being connected and communicated with an external terminal through a network. The computer program is executed by a processor to realize a cloud device testing method.
Those skilled in the art will appreciate that the structure shown in fig. 10 is only a block diagram of a part of the structure related to the present application, and does not constitute a limitation on the cloud server to which the present application is applied, and a specific cloud server may include more or less components than those shown in the figure, or combine some components, or have a different arrangement of components.
In an embodiment, there is further provided a cloud server including a memory and a processor, where the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (11)

1. A cloud device testing method is applied to a cloud server, and comprises the following steps:
responding to a test request which is sent by a client and aims at cloud equipment connected with the cloud server, and determining a test type corresponding to the test request;
if the test type is a first test type for remotely testing the cloud equipment, acquiring an equipment type corresponding to the test request and an application to be tested corresponding to the test request;
determining test equipment from the cloud equipment according to the equipment type, performing operation test on the application to be tested by using the operation environment of the test equipment, and returning the test result of the application to be tested to the client.
2. The method of claim 1, wherein the first test type comprises: a first sub-test type for performing remote test on the cloud equipment without a test script;
the operation test of the application to be tested by using the operation environment of the test equipment comprises the following steps:
if the test type is the first sub-test type, determining a target test mode corresponding to the test request from preset automatic test modes; wherein, the automatic test mode comprises: automatically traversing at least one of a test mode, a test tool test mode and a combined test mode for simultaneously performing automatic traversal test and test tool test;
and based on the target test mode, performing operation test on the application to be tested by using the operation environment of the test equipment.
3. The method of claim 2, wherein the first test type comprises: a second sub-test type for performing remote test on the cloud equipment by using the test script;
the running test of the application to be tested by using the running environment of the test equipment comprises the following steps:
if the test type is the second sub-test type, obtaining a test script corresponding to the test request;
and based on the test script, performing operation test on the application to be tested by using the operation environment of the test equipment.
4. The method of claim 1, wherein after determining the test type corresponding to the test request, further comprising:
if the test type is a second test type for performing physical test on the cloud equipment, receiving a lease request for the to-be-tested physical equipment corresponding to the test request, which is triggered by the client;
responding to the renting request, and sending first notification information for notifying a user corresponding to the client to acquire the to-be-tested physical equipment from the cloud server to the client.
5. The method according to claim 4, characterized in that the lease request carries a lease duration for the physical device to be tested;
after the sending, to the client, first notification information for notifying a user corresponding to the client to acquire the to-be-tested physical device from the cloud server, the method further includes:
acquiring the current lease time of the to-be-tested physical equipment;
and if the current lease time reaches the lease time length, sending reminding information for reminding the user to return the to-be-tested physical equipment to the client.
6. The method according to claim 4, wherein after receiving a lease request for a physical device to be tested corresponding to the test request, triggered by the client, the method further comprises:
if the renting state of the to-be-tested physical equipment is that the to-be-tested physical equipment is rented, returning the renting state to the client;
responding to a reservation request of the client terminal for the to-be-tested physical equipment triggered based on the renting state, and sending the first notification information to the client terminal when the to-be-tested physical equipment is returned.
7. The method according to any one of claims 4 to 6, wherein after receiving a lease request triggered by the client for a physical device to be tested matching the test request, the method further comprises:
if the fact that the physical device to be tested does not exist in the cloud device is detected, returning second notification information to the client; the second notification information is used for notifying the user that the physical device to be tested does not exist in the cloud device;
responding to a purchase request of the to-be-tested physical equipment triggered by the client based on the second notification information, sending the purchase request to an approval terminal, and acquiring an approval result of the purchase request from the approval terminal;
and if the approval result is that the approval is passed, purchasing the to-be-tested physical equipment, and after the purchase is finished, sending third notification information for notifying the user of receiving the purchased to-be-tested physical equipment to the client.
8. The method of claim 7, wherein after the sending the third notification information notifying the user of receiving the purchased physical object to be tested device to the client, further comprising:
acquiring the use frequency of the purchased physical equipment to be tested;
and if the use frequency is less than a preset frequency threshold value, recycling the purchased material object equipment to be tested.
9. The utility model provides a high in the clouds equipment testing arrangement, its characterized in that is applied to the high in the clouds server, the device includes:
the request response module is used for responding to a test request which is sent by a client and aims at the cloud end equipment connected with the cloud end server, and determining a test type corresponding to the test request;
the application acquisition module is used for acquiring a device type corresponding to the test request and a to-be-tested application corresponding to the test request if the test type is a first test type for remotely testing the cloud device;
and the remote testing module is used for determining testing equipment from the cloud equipment according to the equipment type, performing operation testing on the application to be tested by using the operation environment of the testing equipment, and returning the testing result of the application to be tested to the client.
10. Cloud server comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method according to any one of claims 1 to 8 when executing the computer program.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
CN202110483244.XA 2021-04-30 2021-04-30 Cloud device testing method and device, cloud server and storage medium Pending CN115269364A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110483244.XA CN115269364A (en) 2021-04-30 2021-04-30 Cloud device testing method and device, cloud server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110483244.XA CN115269364A (en) 2021-04-30 2021-04-30 Cloud device testing method and device, cloud server and storage medium

Publications (1)

Publication Number Publication Date
CN115269364A true CN115269364A (en) 2022-11-01

Family

ID=83745594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110483244.XA Pending CN115269364A (en) 2021-04-30 2021-04-30 Cloud device testing method and device, cloud server and storage medium

Country Status (1)

Country Link
CN (1) CN115269364A (en)

Similar Documents

Publication Publication Date Title
CN108763086A (en) Script method for recording, terminal and computer readable storage medium based on remote real machine
CN109344066B (en) Method, system and terminal for testing browser page
CN113593071A (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
CN105027155A (en) Unifying cloud services for online sharing
CN110674023B (en) Interface testing method and device
CN106302011B (en) Multi-terminal-based test method and terminal
CN109711124B (en) Method, apparatus, computer device and storage medium for managing mobile device
CN115269364A (en) Cloud device testing method and device, cloud server and storage medium
CN114422236B (en) Intelligent device access method and device and electronic device
CN113849356B (en) Equipment testing method and device, electronic equipment and storage medium
CN110806981B (en) Application program testing method, device, equipment and storage medium
CN111159027B (en) Automatic testing method and device, computer equipment and readable storage medium
CN113392002A (en) Test system construction method, device, equipment and storage medium
RU2595763C2 (en) Method and apparatus for managing load on basis of android browser
CN113296912A (en) Task processing method, device and system, storage medium and electronic equipment
CN106598553B (en) Information card generation method, device and system
CN110647465A (en) Test data entry method and device and computer readable storage medium
CN111124907A (en) Mobile phone game testing method and device and server
CN110727552B (en) Equipment testing method, system, electronic equipment and storage medium
CN111476545B (en) Method and device for determining key power supply end, computer equipment and storage medium
CN112463001A (en) Processing method and system for batch operation of lists
CN115599968A (en) Transaction data processing method and device, computer equipment and storage medium
CN114238462A (en) Functional interface configuration method and device, computer equipment and storage medium
CN118152477A (en) Gain data processing method, device, computer equipment, storage medium and computer program product of virtual resource
CN111611163A (en) Mobile terminal and processing method of defect document in application program thereof

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