CN105515887B - application testing method, server and system - Google Patents

application testing method, server and system Download PDF

Info

Publication number
CN105515887B
CN105515887B CN201410549466.7A CN201410549466A CN105515887B CN 105515887 B CN105515887 B CN 105515887B CN 201410549466 A CN201410549466 A CN 201410549466A CN 105515887 B CN105515887 B CN 105515887B
Authority
CN
China
Prior art keywords
application platform
server
application
login account
identity information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410549466.7A
Other languages
Chinese (zh)
Other versions
CN105515887A (en
Inventor
刘文浩
陈承
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410549466.7A priority Critical patent/CN105515887B/en
Publication of CN105515887A publication Critical patent/CN105515887A/en
Application granted granted Critical
Publication of CN105515887B publication Critical patent/CN105515887B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

the invention relates to an application test method, a server and a system, wherein the method comprises the following steps: an application platform sends a device registration request to a server, wherein the device registration request comprises a login account of the application platform on the server; the server generates an ID (identity) associated with a login account of the application platform according to the equipment registration request, and generates a two-dimensional code based on the ID; the application platform carries out an operation request for scanning the two-dimensional code; and the server associates the corresponding equipment information with the login account of the application platform according to the operation request. The invention can avoid exposing sensitive identity information to an application platform as a third party, and the subsequent access joint debugging process related to equipment identity binding can be continuously completed, thereby ensuring the integrity of the test process while ensuring the safety of data.

Description

application testing method, server and system
Technical Field
The invention relates to the technical field of internet, in particular to an application testing method, a server and a system.
Background
currently, browsers offer open capabilities to content providers (developers) and have capability access procedures related to the background and terminals. When a content provider accesses sensitive services related to personal information of a user, a service party is required to provide resources (such as a user equipment number) for testing so as to ensure the security of user business data. However, such information relates to the identity state rules of the user and is therefore not convenient to provide to external content providers.
disclosure of Invention
the embodiment of the invention provides an application testing method, a server and a system, aiming at ensuring the integrity of an application testing process and the safety of data.
The embodiment of the invention provides an application test method, which comprises the following steps:
an application platform sends a device registration request to a server, wherein the device registration request comprises a login account of the application platform on the server;
the server generates an ID (identity) associated with a login account of the application platform according to the equipment registration request, and generates a two-dimensional code based on the ID;
the application platform carries out an operation request for scanning the two-dimensional code;
And the server associates the corresponding equipment information with the login account of the application platform according to the operation request.
the embodiment of the invention also provides an application test method, which comprises the following steps:
The method comprises the steps that a server receives a device registration request sent by an application platform, wherein the device registration request comprises a login account of the application platform on the server;
Generating an ID (identity) associated with a login account of the application platform according to the equipment registration request, and generating a two-dimensional code based on the ID;
receiving an operation request for scanning the two-dimensional code by the application platform;
and associating the corresponding equipment information with the login account of the application platform according to the operation request.
an embodiment of the present invention further provides an application test server, including:
the device comprises a registration request receiving module, a registration request sending module and a registration request sending module, wherein the registration request receiving module is used for receiving a device registration request sent by an application platform, and the device registration request comprises a login account number of the application platform on a server;
The processing module is used for generating an ID (identity) associated with a login account of the application platform according to the equipment registration request and generating a two-dimensional code based on the ID;
the operation request receiving module is used for receiving an operation request for scanning the two-dimensional code by the application platform;
and the association module is used for associating the corresponding equipment information with the login account of the application platform according to the operation request.
An application test system provided in an embodiment of the present invention includes: an application platform and a server communicatively coupled to the application platform, wherein:
The server is a server as described in any one of the above;
The application platform is used for sending an equipment registration request to a server, wherein the equipment registration request comprises a login account of the application platform on the server and an operation request for scanning the two-dimensional code according to the two-dimensional code displayed by the server.
according to the application testing method, the server and the system provided by the embodiment of the invention, when an application platform (namely an external content provider) is accessed to the server for application testing, the equipment is registered in a mode of directly scanning the two-dimensional code, wherein the equipment identity information is invisible to the application platform, so that sensitive identity information can be prevented from being exposed to the application platform as a third party, and then an access joint debugging process related to equipment identity binding can be continuously completed, so that the integrity of the testing process is ensured while the safety of data is ensured.
drawings
FIG. 1 is a schematic diagram of an application test system architecture according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating interaction between a server and an application platform according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a server hardware operating environment according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart diagram of a first embodiment of a method for testing applications of the present invention;
FIG. 5 is a schematic diagram of a user interface provided by a server to an external open platform according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a two-dimensional code interface provided by a server to an external open platform according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a page successfully added by a display device of an application platform according to an embodiment of the present invention;
FIG. 8 is a schematic flow chart diagram of a second embodiment of a method for testing applications of the present invention;
FIG. 9 is a schematic flow chart diagram of a third embodiment of a method for testing applications of the present invention;
FIG. 10 is a schematic flow chart diagram of a fourth embodiment of a method for testing applications of the present invention;
FIG. 11 is a schematic flow chart diagram of a fifth embodiment of a method of applying a test of the present invention;
FIG. 12 is a schematic flow chart diagram of a sixth embodiment of a method for performing a test according to the present invention;
FIG. 13 is a functional block diagram of a first embodiment of an application test server according to the present invention;
FIG. 14 is a functional block diagram of a second embodiment of an application test server according to the present invention;
FIG. 15 is a functional block diagram of a third embodiment of an application test server according to the present invention;
fig. 16 is a functional block diagram of a fourth embodiment of the application test server according to the present invention.
In order to make the technical solution of the present invention clearer and clearer, the following detailed description is made with reference to the accompanying drawings.
Detailed Description
it should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
the main solution of the embodiment of the invention is as follows: when an application platform (namely an external content provider) accesses a server to perform application testing, the equipment is registered in a mode of directly scanning the two-dimensional code, wherein the equipment identity information is invisible to the application platform, so that the exposure of sensitive identity information to the application platform as a third party can be avoided, and the subsequent access joint debugging process related to equipment identity binding can be continuously completed, thereby ensuring the integrity of the testing process while ensuring the safety of data.
As shown in fig. 1, fig. 1 is a schematic diagram illustrating an architecture of an application test system according to an embodiment of the present invention. As shown in fig. 1, an application test system according to an embodiment of the present invention includes: an application platform 102 and a server 101 communicatively connected to the application platform 102, wherein:
the application platform 102 is used as an operation platform of a content provider, and may be carried on a network terminal, where the network terminal may be a mobile terminal device having a display function, such as a smart phone, a tablet computer, an electronic book reader, an MP3(Moving Picture Experts Group Audio Layer III, motion Picture Experts compression standard Audio Layer) player, an MP4(Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer) player, a portable computer, or a PC network terminal, and this embodiment is exemplified by a mobile terminal. On the mobile terminal, the application platform 102 accesses the network through a browser portal and communicates with the server 101.
the server 101 may be a network terminal such as a PC, and the server 101 has a front-end open platform and a back-end server.
since the content provider as the third-party application platform 102 needs the service provider to provide resources (such as the user equipment number) for testing when accessing sensitive services related to personal information of the user, so as to ensure the security of the user business data, such information is related to the identity state rule of the user, and therefore, is inconvenient to provide to the external content provider. According to the scheme, sensitive identity information can be prevented from being exposed to the application platform 102 serving as a third party, and the subsequent access joint debugging process related to equipment identity binding can be continuously completed, so that the integrity of the test process is ensured while the safety of data is ensured.
Specifically, the flow of the interaction between the server 101 and the application platform 102 in this embodiment is shown in fig. 2.
first, when the application platform 102 performs an application test, it is necessary to register a test device used by the application platform 102 itself with the server 101, and thereby transmit a device registration request to the server 101.
the device registration request carries a login account of the application platform 102 on the server 101, and the login account may be, for example, an instant messaging account (e.g., a QQ number), a microblog account, a community account, and other various application accounts.
As described above, the server 101 is provided with an external open platform, and the application platform 102 performs account registration through the external open platform and logs in the server 101 from the external open platform according to the registered login account.
when the application test is performed, the application platform 102 sends the login account carried in the device registration request to the server 101.
For example, a user operation interface is provided on an open platform of the server 101, and an add device option is set on the user operation interface, as shown in fig. 5, a user may click the add device option to trigger the device registration request.
After receiving the device registration request sent by the application platform 102, the server 101 first generates an ID associated with the login account of the application platform 102 at random through the background server, where the ID is a one-time-use ID, that is, the ID is a one-time-use ID, and the ID is invalid after the device registration is successful.
After randomly generating an ID associated with the login account of the application platform 102, the server 101 generates a URL based on the ID to form a two-dimensional code, which is scanned by the application platform 102, as shown in fig. 6.
The URL corresponding to the two-dimensional code is exemplified as follows:
http:// openn. html5.qq. com/ajax? action addDevice & appId user submitted content ID & userld user QQ number & qrId user device matching number.
The application platform 102 scans the two-dimensional code with the ID attribute provided by the server 101, triggers an http operation request, and the server 101 parses the operation request, obtains an ID from a http operation request header, finds a login account of the application platform 102 associated with the ID by the ID, associates corresponding device information with the login account of the application platform 102, and completes device registration and addition, so as to facilitate subsequent test joint debugging operations, without exposing the device information to the application platform 102 as a third party, i.e., an external content provider.
the device information may include, for example, a device number or other device identification, a user account, and the like, and this embodiment is represented by a GUID, and the structure of which may be shown in table 1:
TABLE 1
The process of associating the corresponding device information with the login account of the application platform 102 by the server 101 in this embodiment may be described as follows:
Because the application access side adopts the SDK of the browser or directly develops the SDK in the browser frame, at this time, the SDK or the browser acquires the device identity information, called GUID, held by the application platform 102, and reports the device identity information to the remote browser background server, called the server 101 background server in this embodiment, when the browser is connected for the first time.
When a developer scans the two-dimensional code, the application is in an open state. The application platform 102 holds the device in a long connection state with the server 101 background. After the application platform 102 scans the two-dimensional code, the front-end open platform of the server 101 acquires the ID carried by the scanning operation request, informs the server 101 of the ID and the device identity information GUID held by the application platform 102 together, and performs device matching, and at this time, the server 101 can acquire the device identity information corresponding to the ID. In addition, the server 101 background server finds the login account of the application platform 102 associated with the ID through the ID, and associates and matches the corresponding device identity information with the login account of the application platform 102, so that the corresponding device identity information can be associated and matched with the login account of the application platform 102 through the randomly generated ID.
after the association is successful, the server 101 invalidates the ID. Meanwhile, the server 101 returns an association success message to the application platform 102, and as shown in fig. 7, the application platform 102 displays a device addition success page.
Through the above scheme, when the application platform 102 (i.e., an external content provider) accesses the server 101 for application testing, the device is registered in a manner of directly scanning the two-dimensional code, wherein the device identity information is invisible to the application platform 102, so that exposure of sensitive identity information to the application platform 102 as a third party can be avoided, and the subsequent access joint debugging process related to device identity binding can be continuously completed, thereby ensuring the integrity of the testing process while ensuring the security of data.
further, after the server 101 successfully associates the corresponding device information with the login account of the application platform 102, the server 101 matches the corresponding service resource for the application platform 102 to perform the application test access joint debugging operation according to the login account of the application platform 102 and the corresponding device information, and therefore the application platform 102 can call the service resource provided by the server 101 to perform the application test access joint debugging operation, and the integrity of the test flow is guaranteed while the security of data is guaranteed.
the specific application scenarios are as follows:
if an application content provider, in order to push the application of weather information, a service provider is required to provide resources (such as a user equipment number) to test the application when accessing a browser, wherein the sensitive services relate to personal information of a user, so as to ensure the security of user business data. In order to avoid the exposure of the equipment identity information, the server 101 generates a two-dimensional code with an ID attribute according to an operation request of the application platform 102, the application platform 102 completes the registration of the used equipment by scanning the two-dimensional code, then, the server 101 provides a corresponding service resource, and the application platform 102 calls the service resource provided by the server 101 to perform an application test access joint debugging operation, thereby completing an application test.
Through the above scheme, when the application platform 102 (i.e., an external content provider) accesses the server 101 for application testing, the device is registered in a manner of directly scanning the two-dimensional code, wherein the device identity information is invisible to the application platform 102, so that exposure of sensitive identity information to the application platform 102 as a third party can be avoided, and the subsequent access joint debugging process related to device identity binding can be continuously completed, thereby ensuring the integrity of the testing process while ensuring the security of data.
further, after the association is successful, the server 101 registers a successful page in the external open platform display device, so that the maintenance personnel can perform corresponding maintenance operations.
As shown in fig. 3, fig. 3 is a schematic diagram of a server hardware operating environment according to an embodiment of the present invention.
As shown in fig. 3, the server may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. The communication bus 1002 is used for realizing connection communication among these components of the server. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and may be used for the backend maintenance personnel to perform related input operations, and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the server may further include a camera, RF (Radio Frequency) circuitry, sensors, audio circuitry, a WiFi module, and the like.
Those skilled in the art will appreciate that the server architecture shown in FIG. 3 is not meant to be limiting, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 3, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an application test program.
in the server shown in fig. 3, the network interface 1004 is mainly used for connecting to an application platform and performing data communication with the application platform; the user interface 1003 is mainly used for connecting a background maintenance client and performing data communication with the client; and the processor 1001 may be configured to call the application test program stored in the memory 1005 and perform the following operations:
receiving a device registration request sent by an application platform, wherein the device registration request comprises a login account of the application platform on a server;
generating an ID (identity) associated with a login account of the application platform according to the equipment registration request, and generating a two-dimensional code based on the ID;
Receiving an operation request for scanning the two-dimensional code by the application platform;
And associating the corresponding equipment information with the login account of the application platform according to the operation request.
Further, the processor 1001 may call the application test program stored in the memory 1005, and also perform the following operations:
Analyzing the operation request and obtaining the ID from the operation request;
And acquiring a login account of the application platform associated with the ID according to the ID, and associating the corresponding equipment information with the login account of the application platform.
further, the processor 1001 may call the application test program stored in the memory 1005, and also perform the following operations:
And after the association is successful, invalidating the ID.
Further, the processor 1001 may call the application test program stored in the memory 1005, and also perform the following operations:
and after the association is successful, returning an association success message to the application platform.
further, the processor 1001 may call the application test program stored in the memory 1005, and also perform the following operations:
And after the association is successful, matching corresponding service resources according to the login account number of the application platform and the corresponding equipment information to carry out application test access joint debugging operation on the application platform.
further, the processor 1001 may call the application test program stored in the memory 1005, and also perform the following operations:
And after the association is successful, the server displays a successful page registered by the equipment on the external open platform.
According to the embodiment, through the scheme, when the application platform (namely, an external content provider) is accessed to the server for application test, the equipment is registered in a mode of directly scanning the two-dimensional code, wherein the equipment identity information is invisible to the application platform, so that sensitive identity information can be prevented from being exposed to the application platform as a third party, and the subsequent access joint debugging process related to equipment identity binding can be continuously completed, so that the integrity of the test process is ensured while the safety of data is ensured.
Based on the system architecture and the hardware structure, the embodiment of the application test method is provided.
As shown in fig. 4, a first embodiment of the present invention provides an application testing method, including:
Step S201, an application platform sends an equipment registration request to a server, wherein the equipment registration request comprises a login account of the application platform on the server;
Since a content provider as a third-party application platform needs a service provider to provide resources (such as a user equipment number) for testing when accessing sensitive services related to personal information of a user, so as to ensure the security of user business data, such information is related to the identity state rule of the user, and thus is inconvenient to provide to an external content provider. According to the scheme, sensitive identity information can be prevented from being exposed to an application platform serving as a third party, and the subsequent access joint debugging process related to equipment identity binding can be continuously completed, so that the integrity of the test process is guaranteed while the safety of data is guaranteed.
specifically, when the application platform performs an application test, first, a test device used by the application platform itself needs to be registered with the server, and thus, a device registration request is sent to the server.
the device registration request carries a login account of the application platform on the server, and the login account can be, for example, an instant messaging account (such as a QQ number), a microblog account, a community account, and other various application accounts.
As described above, the server is provided with an external open platform, and the application platform performs account registration through the external open platform and logs in the server from the external open platform according to the registered login account.
When the application test is carried out, the application platform carries the login account number in the equipment registration request and sends the login account number to the server.
For example, a user operation interface is provided on an externally open platform of the server, and an add device option is set on the user operation interface, as shown in fig. 5, a user may click the add device option to trigger the device registration request.
Step S202, the server generates an ID associated with a login account of the application platform according to the equipment registration request, and generates a two-dimensional code based on the ID;
after receiving a device registration request sent by an application platform, a server first generates an ID associated with a login account of the application platform at random through a background server, wherein the ID is disposable, and the ID can be invalid after the device registration is successful.
After randomly generating an ID associated with the login account of the application platform, the server generates a URL based on the ID to form a two-dimensional code, which is scanned by the application platform, as shown in fig. 6.
The URL corresponding to the two-dimensional code is exemplified as follows:
http:// openn. html5.qq. com/ajax? action addDevice & appId user submitted content ID & userld user QQ number & qrId user device matching number.
step S203, the application platform carries out an operation request for scanning the two-dimensional code;
and step S204, the server associates the corresponding equipment information with the login account of the application platform according to the operation request.
The application platform scans the two-dimensional code with the ID attribute provided by the server, an http operation request is triggered, the server analyzes the operation request, an ID is obtained from an http operation request header, a login account of the application platform associated with the ID is found through the ID, corresponding equipment information is associated with the login account of the application platform, equipment registration and addition are completed, subsequent test joint debugging operation is facilitated, and the equipment information cannot be exposed to the application platform serving as a third party, namely an external content provider.
The device information may include, for example, a device number or other device identification, a user account, and the like, and this embodiment is represented by a GUID, and the structure of which may be shown in table 1: .
The process of associating the corresponding device information with the login account of the application platform by the server in this embodiment may be described as follows:
because the application access side adopts the SDK of the browser or directly develops under the browser frame, at this time, the SDK or the browser acquires the identity information of the device held by the application platform, which is called GUID, and reports the GUID to the remote background server of the browser, which is called server background server in this embodiment, when the browser is connected for the first time.
When a developer scans the two-dimensional code, the application is in an open state. The application platform holding device and the server background are in a long connection state. The server front-end open platform acquires the ID carried by the scanning operation request after the application platform scans the two-dimensional code, informs the server background server of the ID and the equipment identity information GUID held by the application platform, and performs equipment matching, so that the server can acquire the equipment identity information corresponding to the ID. In addition, the server background server side finds the login account number of the application platform associated with the ID through the ID, and associates and matches the corresponding equipment identity information with the login account number of the application platform, so that the corresponding equipment identity information can be associated and matched with the login account number of the application platform through the randomly generated ID.
after the association is successful, the server invalidates the ID. Meanwhile, the server returns an association success message to the application platform, and as shown in fig. 7, the application platform displays a successful page added by the device.
According to the embodiment, through the scheme, when the application platform (namely, an external content provider) is accessed to the server for application test, the equipment is registered in a mode of directly scanning the two-dimensional code, wherein the equipment identity information is invisible to the application platform, so that sensitive identity information can be prevented from being exposed to the application platform as a third party, and the subsequent access joint debugging process related to equipment identity binding can be continuously completed, so that the integrity of the test process is ensured while the safety of data is ensured.
As shown in fig. 8, a second embodiment of the present invention provides an application testing method, which, based on the first embodiment shown in fig. 4, further includes:
step S205, after the association is successful, the server matches the corresponding service resources for the application platform to perform application test access joint debugging operation according to the login account number of the application platform and the corresponding device information;
step S206, the application platform calls the service resources provided by the server to perform the application test access joint debugging operation.
after the server successfully associates the corresponding device information with the login account of the application platform, the server matches the corresponding service resources according to the login account of the application platform and the corresponding device information to provide the application platform for performing application test access joint debugging operation, so that the application platform can call the service resources provided by the server to perform application test access joint debugging operation, and the integrity of a test flow is ensured while the safety of data is ensured.
the specific application scenarios are as follows:
if an application content provider, in order to push the application of weather information, a service provider is required to provide resources (such as a user equipment number) to test the application when accessing a browser, wherein the sensitive services relate to personal information of a user, so as to ensure the security of user business data. In order to avoid the exposure of equipment identity information, a server generates a two-dimensional code with an ID attribute according to an operation request of an application platform, the application platform finishes the registration of used equipment by scanning the two-dimensional code, then the server provides corresponding service resources, and the application platform calls the service resources provided by the server to perform application test access joint debugging operation to finish application testing.
according to the embodiment, through the scheme, when the application platform (namely, an external content provider) is accessed to the server for application test, the equipment is registered in a mode of directly scanning the two-dimensional code, wherein the equipment identity information is invisible to the application platform, so that sensitive identity information can be prevented from being exposed to the application platform as a third party, and the subsequent access joint debugging process related to equipment identity binding can be continuously completed, so that the integrity of the test process is ensured while the safety of data is ensured.
As shown in fig. 9, a third embodiment of the present invention provides an application testing method, which, based on the first embodiment shown in fig. 4, further includes:
Step S207, after the association is successful, the server registers a successful page in the external open platform display device.
And after the association is successful, the server registers a successful page on the external open platform display equipment so that maintenance personnel can perform corresponding maintenance operation.
As shown in fig. 10, a fourth embodiment of the present invention provides an application testing method, including:
step S301, a server receives an equipment registration request sent by an application platform, wherein the equipment registration request comprises a login account of the application platform on the server;
Step S302, according to the device registration request, generating an ID associated with a login account of the application platform, and generating a two-dimensional code based on the ID;
Step S303, receiving an operation request for scanning the two-dimensional code by the application platform;
And step S304, associating the corresponding device information with the login account of the application platform according to the operation request.
As shown in fig. 11, a fifth embodiment of the present invention provides an application testing method, which further includes, on the basis of the embodiment shown in fig. 10:
Step S305, after the association is successful, the server matches the corresponding service resources according to the login account number of the application platform and the corresponding device information, and the application platform performs application test access joint debugging operation.
it should be noted that the above embodiments can also be implemented in combination, and are not described herein again.
As shown in fig. 12, a sixth embodiment of the present invention provides an application testing method, which, based on the embodiment shown in fig. 10, further includes:
Step S306, after the association is successful, the server registers a successful page in the external open platform display device.
correspondingly, as shown in fig. 13, the first embodiment of the present invention further provides an application test server, including: a registration request receiving module 401, a processing module 402, an operation request receiving module 403 and an association module 404, wherein:
A registration request receiving module 401, configured to receive an apparatus registration request sent by an application platform, where the apparatus registration request includes a login account of the application platform on a server;
A processing module 402, configured to generate an ID associated with a login account of the application platform according to the device registration request, and generate a two-dimensional code based on the ID;
An operation request receiving module 403, configured to receive an operation request for scanning the two-dimensional code by the application platform;
And the associating module 404 is configured to associate the corresponding device information with the login account of the application platform according to the operation request.
Since a content provider as a third-party application platform needs a service provider to provide resources (such as a user equipment number) for testing when accessing sensitive services related to personal information of a user, so as to ensure the security of user business data, such information is related to the identity state rule of the user, and thus is inconvenient to provide to an external content provider. According to the scheme, sensitive identity information can be prevented from being exposed to an application platform serving as a third party, and the subsequent access joint debugging process related to equipment identity binding can be continuously completed, so that the integrity of the test process is guaranteed while the safety of data is guaranteed.
Specifically, when the application platform performs an application test, first, a test device used by the application platform itself needs to be registered with the server, and thus, a device registration request is sent to the server.
the device registration request carries a login account of the application platform on the server, and the login account can be, for example, an instant messaging account (such as a QQ number), a microblog account, a community account, and other various application accounts.
as described above, the server is provided with an external open platform, and the application platform performs account registration through the external open platform and logs in the server from the external open platform according to the registered login account.
when the application test is carried out, the application platform carries the login account number in the equipment registration request and sends the login account number to the server.
for example, a user operation interface is provided on an externally open platform of the server, and an add device option is set on the user operation interface, as shown in fig. 5, a user may click the add device option to trigger the device registration request.
After receiving a device registration request sent by an application platform, a server first generates an ID associated with a login account of the application platform at random through a background server, wherein the ID is disposable, and the ID can be invalid after the device registration is successful.
after randomly generating an ID associated with the login account of the application platform, the server generates a URL based on the ID to form a two-dimensional code, which is scanned by the application platform, as shown in fig. 6.
the URL corresponding to the two-dimensional code is exemplified as follows:
http:// openn. html5.qq. com/ajax? action addDevice & appId user submitted content ID & userld user QQ number & qrId user device matching number.
the application platform scans the two-dimensional code with the ID attribute provided by the server, an http operation request is triggered, the server analyzes the operation request, an ID is obtained from an http operation request header, a login account of the application platform associated with the ID is found through the ID, corresponding equipment information is associated with the login account of the application platform, equipment registration and addition are completed, subsequent test joint debugging operation is facilitated, and the equipment information cannot be exposed to the application platform serving as a third party, namely an external content provider.
The device information may include, for example, a device number or other device identification, a user account, and the like, and this embodiment is represented by a GUID, and the structure of which may be as shown in table 1.
the process of associating the corresponding device information with the login account of the application platform by the server in this embodiment may be described as follows:
Because the application access side adopts the SDK of the browser or directly develops under the browser frame, at this time, the SDK or the browser acquires the identity information of the device held by the application platform, which is called GUID, and reports the GUID to the remote background server of the browser, which is called server background server in this embodiment, when the browser is connected for the first time.
When a developer scans the two-dimensional code, the application is in an open state. The application platform holding device and the server background are in a long connection state. The server front-end open platform acquires the ID carried by the scanning operation request after the application platform scans the two-dimensional code, informs the server background server of the ID and the equipment identity information GUID held by the application platform, and performs equipment matching, so that the server can acquire the equipment identity information corresponding to the ID. In addition, the server background server side finds the login account number of the application platform associated with the ID through the ID, and associates and matches the corresponding equipment identity information with the login account number of the application platform, so that the corresponding equipment identity information can be associated and matched with the login account number of the application platform through the randomly generated ID.
After the association is successful, the server invalidates the ID. Meanwhile, the server returns an association success message to the application platform, and as shown in fig. 7, the application platform displays a successful page added by the device.
According to the embodiment, through the scheme, when the application platform (namely, an external content provider) is accessed to the server for application test, the equipment is registered in a mode of directly scanning the two-dimensional code, wherein the equipment identity information is invisible to the application platform, so that sensitive identity information can be prevented from being exposed to the application platform as a third party, and the subsequent access joint debugging process related to equipment identity binding can be continuously completed, so that the integrity of the test process is ensured while the safety of data is ensured.
Further, as shown in fig. 14, a second embodiment of the present invention further provides an application test server, based on the embodiment shown in fig. 13, further including:
A disabling module 405, configured to disable the ID after the association is successful.
further, as shown in fig. 15, a third embodiment of the present invention further provides an application test server, based on the embodiment shown in fig. 13, further including:
a sending module 406, configured to return an association success message to the application platform after the association is successful.
Further, as shown in fig. 16, a fourth embodiment of the present invention further provides an application test server, based on the embodiment shown in fig. 13, further including:
And the resource matching module 407 is configured to, after the association is successful, match the corresponding service resource according to the login account of the application platform and the corresponding device information, so that the application platform performs an application test access joint debugging operation.
after the server successfully associates the corresponding device information with the login account of the application platform, the server matches the corresponding service resources according to the login account of the application platform and the corresponding device information to provide the application platform for performing application test access joint debugging operation, so that the application platform can call the service resources provided by the server to perform application test access joint debugging operation, and the integrity of a test flow is ensured while the safety of data is ensured.
the specific application scenarios are as follows:
if an application content provider, in order to push the application of weather information, a service provider is required to provide resources (such as a user equipment number) to test the application when accessing a browser, wherein the sensitive services relate to personal information of a user, so as to ensure the security of user business data. In order to avoid the exposure of equipment identity information, a server generates a two-dimensional code with an ID attribute according to an operation request of an application platform, the application platform finishes the registration of used equipment by scanning the two-dimensional code, then the server provides corresponding service resources, and the application platform calls the service resources provided by the server to perform application test access joint debugging operation to finish application testing.
According to the embodiment, through the scheme, when the application platform (namely, an external content provider) is accessed to the server for application test, the equipment is registered in a mode of directly scanning the two-dimensional code, wherein the equipment identity information is invisible to the application platform, so that sensitive identity information can be prevented from being exposed to the application platform as a third party, and the subsequent access joint debugging process related to equipment identity binding can be continuously completed, so that the integrity of the test process is ensured while the safety of data is ensured.
It should be noted that the above embodiments can also be implemented in combination, and are not described herein again.
It should also be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
the above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only for the preferred embodiment of the present invention and is not intended to limit the scope of the present invention, and all equivalent structures or flow transformations made by the present specification and drawings, or applied directly or indirectly to other related arts, are included in the scope of the present invention.

Claims (15)

1. an application testing method, comprising:
An application platform sends a device registration request to a server, wherein the device registration request comprises a login account of the application platform on the server;
The server generates an ID (identity) associated with a login account of the application platform according to the equipment registration request, and generates a two-dimensional code based on the ID;
the application platform sends an operation request by scanning the two-dimensional code, wherein the operation request is an http request to the server, and the http request comprises equipment identity information acquired by a browser adopted by the application platform or equipment identity information acquired by an SDK (secure digital link) of the browser adopted by the application platform;
and the server associates the equipment identity information with the login account of the application platform according to the operation request.
2. The method of claim 1, further comprising:
After the association is successful, the server returns an association success message to the application platform;
And the application platform displays a successful registration page of the equipment.
3. The method of claim 1 or 2, further comprising:
After the association is successful, the server matches corresponding service resources according to the login account of the application platform and the equipment identity information to allow the application platform to perform application test access joint debugging operation;
and the application platform calls the service resources provided by the server to perform application test access joint debugging operation.
4. An application testing method, comprising:
Receiving a device registration request from an application platform, wherein the device registration request comprises a login account of the application platform;
generating an ID (identity) associated with a login account of the application platform according to the equipment registration request, and generating a two-dimensional code based on the ID;
Providing the two-dimension code to the application platform;
receiving an operation request sent by scanning the two-dimensional code from the application platform, wherein the operation request is an http request to a server, and the http request comprises equipment identity information acquired by a browser adopted by the application platform or equipment identity information acquired by an SDK (secure digital Key) of the browser adopted by the application platform;
and associating the equipment identity information with a login account of the application platform according to the operation request.
5. the method of claim 4, wherein the step of associating the corresponding device identity information with the login account of the application platform according to the operation request comprises:
analyzing the operation request and obtaining the ID from the operation request;
acquiring the equipment identity information and a login account of the application platform associated with the ID according to the ID;
And associating the acquired equipment identity information with the login account.
6. the method of claim 4, wherein the ID is randomly generated;
the method further comprises the following steps:
And when the equipment identity information is successfully associated with the login account of the application platform, the ID is invalid.
7. the method of any of claims 4 to 6, further comprising:
after the corresponding equipment identity information is successfully associated with the login account of the application platform, matching corresponding service resources according to the login account of the application platform and the equipment identity information to enable the application platform to carry out application test access joint debugging operation.
8. the method of any of claims 4 to 6, further comprising:
and displaying a successful page registered by the equipment on the external open platform after the equipment identity information is successfully associated with the login account of the application platform.
9. An application test server, comprising:
The device comprises a registration request receiving module, a registration request sending module and a registration request sending module, wherein the registration request receiving module is used for receiving a device registration request sent by an application platform, and the device registration request comprises a login account number of the application platform on a server;
The processing module is used for generating an ID (identity) associated with a login account of the application platform according to the equipment registration request and generating a two-dimensional code based on the ID;
An operation request receiving module, configured to receive an operation request sent by the application platform scanning the two-dimensional code, where the operation request is an http request to the server, and the http request includes device identity information obtained by a browser used by the application platform or device identity information obtained by an SDK of the browser used by the application platform;
and the association module is used for associating the equipment identity information with the login account of the application platform according to the operation request.
10. The server according to claim 9,
the association module is further configured to parse the operation request and obtain the ID therefrom; and acquiring the equipment identity information and the login account of the application platform associated with the ID according to the ID, and associating the equipment identity information with the login account of the application platform.
11. the server of claim 9, further comprising:
And the sending module is used for returning association success information to the application platform after the association is successful.
12. the server according to any one of claims 9-11, further comprising:
and the resource matching module is used for matching corresponding service resources according to the login account of the application platform and the equipment identity information after the association is successful so as to allow the application platform to perform application test access joint debugging operation.
13. An application testing system, comprising: an application platform and a server communicatively coupled to the application platform, wherein:
the server receives a device registration request from the application platform, wherein the device registration request comprises a login account of the application platform; generating an ID (identity) associated with a login account of the application platform according to the equipment registration request, and generating a two-dimensional code based on the ID; providing the two-dimension code to the application platform; receiving an operation request sent by scanning the two-dimensional code from the application platform, wherein the operation request is an http request to the server, and the http request comprises equipment identity information acquired by a browser adopted by the application platform or equipment identity information acquired by an SDK (secure digital link) of the browser adopted by the application platform; according to the operation request, associating corresponding equipment identity information with a login account of the application platform;
The application platform is used for sending the equipment registration request to the server, wherein the equipment registration request comprises a login account of the application platform on the server, and the operation request is sent out by scanning a two-dimensional code provided by the server.
14. the system of claim 13,
The server is further used for returning association success information to the application platform after the association is successful;
and the application platform is also used for receiving the association success message returned by the server after the association is successful and displaying a device registration success page.
15. The system of claim 13,
The server is further used for matching corresponding service resources for the application platform to perform application test access joint debugging operation according to the login account of the application platform and the equipment identity information after the association is successful;
the application platform is also used for calling the service resources provided by the server and carrying out the application test access joint debugging operation.
CN201410549466.7A 2014-10-16 2014-10-16 application testing method, server and system Active CN105515887B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410549466.7A CN105515887B (en) 2014-10-16 2014-10-16 application testing method, server and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410549466.7A CN105515887B (en) 2014-10-16 2014-10-16 application testing method, server and system

Publications (2)

Publication Number Publication Date
CN105515887A CN105515887A (en) 2016-04-20
CN105515887B true CN105515887B (en) 2019-12-06

Family

ID=55723546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410549466.7A Active CN105515887B (en) 2014-10-16 2014-10-16 application testing method, server and system

Country Status (1)

Country Link
CN (1) CN105515887B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108280672A (en) * 2017-01-06 2018-07-13 北大方正集团有限公司 Media promotion method and device
CN108632089B (en) * 2018-05-07 2022-09-20 平安普惠企业管理有限公司 Management method, device and equipment of test terminal and computer storage medium
CN108768770B (en) * 2018-05-24 2021-06-29 郑州云海信息技术有限公司 Full-automatic server function detection device and detection method
CN110113305A (en) * 2019-03-25 2019-08-09 视联动力信息技术股份有限公司 A kind of processing method and system regarding networking service
CN110879779B (en) * 2019-10-18 2022-11-18 苏宁云计算有限公司 Joint debugging test method and system
WO2023245583A1 (en) * 2022-06-23 2023-12-28 北京小米移动软件有限公司 Function testing method and apparatus, electronic device, and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103338276A (en) * 2013-06-09 2013-10-02 武汉传神信息技术有限公司 Method for data transmission between network terminals
CN103841140A (en) * 2012-11-22 2014-06-04 北京百度网讯科技有限公司 Inter-terminal information mutual-transmission method, system and device
CN104092811A (en) * 2013-07-09 2014-10-08 腾讯科技(深圳)有限公司 Mobile terminal information download method, system, terminal device and server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8438383B2 (en) * 2010-04-05 2013-05-07 White Sky, Inc. User authentication system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103841140A (en) * 2012-11-22 2014-06-04 北京百度网讯科技有限公司 Inter-terminal information mutual-transmission method, system and device
CN103338276A (en) * 2013-06-09 2013-10-02 武汉传神信息技术有限公司 Method for data transmission between network terminals
CN104092811A (en) * 2013-07-09 2014-10-08 腾讯科技(深圳)有限公司 Mobile terminal information download method, system, terminal device and server

Also Published As

Publication number Publication date
CN105515887A (en) 2016-04-20

Similar Documents

Publication Publication Date Title
CN105515887B (en) application testing method, server and system
US9560617B2 (en) Wireless network access method and apparatus, terminal, and server
RU2595890C2 (en) Method and device for execution of user activity commands
CN105721462B (en) Information pushing method and device
US20170163753A1 (en) Method and apparatus for controlling play device to play video
CN105472694B (en) Method, device, terminal and storage medium for accessing WiFi through scanning two-dimensional code
US9876896B1 (en) System and method of interdicting malware infiltration as spoofed advertisement
CN111160845A (en) Service processing method and device
US20150269269A1 (en) Method and apparatus for generating a desktop shortcut
CN105122760A (en) Page operation processing method, device and terminal
US11522852B2 (en) Display system, display method, and recording medium
US11405403B2 (en) Method and device, and server and terminal for processing network resource access
US20180349580A1 (en) Information processing method and device, and electronic equipment
CN108021954B (en) Method and device for starting business process
CN108667915B (en) Information pushing system, method and device
CN106789832B (en) Data processing method, device and system in call process
WO2017166297A1 (en) Wifi hotpot portal authentication method and device
CN110704498A (en) Data extraction method, device, equipment and computer readable storage medium
CN108737350B (en) Information processing method and client
CN115243202A (en) Resource sharing method and device and electronic equipment
CN115061785A (en) Information issuing method and device, storage medium and server
CN109543398B (en) Application program account migration method and device and electronic equipment
CN107222559B (en) Information calling method
WO2015058621A1 (en) Method and apparatus of updating quick link information
CN109286931B (en) Wireless local area network access method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210917

Address after: 518057 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 floors

Patentee after: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

Patentee after: TENCENT CLOUD COMPUTING (BEIJING) Co.,Ltd.

Address before: 2, 518000, East 403 room, SEG science and Technology Park, Zhenxing Road, Shenzhen, Guangdong, Futian District

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

TR01 Transfer of patent right