CN107357722B - Social Network Service (SNS) testing system and method based on a large number of testing users - Google Patents

Social Network Service (SNS) testing system and method based on a large number of testing users Download PDF

Info

Publication number
CN107357722B
CN107357722B CN201710482266.8A CN201710482266A CN107357722B CN 107357722 B CN107357722 B CN 107357722B CN 201710482266 A CN201710482266 A CN 201710482266A CN 107357722 B CN107357722 B CN 107357722B
Authority
CN
China
Prior art keywords
user
pool
users
test
sub
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710482266.8A
Other languages
Chinese (zh)
Other versions
CN107357722A (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.)
Weimeng Chuangke Network Technology China Co Ltd
Original Assignee
Weimeng Chuangke Network Technology China 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 Weimeng Chuangke Network Technology China Co Ltd filed Critical Weimeng Chuangke Network Technology China Co Ltd
Priority to CN201710482266.8A priority Critical patent/CN107357722B/en
Publication of CN107357722A publication Critical patent/CN107357722A/en
Application granted granted Critical
Publication of CN107357722B publication Critical patent/CN107357722B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention provides a Social Network Service (SNS) test system and a method based on a large number of test users, wherein the SNS test system comprises: the user storage pool comprises a plurality of sub-pools, and each sub-pool stores users corresponding to the type and the number of the user relationship according to the preset capacity; the user usage pool is used for calling the corresponding user from the user storage pool to test according to the test requirement; the dirty user pool is used for placing the polluted users after the user uses the pool to test; and the clean user pool is used for cleaning each polluted user into a bare user, recombining the user relationship types of each bare user, and correspondingly distributing the user relationship types to each sub-pool. The SNS test system based on a large number of test users stores users with different user relationship types through each sub-pool of the user storage pool, and the users can be directly called through the user use pool, so that the time for creating the user relationship is reduced; the dirty users are recycled through the dirty user pool and the clean user pool, and the reuse rate of the user relationship is improved.

Description

Social Network Service (SNS) testing system and method based on a large number of testing users
Technical Field
The invention relates to the technical field of software testing, in particular to an SNS testing system and method based on a large number of testing users.
Background
Currently, in the SNS (Social Network Site, Social networking service including Social software and Social networking sites) test process, it is necessary to create users and construct user relationships, which is performed in each test case, for example: a case for testing a microblog home page refreshing function firstly needs to create a user A, a user B, a user C and a user D, the 4 users are independent users without relations, then a user relation needs to be established, the user A pays attention to the users B, C and D, the user B, C, D sends microblogs respectively, then the user A performs refreshing operation, and finally each function point is detected.
However, the above solution has the following disadvantages:
firstly, the method comprises the following steps: most of the time for executing the test cases is spent on user creation and user relationship construction, so that the test execution time is very long, and under the condition that a plurality of test cases exist, the test efficiency is greatly influenced by the mode;
secondly, the method comprises the following steps: the user relationship established in the test execution process is abandoned after the test is finished, and when the next use case needs the same user relationship, the user relationship needs to be established again, so that the repeated utilization rate of the user relationship is very low;
thirdly, the method comprises the following steps: the existing implementation mode can not carry out unified management on users and user relations, and the problem of account pollution is easy to occur in the software testing process.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art: the SNS test has low test efficiency and low utilization rate of the established user relationship.
Disclosure of Invention
The embodiment of the invention provides an SNS testing system and method based on a large number of testing users, which can improve the testing efficiency and the reuse rate of user relationships.
In one aspect, an embodiment of the present invention provides an SNS test system for social network service based on a large number of test users, where the SNS test system includes:
the user storage pool comprises a plurality of sub-pools, each sub-pool represents different user relationship types, and each sub-pool stores users corresponding to the user relationship types and the number according to a preset capacity;
the user usage pool is used for calling the corresponding user from the user storage pool to test according to the test requirement;
the dirty user pool is connected with the user use pool and the clean user pool and used for placing the polluted users after the user use pool tests are completed and sending each polluted user to the clean user pool for recycling when the recycling condition is met;
and the clean user pool is used for cleaning each recovered polluted user as a bare user, recombining the user relationship types of each bare user, and correspondingly distributing the user relationship types to each sub-pool of the user storage pool.
Optionally, the user usage pool includes:
the calling module is used for calling the corresponding user from the user storage pool according to the test requirement;
the first judgment module is used for judging whether the user relationship type meeting the test requirement is a simple relationship type, and the simple relationship type is a user relationship type with a unique associated object;
the first restructuring module is respectively connected with the calling module and the first judging module and is used for restructuring the user relationship type of the calling user according to the test requirement to obtain a restructured relationship user when the judgment result of the first judging module is that the user relationship type is not a simple relationship type;
the testing module is respectively connected with the first judging module, the calling module and the first recombination module and is used for testing according to the calling user based on testing requirements when the judging result of the first judging module is that the user relationship type is a simple relationship type; and when the judgment result of the first judgment module is that the user type is not the simple relationship type, testing according to the recombination relationship user based on the test requirement.
Optionally, the dirty user pool includes:
the timing module is used for recording the time of calling the user from the user storage pool twice by using the pool, and determining a time interval;
and the second judging module is used for judging whether the time interval is greater than a time threshold value or not and sending each polluted user to the clean user pool when the judgment result shows that the time interval is greater than the time threshold value.
Optionally, the dirty user pool includes:
the detection module is used for detecting the current user residual amount in the user storage pool;
and the third judging module is used for judging whether the residual quantity of the user is less than the residual quantity threshold value or not, and sending each polluted user to the clean user pool when the judging result is that the residual quantity of the user is less than the residual quantity threshold value.
Optionally, the clean user pool includes:
the cleaning module is used for cleaning the recycled polluted users to obtain bare users;
and the second recombination module is connected with the cleaning module and used for recombining the user relationship types of the bare users according to the preset capacity of each sub-pool or the residual quantity of each sub-pool in the current user storage pool and distributing the recombined users to the corresponding sub-pools.
The technical scheme has the following beneficial effects: the SNS test system based on a large number of test users stores users with different user relationship types through each sub-pool of the user storage pool, and the users can be directly called through the user use pool, so that the time for creating the user relationship is reduced; the dirty users are recycled through the dirty user pool and the clean user pool, and the reuse rate of the user relationship is improved.
On the other hand, the embodiment of the invention provides an SNS testing method based on a large number of test users, and the SNS testing method comprises the following steps:
according to the test requirement, calling corresponding users from a user storage pool through a user use pool to perform a test, wherein the user storage pool comprises a plurality of sub-pools, each sub-pool represents different user relationship types, and each sub-pool stores users corresponding to the user relationship types and the number according to a preset capacity;
placing the polluted users after the user use pool test is completed through the dirty user pool, and sending each polluted user to the clean user pool for recycling when the recycling condition is met;
and cleaning each recovered polluted user into a bare user through a clean user pool, recombining user relationship types for each bare user, and correspondingly distributing the user relationship types to each sub-pool of the user storage pool.
Optionally, the invoking, by the user using the pool, the corresponding user from the user storage pool to perform the test specifically includes:
calling corresponding users from the user storage pool according to test requirements;
judging whether the user relationship type meeting the test requirement is a simple relationship type, wherein the simple relationship type is the only user relationship type of the associated object;
when the user relationship type is not a simple relationship type, carrying out user relationship type recombination on the call users according to the test requirements to obtain recombination relationship users; based on the test requirement, testing according to the recombination relation user;
and when the user relationship type is a simple relationship type, testing according to the calling user based on the testing requirement.
Optionally, the contaminated users after the user usage pool test is completed are placed in the dirty user pool, and when the recovery condition is met, the contaminated users are sent to the clean user pool to be recycled, which specifically includes:
recording the time of calling the user from the user storage pool twice by using the pool of the user adjacently, and determining a time interval;
judging whether the time interval is greater than a time threshold value;
and when the judgment result is that the time interval is greater than the time threshold, sending each polluted user to the clean user pool.
Optionally, the contaminated users after the user usage pool test is completed are placed in the dirty user pool, and when the recovery condition is met, the contaminated users are sent to the clean user pool to be recycled, which specifically includes:
detecting the current user residual amount in the user storage pool;
judging whether the residual quantity of the user is smaller than a residual quantity threshold value or not;
and when the judgment result is that the residual quantity of the users is smaller than the residual quantity threshold value, sending each polluted user to the clean user pool.
Optionally, the cleaning, by the clean user pool, each recovered polluted user is cleaned as a bare user, the user relationship type is recombined for each bare user, and the recombined user relationship type is correspondingly allocated to each sub-pool of the user storage pool, which specifically includes:
cleaning each recovered polluted user to obtain a naked user;
recombining the user relationship types of the bare user according to the preset capacity of each sub-pool or the residual quantity of each sub-pool in the current user storage pool;
and distributing the recombined users to the corresponding sub-pools.
The technical scheme has the following beneficial effects: according to the SNS testing method based on a large number of testing users, users with different user relationship types are stored through each sub-pool of the user storage pool, the users can be directly called through the user use pool, and the time for creating the user relationship is reduced; the dirty users are recycled through the dirty user pool and the clean user pool, and the reuse rate of the user relationship 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 some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a unit structure of an SNS test system based on a large number of test users according to an embodiment of the present invention;
FIG. 2 is a flowchart of an SNS testing method based on a large number of test users according to an embodiment of the present invention.
Description of the symbols:
the system comprises a user storage pool-1, a user use pool-2, a calling module-21, a first judgment module-22, a first recombination module-23, a test module-24, a dirty user pool-3, a timing module-31, a second judgment module-32, a clean user pool-4, a cleaning module-41 and a second recombination module-42.
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.
The invention aims to provide an SNS test system based on a large number of test users, which stores users with different user relationship types through each sub-pool of a user storage pool, can directly call the users through a user use pool, and reduces the time for establishing user relationship; the dirty users are recycled through the dirty user pool and the clean user pool, and the reuse rate of the user relationship is improved.
User attributes: the user has its own attributes including nickname, number, status (orange V blue V), etc. The user relationship type: the types of user relationships in the SNS are various, wherein the types of user relationships include: a focuses on B unidirectionally, A focuses on B each other, A single line focuses on B and B focuses on C bidirectionally, A masks B, A focuses on B of interest, A focuses on a large number of users, but is not so limited. And further dividing each user relationship type into a simple relationship type and a complex relationship type according to different numbers of the associated objects. The simple relationship type is a user relationship type unique to the associated object, for example, A only concerns B, and at this time, A does not have any other concerned object, nor does it have a shielding or interested object; for example B only shields C. The complex relationship type is a user relationship type with a plurality of associated objects, such as a large number of users, or a interested in B and a interested in C. Cleaning a user: and deleting the relation between the users in the user pool to enable the user pool to become an independent and clean user. User relationship type reorganization, referred to as relationship reorganization for short: and establishing a new user relationship type for the user, wherein the user comprises a naked user and a relationship user, the relationship user refers to the user with the established user relationship type, and the new user relationship type can be a simple relationship type or a complex relationship type.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
As shown in FIG. 1, the SNS test system based on a large number of test users of the present invention includes a user storage pool 1, a user usage pool 2, a dirty user pool 3, and a clean user pool 4.
The user storage pool 1 includes a plurality of sub-pools, each of which represents different user relationship types, and each of the sub-pools stores users corresponding to the user relationship types and the number according to a predetermined capacity. Wherein, each sub-pool only stores users and does not store user relations. Preferably, each sub-pool stores the account number of the user.
The user usage pool 2 is used for calling corresponding users from the user storage pool to test according to test requirements; the dirty user pool 3 is connected with the user use pool 2 and the clean user pool 4, and is used for placing the polluted users after the user use pool 2 completes the test, and sending each polluted user to the clean user pool 4 for recycling when the recycling condition is met; the clean user pool 4 is used for cleaning each recovered polluted user into a bare user, recombining user relationship types for each bare user, and correspondingly distributing the user relationship types to each sub-pool of the user storage pool 1.
As shown in fig. 1, the user usage pool 2 includes a calling module 21, a first determining module 22, a first restructuring module 23, and a testing module 24.
The retrieving module 21 is configured to retrieve a corresponding user from the user storage pool according to a test requirement; the first judging module 22 is configured to judge whether the user relationship type meeting the test requirement is a simple relationship type, where the simple relationship type is a user relationship type unique to the associated object; the first restructuring module 23 is connected to the invoking module 21 and the first judging module 22, respectively, and is configured to, when the judgment result of the first judging module 22 is that the user relationship type is not a simple relationship type, restructure the user relationship type of the invoking user according to a test requirement, to obtain a restructured relationship user; the testing module 24 is connected to the first judging module 22, the invoking module 21 and the first recombining module 23, respectively, and is configured to perform a test according to the invoking user based on a testing requirement when a judgment result of the first judging module 22 is that the user relationship type is a simple relationship type; and when the judgment result of the first judgment module 22 is that the user type is not the simple relationship type, performing a test according to the recombination relationship user based on a test requirement.
The dirty user pool 3 comprises a timing module 31 and a second decision module 32; the timing module 31 records the time of calling the user from the user storage pool 1 twice adjacent to the user usage pool 2, and determines a time interval; the second determining module 32 is configured to determine whether the time interval is greater than a time threshold, and send each polluted user to the clean user pool when the determination result is that the time interval is greater than the time threshold, so as to realize timely recovery of the polluted users.
In addition, the invention also provides another structure of the dirty user pool 3. Specifically, the dirty user pool 3 includes a detection module and the third judgment module; the detection module is used for detecting the current user residual amount in the user storage pool 1; the third judging module is used for judging whether the residual quantity of the user is smaller than a residual quantity threshold value or not, and sending each polluted user to the clean user pool when the judging result is that the residual quantity of the user is smaller than the residual quantity threshold value, so that the polluted users can be recovered by the threshold value.
The clean user pool 4 comprises a washing module 41 and a second recombination module 42; the cleaning module 41 is used for cleaning each recovered polluted user to obtain a bare user; the second recombining module 41 is connected to the cleaning module 41, and is configured to recombine the user relationship types of the bare users according to the predetermined capacity of each sub-pool or the remaining amount of each sub-pool in the current user storage pool, and allocate the recombined users to the corresponding sub-pools, thereby implementing quota allocation or dynamic allocation.
Further, the second recombining module 41 recombines users with different relationships according to the remaining amount of each sub-pool in the current user storage pool, specifically including: before the user relationship is recombined, the user shortage of which type of relationship is the most in the current user pool is detected, and the user relationship is recombined by taking the user shortage as the priority and distributed to the corresponding sub-pools.
The SNS test system based on a large number of test users simplifies the creation process of the user relationship, reduces the creation cost of the user relationship, greatly improves the test efficiency, shortens the test execution time, and focuses the attention point of the test case on the real test logic. Meanwhile, the user can be cleaned after the execution is finished every time, so that the problem of account pollution is avoided.
In addition, the invention also provides an SNS testing method based on a large number of testing users, which can improve the testing efficiency and the reuse rate of user relationships.
As shown in fig. 2, the SNS test method based on a large number of test users according to the present invention includes:
step 100: and calling the corresponding user from the user storage pool by the user using the pool to test according to the test requirement.
The user storage pool comprises a plurality of sub-pools, each sub-pool represents different user relationship types, and each sub-pool stores users corresponding to the user relationship types and the number according to the preset capacity.
Step 200: and placing the polluted users after the user use pool test is finished through the dirty user pool, and sending each polluted user to a clean user pool for recycling when the recycling condition is met.
Step 300: and cleaning each recovered polluted user into a bare user through a clean user pool, recombining user relationship types for each bare user, and correspondingly distributing the user relationship types to each sub-pool of the user storage pool.
In step 100, the invoking, by the user usage pool, a corresponding user from the user storage pool for testing specifically includes:
step 101: calling corresponding users from the user storage pool according to test requirements;
step 102: judging whether the user relationship type meeting the test requirement is a simple relationship type; the simple relationship type is a user relationship type with a unique associated object;
step 103: when the user relationship type is not a simple relationship type, carrying out user relationship type recombination on the call users according to the test requirements to obtain recombination relationship users; based on the test requirement, testing according to the recombination relation user;
step 104: and when the user relationship type is a simple relationship type, testing according to the calling user based on the testing requirement.
In step 200, the contaminated users after the user usage pool test is completed are placed in the dirty user pool, and when a recovery condition is met, the contaminated users are sent to the clean user pool to be recycled, which specifically includes:
step 201: recording the time of calling the user from the user storage pool twice by using the pool of the user adjacently, and determining a time interval;
step 202: judging whether the time interval is greater than a time threshold value;
step 203: and when the judgment result is that the time interval is greater than the time threshold, sending each polluted user to the clean user pool.
In addition, the placing of the contaminated user after the user use pool test is completed through the dirty user pool may further include:
step 211: detecting the current user residual amount in the user storage pool;
step 212: judging whether the residual quantity of the user is smaller than a residual quantity threshold value or not;
step 213: and when the judgment result is that the residual quantity of the users is smaller than the residual quantity threshold value, sending each polluted user to the clean user pool.
In step 300, the contaminated users after the user usage pool test is completed are placed in the dirty user pool, and when a recovery condition is met, the contaminated users are sent to the clean user pool for recycling, which specifically includes:
step 301: cleaning each recovered polluted user to obtain a naked user;
step 302: recombining the user relationship types of the bare user according to the preset capacity of each sub-pool or the residual quantity of each sub-pool in the current user storage pool;
step 303: and distributing the recombined users to the corresponding sub-pools.
Compared with the prior art, the SNS testing method based on a large number of testing users has the same beneficial effects as the SNS testing system based on a large number of testing users, and the detailed description is omitted.
It should be understood that the specific order or hierarchy of steps in the processes disclosed is an example of exemplary approaches. Based upon design preferences, it is understood that the specific order or hierarchy of steps in the processes may be rearranged without departing from the scope of the present disclosure. The accompanying method claims present elements of the various steps in a sample order, and are not intended to be limited to the specific order or hierarchy presented.
In the foregoing detailed description, various features are grouped together in a single embodiment for the purpose of streamlining the disclosure. This method of disclosure is not to be interpreted as reflecting an intention that the claimed embodiments of the subject matter require more features than are expressly recited in each claim. Rather, as the following claims reflect, invention lies in less than all features of a single disclosed embodiment. Thus, the following claims are hereby expressly incorporated into the detailed description, with each claim standing on its own as a separate preferred embodiment of the invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. To those skilled in the art; various modifications to these embodiments will be readily apparent, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure 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.
What has been described above includes examples of one or more embodiments. It is, of course, not possible to describe every conceivable combination of components or methodologies for purposes of describing the aforementioned embodiments, but one of ordinary skill in the art may recognize that many further combinations and permutations of various embodiments are possible. Accordingly, the embodiments described herein are intended to embrace all such alterations, modifications and variations that fall within the scope of the appended claims. Furthermore, to the extent that the term "includes" is used in either the detailed description or the claims, such term is intended to be inclusive in a manner similar to the term "comprising" as "comprising" is interpreted when employed as a transitional word in a claim. Furthermore, any use of the term "or" in the specification of the claims is intended to mean a "non-exclusive or".
Those of skill in the art will further appreciate that the various illustrative logical blocks, units, and steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate the interchangeability of hardware and software, various illustrative components, elements, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design requirements of the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present embodiments.
The various illustrative logical blocks, or elements, described in connection with the embodiments disclosed herein may be implemented or performed with a general purpose processor, a digital signal processor, an Application Specific Integrated Circuit (ASIC), a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general-purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a digital signal processor core, or any other similar configuration.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. For example, a storage medium may be coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC, which may be located in a user terminal. In the alternative, the processor and the storage medium may reside in different components in a user terminal.
In one or more exemplary designs, the functions described above in connection with the embodiments of the invention may be implemented in hardware, software, firmware, or any combination of the three. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media that facilitate transfer of a computer program from one place to another. Storage media may be any available media that can be accessed by a general purpose or special purpose computer. For example, such computer-readable media can include, but is not limited to, RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to carry or store program code in the form of instructions or data structures and which can be read by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Additionally, any connection is properly termed a computer-readable medium, and, thus, is included if the software is transmitted from a website, server, or other remote source via a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wirelessly, e.g., infrared, radio, and microwave. Such discs (disk) and disks (disc) include compact disks, laser disks, optical disks, DVDs, floppy disks and blu-ray disks where disks usually reproduce data magnetically, while disks usually reproduce data optically with lasers. Combinations of the above may also be included in the computer-readable medium.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A social networking service, SNS, test system based on a number of test users, the SNS test system comprising:
the user storage pool comprises a plurality of sub-pools, each sub-pool represents different user relationship types, and each sub-pool stores users corresponding to the user relationship types and the number according to a preset capacity;
the user usage pool is used for calling the corresponding user from the user storage pool to test according to the test requirement;
the dirty user pool is connected with the user use pool and the clean user pool and used for placing the polluted users after the user use pool tests are completed and sending each polluted user to the clean user pool for recycling when the recycling condition is met;
and the clean user pool is used for cleaning each recovered polluted user as a bare user, recombining the user relationship types of each bare user, and correspondingly distributing the user relationship types to each sub-pool of the user storage pool.
2. A SNS test system based on a number of test users as claimed in claim 1 wherein said user usage pool comprises:
the calling module is used for calling the corresponding user from the user storage pool according to the test requirement;
the first judgment module is used for judging whether the user relationship type meeting the test requirement is a simple relationship type, and the simple relationship type is a user relationship type with a unique associated object;
the first restructuring module is respectively connected with the calling module and the first judging module and is used for restructuring the user relationship type of the calling user according to the test requirement to obtain a restructured relationship user when the judgment result of the first judging module is that the user relationship type is not a simple relationship type;
the testing module is respectively connected with the first judging module, the calling module and the first recombination module and is used for testing according to the calling user based on testing requirements when the judging result of the first judging module is that the user relationship type is a simple relationship type; and when the judgment result of the first judgment module is that the user type is not the simple relationship type, testing according to the recombination relationship user based on the test requirement.
3. A SNS test system based on a number of test users as claimed in claim 1 or claim 2 wherein the dirty user pool comprises:
the timing module is used for recording the time of calling the user from the user storage pool twice by using the pool, and determining a time interval;
and the second judging module is used for judging whether the time interval is greater than a time threshold value or not and sending each polluted user to the clean user pool when the judgment result shows that the time interval is greater than the time threshold value.
4. A SNS test system based on a number of test users as claimed in claim 1 or claim 2 wherein the dirty user pool comprises:
the detection module is used for detecting the current user residual amount in the user storage pool;
and the third judging module is used for judging whether the residual quantity of the user is less than the residual quantity threshold value or not, and sending each polluted user to the clean user pool when the judging result is that the residual quantity of the user is less than the residual quantity threshold value.
5. A SNS test system based on a number of test users in accordance with claim 1 or 2, characterised in that the clean user pool comprises:
the cleaning module is used for cleaning the recycled polluted users to obtain bare users;
and the second recombination module is connected with the cleaning module and used for recombining the user relationship types of the bare users according to the preset capacity of each sub-pool or the residual quantity of each sub-pool in the current user storage pool and distributing the recombined users to the corresponding sub-pools.
6. A Social Networking Service (SNS) testing method based on a large number of test users, the SNS testing method comprising:
according to the test requirement, calling corresponding users from a user storage pool through a user use pool to perform a test, wherein the user storage pool comprises a plurality of sub-pools, each sub-pool represents different user relationship types, and each sub-pool stores users corresponding to the user relationship types and the number according to a preset capacity;
placing the polluted users after the user use pool test is completed through the dirty user pool, and sending each polluted user to the clean user pool for recycling when the recycling condition is met;
and cleaning each recovered polluted user into a bare user through a clean user pool, recombining user relationship types for each bare user, and correspondingly distributing the user relationship types to each sub-pool of the user storage pool.
7. The SNS testing method based on a large number of test users as claimed in claim 6, wherein the step of calling the corresponding user from the user storage pool by the user using the pool for testing specifically comprises:
calling corresponding users from the user storage pool according to test requirements;
judging whether the user relationship type meeting the test requirement is a simple relationship type, wherein the simple relationship type is the only user relationship type of the associated object;
when the user relationship type is not a simple relationship type, carrying out user relationship type recombination on the call users according to the test requirements to obtain recombination relationship users; based on the test requirement, testing according to the recombination relation user;
and when the user relationship type is a simple relationship type, testing according to the calling user based on the testing requirement.
8. The SNS testing method based on a large number of test users as claimed in claim 6 or 7, wherein the contaminated users after the user usage pool test is completed are placed in the dirty user pool, and each contaminated user is sent to the clean user pool for recycling when a recycling condition is satisfied, specifically comprising:
recording the time of calling the user from the user storage pool twice by using the pool of the user adjacently, and determining a time interval;
judging whether the time interval is greater than a time threshold value;
and when the judgment result is that the time interval is greater than the time threshold, sending each polluted user to the clean user pool.
9. The SNS testing method based on a large number of test users as claimed in claim 6 or 7, wherein the contaminated users after the user usage pool test is completed are placed in the dirty user pool, and each contaminated user is sent to the clean user pool for recycling when a recycling condition is satisfied, specifically comprising:
detecting the current user residual amount in the user storage pool;
judging whether the residual quantity of the user is smaller than a residual quantity threshold value or not;
and when the judgment result is that the residual quantity of the users is smaller than the residual quantity threshold value, sending each polluted user to the clean user pool.
10. The SNS testing method based on a large number of test users as claimed in claim 6 or 7, wherein the cleaning of each reclaimed polluted user to a bare user by a clean user pool, the reorganization of user relationship type for each bare user, and the corresponding allocation to each sub-pool of the user storage pool specifically comprises:
cleaning each recovered polluted user to obtain a naked user;
recombining the user relationship types of the bare user according to the preset capacity of each sub-pool or the residual quantity of each sub-pool in the current user storage pool;
and distributing the recombined users to the corresponding sub-pools.
CN201710482266.8A 2017-06-22 2017-06-22 Social Network Service (SNS) testing system and method based on a large number of testing users Active CN107357722B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710482266.8A CN107357722B (en) 2017-06-22 2017-06-22 Social Network Service (SNS) testing system and method based on a large number of testing users

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710482266.8A CN107357722B (en) 2017-06-22 2017-06-22 Social Network Service (SNS) testing system and method based on a large number of testing users

Publications (2)

Publication Number Publication Date
CN107357722A CN107357722A (en) 2017-11-17
CN107357722B true CN107357722B (en) 2020-03-31

Family

ID=60272994

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710482266.8A Active CN107357722B (en) 2017-06-22 2017-06-22 Social Network Service (SNS) testing system and method based on a large number of testing users

Country Status (1)

Country Link
CN (1) CN107357722B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108427637B (en) * 2018-01-18 2021-05-25 平安科技(深圳)有限公司 Test case recommendation method, electronic device and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004220356A (en) * 2003-01-15 2004-08-05 Nec Corp Test data management system, test data management method, data processing device, and data processing program
CN102567204A (en) * 2011-12-28 2012-07-11 云海创想信息技术(无锡)有限公司 Method for managing automatic testing data
CN103635885A (en) * 2011-06-28 2014-03-12 微软公司 Deploying environments for testing by providing instantaneous availability of prebuilt environments
CN103902456A (en) * 2014-04-09 2014-07-02 中国工商银行股份有限公司 Test script processing device, system and method
CN104615667A (en) * 2015-01-13 2015-05-13 联动优势电子商务有限公司 Basic data generation method and device and test data generation method and device
CN106059900A (en) * 2016-06-23 2016-10-26 北京星网联亿科技有限公司 Intelligent management platform based on social networking services (SNS)

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004220356A (en) * 2003-01-15 2004-08-05 Nec Corp Test data management system, test data management method, data processing device, and data processing program
CN103635885A (en) * 2011-06-28 2014-03-12 微软公司 Deploying environments for testing by providing instantaneous availability of prebuilt environments
CN102567204A (en) * 2011-12-28 2012-07-11 云海创想信息技术(无锡)有限公司 Method for managing automatic testing data
CN103902456A (en) * 2014-04-09 2014-07-02 中国工商银行股份有限公司 Test script processing device, system and method
CN104615667A (en) * 2015-01-13 2015-05-13 联动优势电子商务有限公司 Basic data generation method and device and test data generation method and device
CN106059900A (en) * 2016-06-23 2016-10-26 北京星网联亿科技有限公司 Intelligent management platform based on social networking services (SNS)

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Automated generation of test oracles using a model-driven approach;Mario Piattini, et al.;《Information and Software Technology》;20130228;第55卷(第2期);第301-319页 *
基于数据挖掘的测试工程数据整合分析平台;韩茂等;《电子设计工程》;20150630;第23卷(第11期);第105-109页 *

Also Published As

Publication number Publication date
CN107357722A (en) 2017-11-17

Similar Documents

Publication Publication Date Title
CN106339222B (en) A kind of service implementing method and device
CN106790744B (en) IP scheduling method and system
CN105468619A (en) Resource distribution method and device used for database connection pool
CN106649602B (en) Business object data processing method, device and server
CN107798046A (en) Client identity information processing method, device, storage medium and computer equipment
CN105897933A (en) Service request processing method and device
CN107357722B (en) Social Network Service (SNS) testing system and method based on a large number of testing users
CN108205520A (en) KPI and QoE regression models method for building up and device
CN106411638A (en) Method and system for processing monitoring data in cloud monitoring system
CN104519145A (en) An address resource managing method, system and DHCP server
CN111324583B (en) Service log classification method and device
CN108646987A (en) A kind of management method of file volume, device, storage medium and terminal
CN110149352A (en) A kind of service request processing method, device, computer equipment and storage medium
CN107612753A (en) Processing method, device and the radio reception device of wireless messages
CN111352579B (en) Data storage method and device
CN107193721B (en) Method and device for generating log
CN110427557A (en) Main broadcaster's recommended method, device, electronic equipment and computer readable storage medium
CN105812203B (en) A kind of request message processing method and equipment
CN106339482A (en) Method and device for determining optimal communication time of merchants
CN104951920A (en) Device and method for service interface processing
CN104504542A (en) Satisfaction message collection method, device and system and digital collector
CN107704548A (en) A kind of storage medium and storage method of object data, device and equipment
CN104424096A (en) Automatic testing system and method for Android platform based device
CN107566182A (en) The adapting method and system of a kind of NFS
CN106445522A (en) Storage interface display method based on floating window

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