CN112801551A - Test method, device, equipment and storage medium for online room selection system - Google Patents

Test method, device, equipment and storage medium for online room selection system Download PDF

Info

Publication number
CN112801551A
CN112801551A CN202110318637.5A CN202110318637A CN112801551A CN 112801551 A CN112801551 A CN 112801551A CN 202110318637 A CN202110318637 A CN 202110318637A CN 112801551 A CN112801551 A CN 112801551A
Authority
CN
China
Prior art keywords
test
user
request
house
collection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110318637.5A
Other languages
Chinese (zh)
Other versions
CN112801551B (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.)
Beijing Bodian Zhihe Technology Co ltd
Original Assignee
Beijing Jiaodian Xinganxian Information 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 Beijing Jiaodian Xinganxian Information Technology Co ltd filed Critical Beijing Jiaodian Xinganxian Information Technology Co ltd
Priority to CN202110318637.5A priority Critical patent/CN112801551B/en
Publication of CN112801551A publication Critical patent/CN112801551A/en
Application granted granted Critical
Publication of CN112801551B publication Critical patent/CN112801551B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0639Performance analysis of employees; Performance analysis of enterprise or organisation operations
    • 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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/16Real estate

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • Educational Administration (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Game Theory and Decision Science (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a test method, a device, equipment and a storage medium of an online room selection system, wherein the method comprises the steps of counting user request data of a plurality of historical opening activities of the online room selection system to obtain a counting result of each historical opening activity; determining a favorite house source list of each test user according to the statistical result of each historical opening activity; aiming at each test user, generating a request sequence of the test user by utilizing a request sequence of an active user with the collection number consistent with that of the test user and a collection house source list of the test user; and after the activity time of the test opening activity is entered, testing the on-line room selection system based on the request sequence of each test user to finish the test. According to the scheme, the request sequence of the test user is generated by utilizing the user request data and the request sequence of the historical opening activities, so that the request sequence of the test user is closer to the user behavior in a real scene, and the accuracy of the test result is improved.

Description

Test method, device, equipment and storage medium for online room selection system
Technical Field
The invention relates to the technical field of internet, in particular to a testing method, a testing device, testing equipment and a storage medium for an online room selection system.
Background
The on-line house choosing system is an emerging network platform for supporting users to browse and choose house sources on line. For an online house selection system, background personnel can establish an opening activity on the system, and add a plurality of house sources (for example, add all house sources of a building) in the opening activity as active house sources of the activity, and simultaneously, a user of the system can become an active user participating in the opening activity through an active registration mode or a mode of adding information by the background personnel.
Therefore, after the opening activity is started, the active user can enter the opening activity through the online room selection system, browse, collect (or cancel the collection) and rush purchase the active house source in the opening activity, and online room selection is realized.
In order to maintain and update the online room selection system, it is often necessary to test it to determine the load capacity of the online room selection system. The current testing method generally comprises the steps of establishing a testing opening activity for testing in a system, adding a plurality of testing users (namely, activity users participating in the testing opening activity) and testing house resources (namely, activity house resources participating in the testing opening activity), randomly generating a plurality of user requests for each testing user, finally sending the user requests to an online house-choosing system through a testing terminal, and determining the load capacity of the system through detecting the response speed of the system to the user requests.
The problem of the test method is that the randomly generated user request generally does not conform to the actual situation, so the load capacity obtained by the test method is greatly different from the actual load capacity of the online room selection system in the real online environment, and the accuracy of the test result is low.
Disclosure of Invention
In view of the problems in the prior art, the present application provides a method and an apparatus for testing an online room selection system, so as to provide a testing scheme of the online room selection system with higher accuracy.
The first aspect of the present application provides a method for testing an online room selection system, including:
counting user request data of a plurality of historical opening activities of an online house selection system to obtain a statistical result of each historical opening activity; the statistical result of the historical opening activities comprises the collection number of each activity user of the historical opening activities and the collected number of each activity house source of the historical opening activities;
determining the collection number of each test user for testing the opening activities and the collected number of each test room source for testing the opening activities according to the statistical result of each historical opening activity;
determining a favorite source list of each test user according to the favorite number of each test user and the favorite number of each test source; the test user's favorite house source list is used for designating all test house sources collected by the test user when the test opening activity is finished;
selecting an active user meeting a preset condition from the active users of the historical opening activities for each test user, and generating a request sequence of the test user according to the request sequence of the selected active user and the favorite source list of the test user; wherein, the request sequence of the user records each user request sent to the online room selection system by the user in the opening activity; the preset condition is that the collection number of the active users is consistent with the collection number of the test users;
and after the activity time of the test opening activity is entered, respectively sending the user requests recorded in the request sequence of each test user to the online room selection system, and recording the operation data of the online room selection system so as to complete the test of the online room selection system.
Optionally, the determining, according to the statistical result of each historical opening activity, the collection number of each test user of the test opening activity and the collected number of each test room source of the test opening activity includes:
generating a user number ratio list and a house source number ratio list of the historical opening activities according to the statistical result of the historical opening activities aiming at each historical opening activity; the user number proportion list is used for recording the proportion of the active users with different collection numbers in all the active users of the historical opening activities; the house source number ratio list is used for recording the ratio of the movable house sources with different collection numbers in all the movable house sources of the historical opening activities;
determining a user number ratio list of the test opening activity according to the user number ratio list of each historical opening activity, and determining a room source number ratio list of the test opening activity according to the room source number ratio list of each historical opening activity;
and determining the collection number of each test user of the test opening activity and the collected number of each test house source of the test opening activity according to the user number ratio list and the house source number ratio list of the test opening activity.
Optionally, the determining the user ratio list of the test opening activity according to the user ratio list of the historical opening activities includes:
and averaging a plurality of proportions of the same collection number in the user number proportion list of each historical opening activity to obtain the user number proportion list of the test opening activity.
Optionally, the user request includes a collection request, a collection canceling request and a first-time purchase request;
wherein, the generating the request sequence of the test user according to the request sequence of the selected active user and the favorite source list of the test user comprises:
extracting the active house source appearing in each collection request of the selected active user request sequence to obtain a first house source set, and extracting each active house source appearing in each cancel collection request of the selected active user request sequence to obtain a second house source set;
calculating an intersection of the first room source set and the second room source set and a difference set of the first room source set and the second room source set;
selecting K test house sources which do not belong to the collection house source list of the test user from all the test house sources of the test opening activity, generating a collection request and a collection canceling request for each selected test house source, and adding the generated collection requests and collection canceling requests to a request sequence of the test user; k is the number of the house sources contained in the intersection of the first house source set and the second house source set;
establishing a mapping relation between each active house source contained in the difference set of the first house source set and the second house source set and each test house source of the collection house source list of the test user;
for each of the selected request sequences of the active users, if the active house source for which the purchase request is directed belongs to the difference set between the first house source set and the second house source set, generating a new purchase request for the test house source mapped by the active house source for which the purchase request is directed, and adding the new purchase request to the request sequence of the test user;
if the active house source aimed at by the first purchase request does not belong to the difference set of the first house source set and the second house source set, generating a new purchase request aiming at any test house source not belonging to the collection house source list, and adding the new purchase request to the request sequence of the test user;
and generating a corresponding collection request for each test house source in the collection house source list, and adding the generated collection request to the request sequence of the test user so as to generate the request sequence of the test user.
This application second aspect provides a testing arrangement of online room selection system, includes:
the statistical unit is used for carrying out statistics on user request data of a plurality of historical opening activities of the online room selection system to obtain a statistical result of each historical opening activity; the statistical result of the historical opening activities comprises the collection number of each activity user of the historical opening activities and the collected number of each activity house source of the historical opening activities;
the first determining unit is used for determining the collection number of each test user for testing the opening activities and the collected number of each test room source for testing the opening activities according to the statistical result of each historical opening activity;
a second determining unit, configured to determine a favorite source list of each test user according to the favorite number of each test user and the favorite number of each test source; the test user's favorite house source list is used for designating all test house sources collected by the test user when the test opening activity is finished;
the generating unit is used for selecting an active user meeting a preset condition from the active users of the historical opening activities for each test user, and generating a request sequence of the test user according to the request sequence of the selected active user and the favorite source list of the test user; wherein, the request sequence of the user records each user request sent to the online room selection system by the user in the opening activity; the preset condition is that the collection number of the active users is consistent with the collection number of the test users;
and the sending unit is used for sending the user requests recorded in the request sequence of each test user to the online room selection system after entering the activity time of the test opening activity, and recording the operation data of the online room selection system so as to finish the test of the online room selection system.
Optionally, when the first determining unit determines the collection number of each test user who tests the opening activity and the collected number of each test room source of the testing opening activity according to the statistical result of each historical opening activity, specifically execute:
generating a user number ratio list and a house source number ratio list of the historical opening activities according to the statistical result of the historical opening activities aiming at each historical opening activity; the user number proportion list is used for recording the proportion of the active users with different collection numbers in all the active users of the historical opening activities; the house source number ratio list is used for recording the ratio of the movable house sources with different collection numbers in all the movable house sources of the historical opening activities;
determining a user number ratio list of the test opening activity according to the user number ratio list of each historical opening activity, and determining a room source number ratio list of the test opening activity according to the room source number ratio list of each historical opening activity;
and determining the collection number of each test user of the test opening activity and the collected number of each test house source of the test opening activity according to the user number ratio list and the house source number ratio list of the test opening activity.
Optionally, when determining the user number proportion list of the test opening activity according to the user number proportion list of each historical opening activity, the first determining unit specifically executes:
and averaging a plurality of proportions of the same collection number in the user number proportion list of each historical opening activity to obtain the user number proportion list of the test opening activity.
Optionally, the user request includes a collection request, a collection canceling request and a first-time purchase request;
the generating unit is specifically configured to, when generating the request sequence of the test user according to the request sequence of the selected active user and the favorite source list of the test user:
extracting the active house source appearing in each collection request of the selected active user request sequence to obtain a first house source set, and extracting each active house source appearing in each cancel collection request of the selected active user request sequence to obtain a second house source set;
calculating an intersection of the first room source set and the second room source set and a difference set of the first room source set and the second room source set;
selecting K test house sources which do not belong to the collection house source list of the test user from all the test house sources of the test opening activity, generating a collection request and a collection canceling request for each selected test house source, and adding the generated collection requests and collection canceling requests to a request sequence of the test user; k is the number of the house sources contained in the intersection of the first house source set and the second house source set;
establishing a mapping relation between each active house source contained in the difference set of the first house source set and the second house source set and each test house source of the collection house source list of the test user;
for each of the selected request sequences of the active users, if the active house source for which the purchase request is directed belongs to the difference set between the first house source set and the second house source set, generating a new purchase request for the test house source mapped by the active house source for which the purchase request is directed, and adding the new purchase request to the request sequence of the test user;
if the active house source aimed at by the first purchase request does not belong to the difference set of the first house source set and the second house source set, generating a new purchase request aiming at any test house source not belonging to the collection house source list, and adding the new purchase request to the request sequence of the test user;
and generating a corresponding collection request for each test house source in the collection house source list, and adding the generated collection request to the request sequence of the test user so as to generate the request sequence of the test user.
A third aspect of the present application provides an electronic device comprising a memory and a processor;
wherein the memory is for storing a computer program;
the processor is configured to execute the computer program, and is configured to implement the testing method of the online room selection system provided by any one of the first aspects of the present application.
A fourth aspect of the present application provides a computer storage medium for storing a computer program, which when executed, is used to implement the testing method of the online room selection system provided in any one of the first aspects of the present application.
The application provides a test method, a device, equipment and a storage medium of an online room selection system, wherein the method comprises the following steps: counting user request data of a plurality of historical opening activities of the online house selection system to obtain a statistical result of each historical opening activity; the statistical result of the historical opening activities comprises the collection number of each activity user of the historical opening activities and the collected number of each activity house source of the historical opening activities; determining the collection number of each test user for testing the opening activities and the collected number of each test house source for testing the opening activities according to the statistical result of each historical opening activity; determining a collected house source list of each test user according to the collected number of each test user and the collected number of each test house source; the test user collection source list is used for appointing all test sources collected by the test user when the test opening activity is finished; selecting an active user which accords with the condition that the collection number of the active user is consistent with the collection number of the test user from the active users of all the historical opening users aiming at each test user, and generating a request sequence of the test user according to the request sequence of the selected active user and the collection house source list of the test user; the method comprises the steps that a request sequence of a user records each user request sent to an online room selection system by the user in a disc opening activity; and after the activity time of the test opening activity is entered, the user requests recorded in the request sequence of each test user are respectively sent to the on-line room selection system, and the operation data of the on-line room selection system are recorded, so that the test of the on-line room selection system is completed. According to the scheme, the request sequence of the test user is generated by utilizing the user request data and the request sequence of the historical opening activities, so that the request sequence of the test user is closer to the user behavior in a real scene, and the accuracy of the test result is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a testing method of an online room selection system according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a testing apparatus of an online room selection system according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a testing method of an online room selection system according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Some terms may be referred to in the embodiments of the present application as follows:
the online house selecting system comprises: the method is used for testing the developed online house selection system, and particularly, the online house selection system can provide the functions of house selection, collection, contract signing, house source checking and the like.
Opening the disc: background personnel (such as a developer or an administrator) of the online room selection system can create an opening activity in the online room selection system in the background, and user information (the entered user is called an active user of the opening activity), room source information (the entered room source is called an active room source of the opening activity), contract information and other data are entered in the opening activity. The recorded user can browse the movable house source within the specified activity time of the opening activity, and meanwhile, the movable house source can be robbed after the opening (the opening time is specified by background personnel).
An isolation unit: the data (namely the user information, the house source information, the contract information and the like) input in the test opening activity is used for generating simulated user requests, and after all the simulated user requests are generated, the requests are sent to the on-line house selecting system like normal requests. The requests do not affect the real users and other opening activities which are in the process of opening the disk.
Number of collected items and number of collected items: if a certain suite of house sources are collected by users with different X names in a certain opening activity, the collected number of the suite of house sources is X; assuming that a user collects Y different house sources in one opening activity, the collection number of the user is Y.
List of collected numbers: for each opening activity, the collected number list of the opening activity can be obtained by counting the collected number of each activity room source in the opening activity, and if a certain opening activity is recorded as the ith opening activity of the online room selection system, the collected number list of the ith opening activity can be represented by Li. Specifically, the collected number list of one opening activity records the collected number of each room source appearing in the current opening activity. For example, if the list L of the collected numbers consisting of all the different collected numbers that appear in one opening activity is [1, 5, 8], it indicates that a set of house sources is randomly picked in this opening activity, and the collected number of the set of house sources is definitely one of 1,5, and 8, and it is impossible to take another value.
List of house sources: the number of the active house sources whose number of the house sources is a specific value in one drive-on activity is shown corresponding to the house source collected number list, which may be represented by D in the present application, for example, the house source number list corresponding to the house source collected number list L may be [150, 30, 20], which indicates that the number of the house sources whose number of the collected house sources is 1 is 150, the number of the house sources whose number of the collected house sources is 5 is 30, and the number of the house sources whose number of the collected house sources is 8 is 20.
Collected number-house source number list: the elements at the same position in the collected number list L and the room source number list D may be combined into a key-value pair, and the list formed by these key-value pairs is the collected number-room source number list of this opening activity, which is denoted as LD, and in combination with the above example, the collected number-room source number list LD formed by L [1, 5, 8] and D [150, 30, 20] may be [ (1, 150), (5, 30), (8, 20) ], where the key-value pair (1, 150) indicates that in this opening activity, the collected number of 150 sets of active room sources is 1, and the meanings of other key-value pairs are the same.
List of house source number ratio: for the above example, the house source number ratio list may be LB [ (1, 0.75), (5, 0.15), (8, 0.1) ], where the key value pair (1, 0.75) indicates that the house source with the collected number of 1 accounts for 0.75 (i.e.,% 75) of all the house sources in the current startup activity, and similarly, the last two key value pairs respectively indicate that the collected number of the house sources accounting for 15% of the total number of the house sources is 5, and the collected number of the house sources accounting for 10% of the total number of the house sources is 8.
User number list: the user number list can be a list with the length fixed to be N +1, and N is the collection number upper limit of a single active user set by the online house choosing system. For example, the online house-selection system may specify that in one opening activity, each active user can collect at most 15 sets of active house sources, the user number list is a list with a fixed length of 16, and the ith element (1< = i < =16) in the list represents the number of users collecting (i-1) sets of house sources. For example, [20, 20, 20, 10, 10, 10, 5, 5,0, 0, 0, 0, 0, 0, 0, 0] represents that the number of users who store 0,1,2 sets of house resources is 20, the number of users who store 3,4,5 sets of house resources is 10, the number of users who store 6,7 sets of house resources is 5, and no user stores more than 8 sets of house resources. For the ith opening activity, the list of the number of users in this opening activity can be recorded as Ni.
User number ratio list: the percentage of active users with different collection numbers in one opening activity can be recorded as G, for example, the percentage list G of users in one opening activity can be recorded as (0.2, 0.2,0.2,0.1,0.1,0.1,0.05,0.05,0, 0, 0, 0, 0).
The first element in the list represents that in the current disk opening activity, the active users who collect 0 set of active house resources account for 20% of the total number of users, and similarly, the whole user number proportion list can represent that in the current disk opening activity, the users who collect 0,1,2 sets of house resources account for 20% of the total number of active users of the current disk opening activity, the users who collect 3,4,5 sets of house resources account for 10% of the total number of users, the users who collect 6,7 sets of house resources account for 5% of the total number of users, and the users whose collection number is more than 8 account for 0% of the total number of users.
Ratio of collected number-ratio of house source mapping table: the mapping table can be represented by DG, the elements of the DG table are key value pairs, for each key value pair in the table, the key represents the proportion of the collected number X in the opening activity of the current time to the total number of users in the opening activity of the current time, and the value represents the proportion of the house source with the collected number X to all house sources in the opening activity of the current time. For example, assume that a key value pair of the collected number-to-source ratio mapping table is (0.12, 0.02), the key value pair represents that a collected number X equal to 12% of the total number of users in the current startup activity accounts for 2% of the total number of sources, and if the total number of users in the current startup activity is 100, the key value pair represents that the sources with the collected number of 12 (100 × 0.12= 12) account for 2% of all the sources in the current startup activity.
Opening time: the opening time is an important parameter of one opening activity, the opening time is a time point, only after the opening time, the active user can initiate a purchase request to an active house source related to the opening activity, and only browsing and collecting (or canceling collecting) before the opening activity.
During the duration of an opening activity, there are many kinds of requests generated by each user, such as a house collection source request, a house collection source cancellation request, a house robbing request, and the like. Meanwhile, in a macroscopic view, it is assumed that the total number of activity house sources involved in one opening activity is M, and the total number of activity users participating in the opening activity is N. Then, each of the M sets of house sources may be collected by 0-N users. For the user, since the maximum value of the number of house sources that each user can collect is 15 (which is set manually by the background personnel), the number of house sources that each user can collect may be 0 to 15. Meanwhile, for convenience of description, the number of users with a collection number of j (0< = j < =15) is recorded as Nj (0< = j < =15, 0< = Nj < = N, N0+ N1+ … + N15= N), and if some of the room sources are collected with a number of i (0< = i < = N), the number of the room sources is recorded as Mi (0< = Mi < = M, 0< = i < = N, M0+ M1+ M2+ … + MN = M). During the activity duration of the opening activity, the number of requests related to the opening activity processed by the kth second server (which can be understood as a server running the online house-selection system) is Zk.
Then, the problems and difficulties to be solved when testing the online house selecting system (hereinafter referred to as system for short) are:
(1) setting M house sources in the opening activity as an isolation unit, and generating a request sequence which needs to be executed in the opening activity for each user by a simulation request generation method after N users are used, wherein the request sequence is required to accord with normal user logic;
(2) after the request sequence generated in the step (1) is used and sent, the number of requests executed by the server at the kth second is approximately equal to Zk within the activity duration of the opening activity;
of the M sources, the total number of sources with a collection number of i, i + 1., i + u (0< = i < = N, 0< = u < = N-i) should be approximately equal to Mi + M (i +1) + M (i +2) + … + M (i + u);
of the N users, the number of users with a house number of j (0< = j < =15) should be approximately equal to Nj.
The ultimate goal is to generate a sequence of all simulated user requests in this case and use these requests for testing given a combination of house source number and user number that did not occur in historical opening activities. In this way, it is known whether the system can carry the stress caused by these user and premises related requests.
Referring to fig. 1, a method for testing an online room selection system provided in an embodiment of the present application may include the following steps:
s101, counting user request data of a plurality of historical opening activities of the online room selection system to obtain a counting result of each historical opening activity.
The statistical result of the historical opening activities comprises the collection number of each activity user of the historical opening activities and the collected number of each activity house source of the historical opening activities.
Alternatively, in step S101, for each historical opening activity, only the user request data in the time period of 5 minutes before the opening time of the historical opening activity and 7 minutes after the opening time may be acquired, that is, all the requests generated by the user in the time period are recorded. For a disc opening activity, the user may also perform some operations outside the above time period, for example, the user may browse and collect the activity room source 10 minutes before the disc opening time, but in this application, the user request generated outside the above time period is not generally recorded, and accordingly, is not used as the user request data of the disc opening activity in S101.
Optionally, in step S101, information such as how many times of collection operation, how many times of room robbing operation, the highest number of sending requests per second, etc. performed by each user may also be counted.
Optionally, in order to implement step S101, a point (referring to a specific location of the service code) may be buried in the service code of each opening activity (to add a code for capturing and analyzing a user request), so that during the activity duration of the opening activity, information such as relevant parameters, url, and timestamp of the user request sent by each active user to the online room selection system is collected and recorded in the log system.
Meanwhile, after a disc opening activity is finished, all user requests received in the disc opening activity can be arranged into a plurality of request sequences, and each active user is labeled.
And (4) labeling operation, including the number of the house sources actually collected by the user finally, whether the contract function is started in the opening activity of the user, and the like.
The user requests are arranged into a request sequence, that is, for a certain active user, all the user requests sent to the system by the active user during the corresponding opening activity are obtained, then the user requests are sequenced according to the sequence of the corresponding time stamps, so that one of the active users can be obtained, and according to the request sequence sequenced from morning to evening in sending time, the operation is performed on each active user of one opening activity, so that all the request sequences of the opening activity can be obtained.
The above operations of sorting and labeling the user request can be executed by a timing task module in the online room selection system.
Optionally, for each historical opening activity, all collected user requests of the opening activity may be converted into character strings and stored in a cloud server (e.g., Tencent cloud), the local database only stores statistical results of the historical opening activity, storage addresses of all user requests in the cloud server, and tags of all users generated in a tagging operation.
Optionally, the user request of each user may also be directly stored in the database, and the storage in the cloud server is for preventing the local database performance from being slowed down.
It should be noted that the historical opening activities described in step S101 may be all opening activities executed in the previous day, for example, if the test is performed in 3 month and 2 days, all opening activities executed in 3 month and 1 day may be regarded as historical opening activities, and the user request data of the opening activities is counted to obtain the statistical result of each opening activity executed in 3 month and 1 day.
S102, determining the collection number of each test user of the test opening activities and the collected number of each test room source of the test opening activities according to the statistical results of the historical opening activities.
Please refer to the following text for the specific implementation of step S102.
Wherein, the test opening activity can be created in the online house choosing system in advance before step S102, and the total number of the test users participating in the test opening activity and the total number of the involved test house resources are set.
The test user may generally be a plurality of virtual users generated by the test system, and similarly, the test house resources may be a plurality of virtual house resources newly added in the online house selection system, that is, the test house resources do not correspond to house resources to be sold in the real building.
S103, determining a favorite source list of each test user according to the favorite number of each test user and the favorite number of each test source.
The test user's favorite house source list is used for designating all test house sources collected by the test user when the test opening activity is finished.
The specific execution procedure of step S103 is as follows:
as described in step S102, when a test opening activity (i.e., isolated unit) is newly created, the total number of test users participating in the test opening activity and the total number of test assets involved in the test opening activity are set at the same time. Suppose the number of test room sources is M and the number of test users is N. The list of all test sources in this opening activity is denoted LR and in turn denoted r1, r2, …, rM. The list of all tested users in this opening activity is LU, specifically [ u1, u2, …, uN ]. The method for allocating the house source list to be collected for each user in the LU comprises the following steps:
first, the number of times each test source is collected may be set as the remaining number of times the test source is collected.
Then, for any test user ui (an integer ranging from 1 to N of i) in the list LU, assuming that the collection number of the test user is determined to be x in step S102, x test house sources which are different from each other and whose remaining collection times are not all 0 may be randomly selected from LR, and these test house sources selected randomly are made up into the collection house source list of the test user, and meanwhile, for these x test house sources randomly selected this time, the remaining collection times of each test house source is reduced by 1.
Through the above process of random selection, a corresponding favorite source list can be determined for any test user in the list LU, and obviously, only the process of randomly selecting a test source and updating the remaining times of collection of the selected test source needs to be executed by each test user in the list LU one by one, so that a favorite source list can be finally determined for each test user in the user list.
Then randomly acquiring the house sources with different collected numbers which are not 0 and are different from each other corresponding to the x house sources from the L as the collection list of the user, wherein the collected numbers are not 0, namely vi in a certain key value pair (ri, vi) in the L is not 0. And simultaneously, the v value corresponding to the x sets of room sources, namely the residual collection times, is reduced once. In this way, the list of the specific house sources to be collected by each user and the number of house sources collected by the user are determined.
S104, aiming at each test user, selecting an active user meeting preset conditions from the active users of the historical opening activities, and generating a request sequence of the test user according to the request sequence of the selected active user and the favorite source list of the test user.
The request sequence of the user records each user request sent by the user to the online room selection system in the opening activity.
The preset condition is that the collection number of the active users is consistent with the collection number of the test users, that is, in S104, the collection number of the active users selected by one test user is consistent with the collection number of the test users.
And S105, after the activity time of the test opening activity is entered, respectively sending the user requests recorded in the request sequence of each test user to the online room selection system, and recording the operation data of the online room selection system so as to complete the test of the online room selection system.
The operation data of the online room selection system may include the number of user requests processed by the online room selection system per second, the response time of the online room selection system to each received user request, and the like.
For each test user, the first request in the request sequence of the test user may be sent to the online room selection system after the activity duration of the test opening activity is entered, and each subsequent request may be sent one by one at a certain time interval until all requests in the request sequence of the test user are sent.
When each user request included in the request sequence of the test user is sent, the sending time interval of every two user requests in the request sequence of the test user can be calculated according to the time stamp of the historical user request (referring to each user request received in the historical disk opening activity), and then the user requests in the request sequence of the test user are sent according to the time interval, so that the test can be closer to the actual situation.
In step S102, determining the collection number of each test user of the test opening activity and the collected number of each test room source of the test opening activity according to the statistical result of each historical opening activity, including:
1.1, generating a user number ratio list and a house source number ratio list of the historical opening activities according to the statistical result of the historical opening activities aiming at each historical opening activity.
The user number proportion list is used for recording the proportion of the active users with different collection numbers in all the active users of the historical opening activities; the house source number ratio list is used for recording the ratio of the movable house sources with different collection numbers in all the movable house sources of the historical opening activities.
For any historical opening activity, the definition of the user number ratio list and the house source number ratio list is referred, the user number ratio list of the historical opening activity can be obtained only by respectively counting the collection number of each active user in the historical opening activity and then calculating the proportion of the active users with different collection numbers, and similarly, the house source number ratio list can be obtained only by respectively counting the collection number of each active house source in the historical opening activity and calculating the proportion of the active house sources with different collection numbers. The specific generation method is not described in detail.
And 1.2, determining a user number ratio list of the test opening activity according to the user number ratio list of each historical opening activity, and determining a room source number ratio list of the test opening activity according to the room source number ratio list of each historical opening activity.
And 1.3, determining the collection number of each test user of the test opening activity and the collected number of each test house source of the test opening activity according to the user number ratio list and the house source number ratio list of the test opening activity.
According to the collection number-user ratio mapping table FU, the number of users corresponding to each collection number can be determined in the test opening activity. For example, if there is one key-value pair (1, 0.2) in the FU, then 0.2 × N users have collected 1 suite of room sources in the opening activity (i.e., collection number is 1). Thus, the LU may be divided into 16 disjoint intervals, starting from the LU 1 st element for simplicity. Assume that the bond value pairs in FU are [ (0, y1), (1, y2), …, (15, y16) ]. Then the 1 st to the y1 th users in LU will be assigned to collect the 0 suite of house resources, and the y1 th to the (y1+ y2) th users in LU will be assigned to collect the 1 suite of house resources. Through the collected number ratio-house source ratio mapping table FE, the number of house sources corresponding to each collected number can be determined. For example, if there is a key value pair (0.01, 0.05) in FE, it indicates that the number of house sources collected in the isolated cell is 0.01 × M, i.e., there is 0.05 × M house sources with a collection number of 0.01 × N. Through the user collection similar method, the collection times of a specific set of house sources in the LR can be obtained. Assuming that the number of key-value pairs in FE is H, H disjoint sets of room sources are obtained as S1, S2, …, SH. For each of the sources, the number of collections remaining is marked. A list L of M bond value pairs [ (r1, v1), (r2, v2), … (rM, vM) ] can then be obtained.
First, in 1.2, the determination manner of the user number proportion list for testing the opening activity may be:
assuming that the user request data of the M historical opening activities are obtained in step S101, correspondingly, the user proportion list of the M historical opening activities can be determined in 1.1. And recording the user duty ratio of the ith opening activity in the M historical opening activities as Gi (1< = i < = M). When the maximum number of favorite house sources per user is set to 15, the number of elements in the list is always 16 due to the user proportion. The j (1< = j < =16) th element represents how many users with the collection number of (j-1) occupy the total number of users, and accordingly, the j th element in the ith history opening activity user number occupation list can be recorded as Gij.
If the user number proportion list of the test opening activity which needs to be determined is recorded as G (test), and the jth element in the list is recorded as G (test, j), the test opening activity can be calculated according to the following formulaEach element in the user number proportion list, and then the user number proportion list of the test opening activity is determined:
Figure 655806DEST_PATH_IMAGE001
that is, the user number proportion list of the test opening activity can be obtained by averaging a plurality of proportions of the same collection number in the user number proportion list of each historical opening activity.
1.2, the determination method of the room source number ratio list for testing the opening activity may be:
it is still assumed that user request data for M historical opening activities are obtained in step S101. Recording the number of users of the ith opening activity in the M historical opening activities as Ni, recording a collected number list as Li, recording a jth element as Lij, recording an energy source number ratio list as LBi, recording a jth element as LBij, (1< = i < = M, 1< = j < = Ni +1, 0< = Lij < = Ni). Then the favorite number list Li and the room source number list LBi are listed by the number Ni of users using the historical opening activity for an arbitrary ith historical opening activity. A collected number-to-room source ratio mapping table of the historical opening activity may be generated and recorded as DGi, as described above, each entry in the mapping table is a key value pair, specifically, the key of the j-th entry in the mapping table is Lij/Ni, that is, the ratio of the collected number Lij to the total number Ni of the users of the historical opening activity, and the corresponding value is equal to LBij, that is, the ratio of the collected number Lij to all the room sources of the historical opening activity. The number of Key-Value pairs contained in the mapping table DGi is denoted as Si, and the j-th Key-Value pair therein is denoted as (Key-ij, Value-ij), and according to the above definition, it is obvious that Key-ij = Lij/Ni and Value-ij = LBij.
After determining the collected number-to-room source ratio mapping table for each historical opening activity, all the key value pairs contained in the M mapping tables may be sorted based on the following sorting rule:
for any two Key-Value pairs (Key-i 1j1, Value-i1j 1) and (Key-i 2j2, Value-i2j 2) in the M mapping tables, the ordering rule is: when Key-i1j1< Key-i2j2, stipulate (Key-i 1j1, Value-i1j 1) < (Key-i 2j2, Value-i2j 2); when Key-i1j1= Key-i2j2 and Value-i1j1< Value-i1j1, (Key-i 1j1, Value-i1j 1) < (Key-i 2j2, Value-i2j 2).
That is, for any two key-value pairs in the M mapping tables, if the keys of the two key-value pairs are not equal, the sizes of the two key-value pairs are defined according to the sizes of the keys of the two key-value pairs, and if the keys of the two key-value pairs are larger, the corresponding key-value pairs are larger, and when the keys of the two key-value pairs are equal, the sizes of the two key-value pairs are defined according to the sizes of the values of the two key-value pairs, and if the values are larger, the corresponding key-value pairs are larger, and the keys and the values are equal, the two key-value pairs.
And sequencing all key-value pairs contained in the M mapping tables to obtain a total mapping table formed by combining the M mapping tables, and marking the total mapping table as LF.
Dividing LF into a plurality of intervals, wherein the element number of each interval is equal to u × M and is recorded as M, u is a preset floating point number with a value range of (0, 1), and the value of each interval u is the same.
The key pairs corresponding to the kth interval are obtained by obtaining the keys of all the key-value pairs of the kth interval of the mapping table LF, taking the median thereof as the key of the key-value pair FEk, then obtaining the values of all the key-value pairs of the kth interval of the mapping table LF, and taking the median thereof as the value of the key-value pair FEk, thereby obtaining the key-value pair FEk corresponding to the kth interval.
Finally, after all K intervals obtain corresponding key value pairs, the K key value pairs form a collected number ratio-room source ratio mapping table corresponding to the test opening activity.
As can be seen from the foregoing definition of the collected number ratio-house source ratio mapping table, for a given key value pair in the mapping table, the total number N of test users for testing the opening activity may be multiplied by the key therein, and the obtained result is a collected number, for example, for a key value pair (0.012, 0.02) in the mapping table, assuming that the total number of test users for testing the opening activity is 100, the key in the key value pair may be multiplied by 100 to obtain 1.012, and the value is rounded down, so as to obtain a collected number 1 for testing the opening activity, and meanwhile, the value of 0.02 in the key value pair is the proportion of house sources for testing the collected number 1 in the opening activity.
In summary, a plurality of collected numbers can be obtained only by calculating the key of each key-value pair in the mapping table FE in the above manner, and the value of each key-value pair can be determined as the ratio of the house resources corresponding to the collected numbers obtained by calculation.
In 1.3, firstly, a user number ratio list of the test opening activity can be determined, and a user number list of the test opening activity can be determined. Specifically, the j-th item Gj of the user number ratio list represents the proportion of users who favorite j-1 sets of house sources among all N users, and the j-th element Pj of the user number list (represented by P) which represents the number of users who favorite j-1 sets of house sources can be represented as: pj = Gj N, specifically, in the case of the test opening activity, each item of the user number ratio list of the test opening activity is multiplied by the total number of the test users, and the combination of the items obtained finally is the user number list of the test opening activity.
A list of house sources to test for opening activity may then be determined. Similarly, each item in the house resource number ratio list represents the proportion of the house resources with the collection number of X in all M house resources, and then, for the test opening activity, the total number of the test house resources involved in the test opening activity may be multiplied by each item in the house resource number ratio list to obtain a list composed of a plurality of products, that is, the house resource number list of the test opening activity.
In any calculation process of the application, rounding can be performed downwards when the calculation result has decimal.
Assuming that the total number of test assets involved in the newly-built test opening activity is M, the total number of test users involved is N, the list of all test assets is denoted as LR, specifically [ r1, r2, …, rM ], and the list of all test users is LU, specifically [ u1, u2, …, uN ], the collection number of each test user can be determined as follows:
after the user number proportion list is determined, it can be determined that several test users in all test users collect 0 set of test room sources, several test users collect 1 set of room sources, and the like based on the proportion of each collection number of test users in the user number proportion list. In combination with the foregoing definition, the number of users who collect 0 house source is equal to the number of first elements in the user number percentage list multiplied by the total number N of test users (rounded down), that is, Gi × N, Gi represents the ith element in the user number percentage list of test opening activities, when the number of users who collect 0 house source is calculated, i is equal to 1, and the number of users who subsequently collect 1,2 … … house sources is analogized.
Thus, in the list LU, the first G1 × N test users may be designated as users who store 0 suite of house sources, i.e., users with collection number of 0, the next G2 × N test users may be designated as users who store 1 suite of house sources, and so on, and finally the collection number may be designated for each test user in the LU.
Similarly, the number of house resources corresponding to each collected number in the test opening activity may be calculated according to the previously determined house resource number ratio list of the test opening activity, and specifically, assuming that a key value pair recorded in the house resource number ratio list of the test opening activity is (5, 0.2), it indicates that the house resources with the collected number of 5 in the test opening activity account for 0.2 of all the house resources, so it may be determined that the collected number of 0.2 × M sets of house resources in the test opening activity is 5, and the number of house resources corresponding to other collected numbers may be similarly calculated.
Thus, assuming that the house source count proportion list of the test opening activity is [ (1, 0.5), (4, 0.3), (8, 0.2) ], the collected number of the first 0.5 × M sets of test house sources in the LR may be designated as 1, the collected number of the remaining 0.3 × M sets of test house sources is set as 4, and the collected number of the 0.2 × M sets of test house sources is set as 8, thereby completing the setting of the collected number of each set of house sources.
The user request may include: the method comprises the steps of collecting a request, canceling the collecting request, performing a first-aid purchase request, checking a homepage request, checking a house source information request, checking a first-aid house source list request and the like, wherein parameters related to user requests such as the home page checking request, the house source information checking request, the first-aid house source list checking request and the like are fixed and easy to generate, so that how to generate the collecting request in a request sequence of a test user, and cancel the collecting request and the first-aid purchase request are mainly explained below.
In step S104, according to the selected request sequence of the active user and the favorite source list of the test user, a specific execution process of generating the request sequence of the test user is as follows:
the reference user is hereinafter used to indicate the selected user. For example, if a request sequence of test users with a collection number of 3 needs to be generated, the following operations may be performed by taking the request sequence of the reference user in the corresponding historical opening activity as a template, and obtaining an active user with the collection number of the same 3 from the user request data of each historical opening activity obtained in step S101.
Extracting active house sources appearing in each collection request of the request sequence of the reference user to obtain a first house source set, and extracting active house sources appearing in each cancel collection request of the request sequence of the reference user to obtain a second house source set;
the first set of sources is designated as C1 and the second set of sources is designated as C2.
The intersection of the first and second set of sources (denoted C3) and the difference of the first and second set of sources (denoted C4) are calculated.
I.e., C3= C1 ═ C2, C4= C1-C2.
Selecting K test house sources which do not belong to the collection house source list of the test user from all test house sources for testing the opening activity, generating a collection request and a collection canceling request for each selected test house source, and adding the generated collection requests and collection canceling requests to a request sequence of the test user.
And K is the number of the house sources contained in the intersection of the first house source set and the second house source set.
Assuming that one of the selected K test sources is room1 and the user currently generating the request sequence is denoted as user a, a favorite request may be generated, such as: user A requests collection from 1, and a cancel collection request, such as: user A cancels favorites from 1 and then adds both requests to user A's request sequence.
Establishing a mapping relation between each activity house source contained in the difference set of the first house source set and the second house source set and each test house source of the collection house source list of the test user;
and aiming at each of the request sequences of the reference users, if the active house source aimed at by the first purchase request belongs to the difference set of the first house source set and the second house source set, generating a new purchase request aiming at the test house source mapped by the active house source aimed at by the first purchase request, and adding the new purchase request to the request sequence of the test user.
For example, assuming that there is an active ROOM source ROOM3 in the difference set C4, when the mapping relationship is established, ROOM3 is mapped to a test ROOM source ROOM5, in the above step, a reference user request sequence is found for ROOM3, such as: the reference user requests to preempt the rom 3.
Then, the corresponding test ROOM source from 5, which can be mapped by the ROOM3, and the test user a generate a purchase requisition: user a requests a pre-purchase of room 5.
If the active house source aimed at by the first house source request does not belong to the difference set of the first house source set and the second house source set, generating a new first-purchase request aiming at any test house source not belonging to the collection house source list, and adding the new first-purchase request to the request sequence of the test user;
for example, a reference user may request to preempt from ROOM6, while ROOM6 does not belong to the difference set C4, so a test house that does not belong to test user a's favorite house source list may be randomly selected, provided that ROOM7 does not belong to test user a's favorite house source list, and then a preempt request for this selected test house source is generated, namely: user a requests a pre-purchase of room 7.
And generating a corresponding collection request aiming at each test house source in the collection house source list, and adding the generated collection request to the request sequence of the test user so as to generate the request sequence of the test user.
After all the user requests are generated and added to the request sequence of the test user, the user requests in the request sequence of the test user can be sequenced according to a certain rule, so that the user requests can be sent one by one when being sent subsequently.
It can be seen that, for a test user, the finally generated request sequence is equivalent to a series of actions such as collecting, canceling collecting and purchasing, and the like which are taken after the test user enters a test opening activity. The testing method provided by the application simulates the access condition of a plurality of users to the online room selection system within the activity duration of the opening activity by sending the user requests in the request sequence of each testing user to the online room selection system one by one, thereby achieving the effect of testing the bearing capacity of the online room selection system.
In general, when generating a sequence of requests for a test user, a matching sequence of historical user requests may be retrieved from a database for a test user. The data stored in the database by a historical user comprises user track information, collection number information serving as a label and other information. If the collection number of the user to be tested is 3, the historical user request selection module randomly obtains one request sequence template from the data with the collection number of 3 in the database as the request sequence template of the user to be tested.
Then, taking the request sequence of the selected reference user as a reference, first recording the room source identifier (room source id) roommid where the collection request appears in the request sequence, wherein the set of the roommid 1, roommid 2, … is marked as C1. Record the occurrence of roommid set in its cancel collection request as C2. Take the intersection of C1 and C2. These sources are cancelled after being collected. These roomld's are randomly obtained from the quarantine unit all house sources collection C0 for sale because the final result is not affected.
Taking the difference set of C1 and C2, and performing one-to-one mapping on the elements of the difference set and the elements in the specific house source list of the user collection generated in 4) to obtain a mapping table FR. Where the key of a certain key-value pair in FR is an element in the C1 and C2 difference set, and the value is roomld appearing in the particular house source list. For the room-robbing request, if the original room source id used by the room-robbing request is a key in the FR, the room source id used by the room-robbing request in the new request is the value corresponding to the original room source id in the FR. If the original house source id does not appear in the house robbing request, the user does not perform house robbing operation through the house source selected in the favorite list but performs house robbing operation through a random selection mode.
According to the scheme, the request sequence of the test user is generated by utilizing the user request data and the request sequence of the historical opening activities, so that the request sequence of the test user is closer to the user behavior in a real scene, and the accuracy of the test result is improved.
The invention estimates the user collection and house source collection conditions in the opening project of the specified house source number and user number by a mathematical statistics analysis method. Meanwhile, a historical user request sequence is selected as a new request sequence template through the label classification information. And then, obtaining the dependency relationship reconstruction request parameters of the target house source used in the user collection and the user room robbing request through the dependency analysis of the historical user request sequence. And finally, sending the new requests in a multi-machine cooperative sending mode.
In the prior art, the generation of the simulation request for testing is usually processed manually by a tester, and the manual processing has the advantages that the tester can design the simulation request which meets the user behavior according to own experience and business logic, and has the defect that if hundreds of simulation requests need to be generated, the generation work of the simulation requests cannot be efficiently completed only by limited testers. An automated generation method capable of generating a large number of simulation requests in a short time is often used to generate different test request sequences by randomly arranging and combining different requests. In this way, the operation behavior trajectory of the real user often cannot be reflected. The parameters of these requests are also mostly randomly generated, and the randomly generated parameters cannot handle two requests with dependencies. Therefore, the existing method cannot simultaneously satisfy two conditions of efficiently generating a large number of simulation requests, and generating parameters and request sequences of the simulation requests according with real user behaviors. The invention can solve the problems existing in the generation of the user simulation request in the open disc scene.
Referring to fig. 2, in combination with the testing method of the online room selection system provided in the embodiment of the present application, an embodiment of the present application further provides a testing apparatus of the online room selection system, where the apparatus may include the following units:
the statistical unit 201 is configured to perform statistics on user request data of a plurality of historical opening activities of the online room selection system to obtain a statistical result of each historical opening activity.
The statistical result of the historical opening activities comprises the collection number of each activity user of the historical opening activities and the collected number of each activity house source of the historical opening activities.
The first determining unit 202 is configured to determine, according to a statistical result of each historical opening activity, a collection number of each test user who tests the opening activity and a collected number of each test room source who tests the opening activity.
The second determining unit 203 is configured to determine a favorite source list of each test user according to the number of favorite users and the number of favorite users.
The test user's favorite house source list is used for designating all test house sources collected by the test user when the test opening activity is finished.
The generating unit 204 is configured to select, for each test user, an active user meeting a preset condition from the active users in the historical opening activities, and generate a request sequence of the test user according to a request sequence of the selected active user and a favorite source list of the test user.
The request sequence of the user records each user request sent by the user to the online room selection system in the opening activity.
The preset condition means that the collection number of the active users is consistent with that of the test users.
A sending unit 205, configured to send the user request recorded in the request sequence of each test user to the online room selection system after entering the activity time of the test opening activity, and record operation data of the online room selection system, so as to complete a test on the online room selection system.
Optionally, when the first determining unit 202 determines the collection number of each test user who tests the opening activity and the collected number of each test room source who tests the opening activity according to the statistical result of each historical opening activity, specifically execute:
generating a user number ratio list and a house source number ratio list of the historical opening activities according to the statistical result of the historical opening activities aiming at each historical opening activity; the user number proportion list is used for recording the proportion of the active users with different collection numbers in all the active users of the historical opening activities; the house source number ratio list is used for recording the ratio of the movable house sources with different collection numbers in all the movable house sources of the historical opening activities;
determining a user number ratio list of the test opening activity according to the user number ratio list of each historical opening activity, and determining a room source number ratio list of the test opening activity according to the room source number ratio list of each historical opening activity;
and determining the collection number of each test user of the test opening activity and the collected number of each test house source of the test opening activity according to the user number ratio list and the house source number ratio list of the test opening activity.
Optionally, when the first determining unit 202 determines the user count list of the test opening activity according to the user count list of each historical opening activity, the following steps are specifically performed:
and averaging a plurality of proportions of the same collection number in the user number proportion list of each historical opening activity to obtain a user number proportion list of the test opening activity.
Optionally, the user request includes a collection request, a collection canceling request and a first-time purchase request;
when the generating unit 204 generates the request sequence of the test user according to the request sequence of the selected active user and the favorite source list of the test user, it is specifically configured to:
extracting the active house source appearing in each collection request of the selected active user request sequence to obtain a first house source set, and extracting each active house source appearing in each cancel collection request of the selected active user request sequence to obtain a second house source set;
calculating the intersection of the first room source set and the second room source set and the difference set of the first room source set and the second room source set;
selecting K test house sources which do not belong to a test user's collection house source list from all test house sources for testing the opening activity, generating a collection request and a collection canceling request for each selected test house source, and adding the generated collection requests and collection canceling requests to a request sequence of a test user; k is the number of the house sources contained in the intersection of the first house source set and the second house source set;
establishing a mapping relation between each activity house source contained in the difference set of the first house source set and the second house source set and each test house source of the collection house source list of the test user;
aiming at each of the selected request sequences of the active users, if the active house source aimed at by the first purchase request belongs to the difference set of the first house source set and the second house source set, generating a new purchase request aiming at the test house source mapped by the active house source aimed at by the first purchase request, and adding the new purchase request to the request sequence of the test user;
if the active house source aimed at by the first house source request does not belong to the difference set of the first house source set and the second house source set, generating a new first-purchase request aiming at any test house source not belonging to the collection house source list, and adding the new first-purchase request to the request sequence of the test user;
and generating a corresponding collection request aiming at each test house source in the collection house source list, and adding the generated collection request to the request sequence of the test user so as to generate the request sequence of the test user.
The specific working principle of the testing device of the online room selection system provided by the embodiment of the present application may refer to the relevant steps in the testing method of the online room selection system provided by the embodiment of the present application, and details are not described here.
The application provides a testing device of an online house selection system, in the testing device, a statistical unit 201 performs statistics on user request data of a plurality of historical opening activities of the online house selection system to obtain a statistical result of each historical opening activity; the statistical result of the historical opening activities comprises the collection number of each activity user of the historical opening activities and the collected number of each activity house source of the historical opening activities; the first determining unit 202 determines the collection number of each test user of the test opening activity and the collected number of each test room source of the test opening activity according to the statistical result of each historical opening activity; the second determining unit 203 determines a favorite source list of each test user according to the favorite number of each test user and the favorite number of each test source; the test user collection source list is used for appointing all test sources collected by the test user when the test opening activity is finished; the generating unit 204 selects an active user meeting a preset condition from the active users of the historical opening activities for each test user, and generates a request sequence of the test user according to the request sequence of the selected active user and the favorite source list of the test user; the method comprises the steps that a request sequence of a user records each user request sent to an online room selection system by the user in a disc opening activity; the preset condition is that the collection number of the active users is consistent with that of the test users; after entering the activity time of the test opening activity, the sending unit 205 sends the user request recorded in the request sequence of each test user to the online room selection system, and records the operation data of the online room selection system, so as to complete the test on the online room selection system. According to the scheme, the request sequence of the test user is generated by utilizing the user request data and the request sequence of the historical opening activities, so that the request sequence of the test user is closer to the user behavior in a real scene, and the accuracy of the test result is improved.
Finally, the test method provided in the present application is briefly described with reference to fig. 3. As shown in fig. 3, the testing apparatus of the online room selection system is an apparatus independent from the online room selection system, and the testing apparatus may obtain user request data of a plurality of historical opening activities of the online room selection system through step S101 in the embodiment shown in fig. 1, execute steps S102 to S104 in the embodiment shown in fig. 1 based on the obtained data, thereby generating a request sequence of each testing user, and may add one testing opening activity in the online room selection system.
After the test opening activity is started, the test device can send the user requests in the request sequence of the test users to the online room selection system, so that the response speed of the online room selection system to the user requests is tested, and the test of the online room selection system is completed.
The embodiment of the present application further provides a computer storage medium for storing a computer program, and when the computer program is executed, the computer program is used to implement the testing method of the online room selection system provided in any embodiment of the present application.
Referring to fig. 4, the electronic device includes a memory 401 and a processor 402;
wherein the memory 401 is used for storing computer programs;
the processor 402 is configured to execute the above computer program for implementing the testing method of the online room selection system provided in any embodiment of the present application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 identical elements in a process, method, article, or apparatus that comprises the element.
It should be noted that the terms "first", "second", and the like in the present invention are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
Those skilled in the art can make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A test method of an online room selection system is characterized by comprising the following steps:
counting user request data of a plurality of historical opening activities of an online house selection system to obtain a statistical result of each historical opening activity; the statistical result of the historical opening activities comprises the collection number of each activity user of the historical opening activities and the collected number of each activity house source of the historical opening activities;
determining the collection number of each test user for testing the opening activities and the collected number of each test room source for testing the opening activities according to the statistical result of each historical opening activity;
determining a favorite source list of each test user according to the favorite number of each test user and the favorite number of each test source; the test user's favorite house source list is used for designating all test house sources collected by the test user when the test opening activity is finished;
selecting an active user meeting a preset condition from the active users of the historical opening activities for each test user, and generating a request sequence of the test user according to the request sequence of the selected active user and the favorite source list of the test user; wherein, the request sequence of the user records each user request sent to the online room selection system by the user in the opening activity; the preset condition is that the collection number of the active users is consistent with the collection number of the test users;
and after the activity time of the test opening activity is entered, respectively sending the user requests recorded in the request sequence of each test user to the online room selection system, and recording the operation data of the online room selection system so as to complete the test of the online room selection system.
2. The method according to claim 1, wherein the determining the collection number of each test user for the test opening activity and the collected number of each test source for the test opening activity according to the statistical result of each historical opening activity comprises:
generating a user number ratio list and a house source number ratio list of the historical opening activities according to the statistical result of the historical opening activities aiming at each historical opening activity; the user number proportion list is used for recording the proportion of the active users with different collection numbers in all the active users of the historical opening activities; the house source number ratio list is used for recording the ratio of the movable house sources with different collection numbers in all the movable house sources of the historical opening activities;
determining a user number ratio list of the test opening activity according to the user number ratio list of each historical opening activity, and determining a room source number ratio list of the test opening activity according to the room source number ratio list of each historical opening activity;
and determining the collection number of each test user of the test opening activity and the collected number of each test house source of the test opening activity according to the user number ratio list and the house source number ratio list of the test opening activity.
3. The method according to claim 2, wherein the determining the user proportion list of the test opening activity according to the user proportion list of each historical opening activity comprises:
and averaging a plurality of proportions of the same collection number in the user number proportion list of each historical opening activity to obtain the user number proportion list of the test opening activity.
4. The test method according to any one of claims 1 to 3, wherein the user request includes a collection request, a cancel collection request and a pre-purchase request;
wherein, the generating the request sequence of the test user according to the request sequence of the selected active user and the favorite source list of the test user comprises:
extracting the active house source appearing in each collection request of the selected active user request sequence to obtain a first house source set, and extracting each active house source appearing in each cancel collection request of the selected active user request sequence to obtain a second house source set;
calculating an intersection of the first room source set and the second room source set and a difference set of the first room source set and the second room source set;
selecting K test house sources which do not belong to the collection house source list of the test user from all the test house sources of the test opening activity, generating a collection request and a collection canceling request for each selected test house source, and adding the generated collection requests and collection canceling requests to a request sequence of the test user; k is the number of the house sources contained in the intersection of the first house source set and the second house source set;
establishing a mapping relation between each active house source contained in the difference set of the first house source set and the second house source set and each test house source of the collection house source list of the test user;
for each of the selected request sequences of the active users, if the active house source for which the purchase request is directed belongs to the difference set between the first house source set and the second house source set, generating a new purchase request for the test house source mapped by the active house source for which the purchase request is directed, and adding the new purchase request to the request sequence of the test user;
if the active house source aimed at by the first purchase request does not belong to the difference set of the first house source set and the second house source set, generating a new purchase request aiming at any test house source not belonging to the collection house source list, and adding the new purchase request to the request sequence of the test user;
and generating a corresponding collection request for each test house source in the collection house source list, and adding the generated collection request to the request sequence of the test user so as to generate the request sequence of the test user.
5. A testing device of an online room selection system is characterized by comprising:
the statistical unit is used for carrying out statistics on user request data of a plurality of historical opening activities of the online room selection system to obtain a statistical result of each historical opening activity; the statistical result of the historical opening activities comprises the collection number of each activity user of the historical opening activities and the collected number of each activity house source of the historical opening activities;
the first determining unit is used for determining the collection number of each test user for testing the opening activities and the collected number of each test room source for testing the opening activities according to the statistical result of each historical opening activity;
a second determining unit, configured to determine a favorite source list of each test user according to the favorite number of each test user and the favorite number of each test source; the test user's favorite house source list is used for designating all test house sources collected by the test user when the test opening activity is finished;
the generating unit is used for selecting an active user meeting a preset condition from the active users of the historical opening activities for each test user, and generating a request sequence of the test user according to the request sequence of the selected active user and the favorite source list of the test user; wherein, the request sequence of the user records each user request sent to the online room selection system by the user in the opening activity; the preset condition is that the collection number of the active users is consistent with the collection number of the test users;
and the sending unit is used for sending the user requests recorded in the request sequence of each test user to the online room selection system after entering the activity time of the test opening activity, and recording the operation data of the online room selection system so as to finish the test of the online room selection system.
6. The testing device according to claim 5, wherein the first determining unit specifically executes, when determining the collection number of each testing user who tests the opening activity and the collected number of each testing source of the opening activity according to the statistical result of each historical opening activity:
generating a user number ratio list and a house source number ratio list of the historical opening activities according to the statistical result of the historical opening activities aiming at each historical opening activity; the user number proportion list is used for recording the proportion of the active users with different collection numbers in all the active users of the historical opening activities; the house source number ratio list is used for recording the ratio of the movable house sources with different collection numbers in all the movable house sources of the historical opening activities;
determining a user number ratio list of the test opening activity according to the user number ratio list of each historical opening activity, and determining a room source number ratio list of the test opening activity according to the room source number ratio list of each historical opening activity;
and determining the collection number of each test user of the test opening activity and the collected number of each test house source of the test opening activity according to the user number ratio list and the house source number ratio list of the test opening activity.
7. The test device according to claim 6, wherein when determining the user number proportion list of the test opening activity according to the user number proportion list of each historical opening activity, the first determining unit specifically executes:
and averaging a plurality of proportions of the same collection number in the user number proportion list of each historical opening activity to obtain the user number proportion list of the test opening activity.
8. The test device according to any one of claims 5 to 7, wherein the user request comprises a collection request, a cancel collection request and a pre-purchase request;
the generating unit is specifically configured to, when generating the request sequence of the test user according to the request sequence of the selected active user and the favorite source list of the test user:
extracting the active house source appearing in each collection request of the selected active user request sequence to obtain a first house source set, and extracting each active house source appearing in each cancel collection request of the selected active user request sequence to obtain a second house source set;
calculating an intersection of the first room source set and the second room source set and a difference set of the first room source set and the second room source set;
selecting K test house sources which do not belong to the collection house source list of the test user from all the test house sources of the test opening activity, generating a collection request and a collection canceling request for each selected test house source, and adding the generated collection requests and collection canceling requests to a request sequence of the test user; k is the number of the house sources contained in the intersection of the first house source set and the second house source set;
establishing a mapping relation between each active house source contained in the difference set of the first house source set and the second house source set and each test house source of the collection house source list of the test user;
for each of the selected request sequences of the active users, if the active house source for which the purchase request is directed belongs to the difference set between the first house source set and the second house source set, generating a new purchase request for the test house source mapped by the active house source for which the purchase request is directed, and adding the new purchase request to the request sequence of the test user;
if the active house source aimed at by the first purchase request does not belong to the difference set of the first house source set and the second house source set, generating a new purchase request aiming at any test house source not belonging to the collection house source list, and adding the new purchase request to the request sequence of the test user;
and generating a corresponding collection request for each test house source in the collection house source list, and adding the generated collection request to the request sequence of the test user so as to generate the request sequence of the test user.
9. An electronic device comprising a memory and a processor;
wherein the memory is for storing a computer program;
the processor is configured to execute the computer program for implementing the testing method of the online room selection system according to any one of claims 1 to 4.
10. A computer storage medium storing a computer program which, when executed, implements a method of testing an online room selection system as claimed in any one of claims 1 to 4.
CN202110318637.5A 2021-03-25 2021-03-25 Test method, device, equipment and storage medium for online room selection system Active CN112801551B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110318637.5A CN112801551B (en) 2021-03-25 2021-03-25 Test method, device, equipment and storage medium for online room selection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110318637.5A CN112801551B (en) 2021-03-25 2021-03-25 Test method, device, equipment and storage medium for online room selection system

Publications (2)

Publication Number Publication Date
CN112801551A true CN112801551A (en) 2021-05-14
CN112801551B CN112801551B (en) 2021-06-25

Family

ID=75815732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110318637.5A Active CN112801551B (en) 2021-03-25 2021-03-25 Test method, device, equipment and storage medium for online room selection system

Country Status (1)

Country Link
CN (1) CN112801551B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116308218A (en) * 2023-05-22 2023-06-23 北京焦点新干线信息技术有限公司 Early warning method, device, equipment and storage medium for online house selection system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870348A (en) * 2012-12-14 2014-06-18 中国电信股份有限公司 Test method and system for concurrent user access
US20180232787A1 (en) * 2001-05-22 2018-08-16 Mobile Maven Llc Real estate transaction system
CN108960467A (en) * 2018-07-09 2018-12-07 重庆锐云科技有限公司 Realty information management and data analysis system
CN109191245A (en) * 2018-08-22 2019-01-11 山东儒房融科网络科技股份有限公司 A kind of house property electric business platform
CN110889727A (en) * 2019-11-28 2020-03-17 重庆锐云科技有限公司 Mobile terminal service system capable of opening discs on line
CN111027023A (en) * 2019-12-11 2020-04-17 重庆锐云科技有限公司 House property online opening detection method and system based on frequent analysis

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180232787A1 (en) * 2001-05-22 2018-08-16 Mobile Maven Llc Real estate transaction system
CN103870348A (en) * 2012-12-14 2014-06-18 中国电信股份有限公司 Test method and system for concurrent user access
CN108960467A (en) * 2018-07-09 2018-12-07 重庆锐云科技有限公司 Realty information management and data analysis system
CN109191245A (en) * 2018-08-22 2019-01-11 山东儒房融科网络科技股份有限公司 A kind of house property electric business platform
CN110889727A (en) * 2019-11-28 2020-03-17 重庆锐云科技有限公司 Mobile terminal service system capable of opening discs on line
CN111027023A (en) * 2019-12-11 2020-04-17 重庆锐云科技有限公司 House property online opening detection method and system based on frequent analysis

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116308218A (en) * 2023-05-22 2023-06-23 北京焦点新干线信息技术有限公司 Early warning method, device, equipment and storage medium for online house selection system

Also Published As

Publication number Publication date
CN112801551B (en) 2021-06-25

Similar Documents

Publication Publication Date Title
Rogge-Solti et al. Discovering stochastic petri nets with arbitrary delay distributions from event logs
CN105045831B (en) A kind of information push method and device
Musa The operational profile in software reliability engineering: an overview
CN109615129B (en) Real estate customer transaction probability prediction method, server and computer storage medium
CN109583904A (en) Training method, impaired operation detection method and the device of abnormal operation detection model
CN109325691A (en) Abnormal behaviour analysis method, electronic equipment and computer program product
CN105122212A (en) Periodicity optimization in an automated tracing system
CN109711424B (en) Behavior rule acquisition method, device and equipment based on decision tree
CN113014421A (en) Micro-service root cause positioning method for cloud native system
CN105824806A (en) Quality evaluation method and device for public accounts
CN108108438A (en) The recognition methods of behavioral data and device
CN112801551B (en) Test method, device, equipment and storage medium for online room selection system
CN107480188B (en) Audit service data processing method and computer equipment
CN104077354A (en) Forum post heat determining method and related device thereof
CN110633401A (en) Prediction model of store data and establishment method thereof
US10313457B2 (en) Collaborative filtering in directed graph
CN116777297B (en) Machine room evaluation index configuration method and system based on IDC equipment monitoring data
Liaqat et al. A majority voting goal based technique for requirement prioritization
Bowes et al. Different classifiers find different defects although with different level of consistency
Fauzan et al. Simulation of agent-based and discrete event for analyzing multi organizational performance
Foulonneau et al. Analyzing the open source communities' lifecycle with communication data
Hidayat et al. Process model extension using heuristics miner:(Case study: Incident management of Volvo IT Belgium)
CN109034938B (en) Information rapid screening and matching method and device, electronic equipment and storage medium
CN108777648B (en) Network equipment testing method and device
CN112328779A (en) Training sample construction method and device, terminal equipment and storage medium

Legal Events

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

Effective date of registration: 20231113

Address after: 100190 901-1, Floor 9, Building 3, No. 2 Academy South Road, Haidian District, Beijing

Patentee after: Beijing Bodian Zhihe Technology Co.,Ltd.

Address before: 100190 1001-3, 10th floor, building 3, No.2 Academy of Sciences South Road, Haidian District, Beijing

Patentee before: BEIJING JIAODIAN XINGANXIAN INFORMATION TECHNOLOGY CO.,LTD.

TR01 Transfer of patent right