Automatic scene inspection method and device for online live classroom and medium

CN118659977APending Publication Date: 2024-09-17BEIJING BAIGEFEICHI TECH LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410811075.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

[0017]·支持的协议单一(仅http)

Benefits of technology

[0054]The scene automated inspection method of the online live classroom of the present invention refers to the actual scene of the online live classroom, simulates the class role by configuring multiple student accounts and at least one teacher account of the online live classroom, and simulates the inspection scene by creating the online live classroom In the class scene, through the inspection process, automatic inspection of the functional actions of different roles in different class scenes is realized, covering the complex scene requirements of online live classes, thus solving the problem of automatic inspection of scenes in online live classes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118659977A
    Figure CN118659977A
Patent Text Reader

Abstract

The invention discloses an automatic scene inspection method and device for an online live classroom and a medium, and the method comprises the steps: configuring a plurality of student accounts and at least one teacher account of the online live classroom; creating an inspection scene of the online live classroom, and generating an inspection scene file; the student account parameters, the teacher account parameters and the inspection scene file are input into an inspection program, the inspection program initializes class scenes according to the inspection scene file, creates class roles according to the student account parameters and the teacher account parameters, starts inspection processes of different role function actions in the class scenes, and executes the inspection process; and reporting the inspection progress and the inspection result. The scene automatic inspection method for the online live classroom disclosed by the invention covers the composite scene requirement of the online live classroom, so that the scene automatic inspection problem of the online live classroom is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of online live broadcast technology, and specifically provides an automated inspection method, device and medium for scenes of online live broadcast classrooms. Background Art

[0002] In the online education industry, live classroom teaching is a very important teaching link. In the process of online classes, the atmosphere of offline classes is simulated as much as possible. The main teacher needs to interact with students in various ways to improve students' participation and concentration. The tutor runs through the entire learning cycle of students. In order to urge students to come to class on time and enable students to integrate into classroom learning as soon as possible and have a sense of participation, the tutor will go out before class. The tutor will warm up the atmosphere and preview the knowledge points before class. At the same time, the tutor will follow the class during the class to correct some of the students' inattention behaviors and keep abreast of the students' classroom learning situation. A complete class is taught by the main teacher and the tutor, that is, a dual-teacher teaching classroom.

[0003] The dual-teacher teaching classroom has the following characteristics:

[0004] Functional level: Students' behaviors are discrete and independent. There are nearly 100 types of live broadcast rooms, live broadcast types, scenes, and other combinations, and there are 20 to 30 commonly used ones. It is very costly to cover the three roles (students, main teachers, and tutors) and scenes through human regression. There are also uncertainties.

[0005] Technical level: In addition to open source frameworks and protocols, in order to better fit business and communication, many internal private protocols are also involved: long connections, streaming media, etc.

[0006] Therefore, there is an urgent need to abstractly design a set of models that can simulate role behaviors to automatically cover various scenarios, that is, to arrange the behavior actions of various roles in a time series (entering and exiting the classroom, interacting, connecting to microphones, PK, gestures, concentration and other interactive feedback), so as to realize the automatic inspection of online live classroom scenes.

[0007] There are many existing interface automation platforms in the industry, and the differences mainly lie in the case writing syntax and report style. The core implementation capabilities are all based on calling the interface of the tested service through the HTTP protocol for testing, and usually only support fixed case operation steps.

[0008] The core process is as follows Figure 1As shown in the figure, users can use the case management function to write different test cases (testcase) using case writing languages ​​(ymail, json, etc.), and can also assemble more test cases, custom functions, environment variables, and parameterize test cases to form a set of test case collections (testsuite). The underlying automation engine loads the test collection, sends requests according to the collection configuration, verifies the accuracy of the core fields of the return value, and outputs a report.

[0009] This conventional interface automation platform is more suitable for testing the availability of a single core function under normal service conditions, such as function unavailability, service downtime, severe network jitter, cloud vendor failure, etc.

[0010] The current interface automation solution is more suitable for a single sequential arrangement of functional scenarios, and has limited coverage in the complex scenario of a dual-teacher classroom, as shown in the following aspects:

[0011] Low degree of freedom in configuration of inspection scenarios

[0012] The support for multi-scenario, multi-role, and random action choreography is insufficient. A large number of testcase sets need to be configured, which is a huge workload and has a high dimensionality cost.

[0013] ·State synchronization between multiple roles cannot be supported

[0014] Different testcase roles cannot communicate with each other, and their status cannot be synchronized, which affects the correctness of the function.

[0015] Insufficient concurrency support

[0016] The real scenario is that there are hundreds of students, dozens of lecturers, and hundreds of tutors working at the same time, and the concurrency requirement is high. However, the current case scheduling cost is very high and cannot meet the timeliness requirements of the classroom.

[0017] Supports a single protocol (http only)

[0018] The supported protocols are relatively simple, such as websocket, webrtc, and some private protocols are not supported, and the functional coverage is incomplete.

[0019] In view of this, the present invention patent is proposed. Summary of the invention

[0020] In response to the above technical problems, since the classroom environment of live classroom teaching is relatively complex, the conventional interface automation platform cannot cover the complex scene requirements of online live classroom for automated inspection. The present invention proposes a scene automated inspection method, device and medium for online live classroom.

[0021] Specifically, the following technical solutions are adopted:

[0022] In a first aspect, the present invention provides an automated inspection method for online live classroom scenes, comprising:

[0023] Configure multiple student accounts and at least one teacher account for online live classes;

[0024] Create inspection scenarios for online live classes and generate inspection scenario files;

[0025] The student account parameters, teacher account parameters and inspection scene files are input into the inspection program, the inspection program initializes the class scene according to the inspection scene file, creates the class role according to the student account parameters and teacher account parameters, starts the inspection process of different role function actions in each class scene, and executes the inspection process;

[0026] Report inspection progress and results.

[0027] As an optional implementation mode of the present invention, in the scene automated inspection method of the online live classroom of the present invention, each inspection process includes a student role created according to the student account parameters and a teacher role created according to the teacher account parameters, and each role starts the corresponding instance task according to the number of parameter configurations and automatically randomly serialized behavior actions, and concurrently executes the commands and scripts configured in the inspection scene file to perform the inspection process.

[0028] As an optional embodiment of the present invention, in the scene automatic inspection method of the online live classroom of the present invention, during the inspection process, each role starts the corresponding instance task according to the number of parameter configurations and the automatically randomly serialized behavior actions, including:

[0029] Set up behavior queue pools for student roles and teacher roles respectively;

[0030] According to the role, the corresponding behavior queue pool is automatically randomly arranged to obtain the automatically randomly serialized behavior actions of each role;

[0031] Among them, when the behaviors are automatically randomly arranged in the behavior queue pool, the order of the behaviors needs to meet the sequential arrangement.

[0032] As an optional implementation mode of the present invention, in the scene automated inspection method of the online live classroom of the present invention, during the inspection process, each inspection process realizes the state switching of the live room of the online live classroom by introducing a finite state machine, and the finite state machine is shared by all roles of the corresponding inspection process to realize state synchronization among multiple roles.

[0033] As an optional implementation of the present invention, in the scene automatic inspection method of the online live classroom of the present invention, the inspection program is developed based on the Go language, and the Lua virtual machine is introduced to implement various behavior actions or business process definitions;

[0034] The inspection scenario is described and explained through a json file. The inspection scenario is loaded when the inspection is started, and functional inspection is performed according to the random action arrangement of each role.

[0035] As an optional implementation of the present invention, in the scene automatic inspection method of the online live classroom of the present invention, the configuration of multiple student accounts and at least one teacher account of the online live classroom includes:

[0036] Configure multiple student accounts to simulate the student roles in online live classes;

[0037] Configure a lecturer account to simulate the role of the lecturer in the online live class;

[0038] Configure at least one tutor account to simulate the role of a tutor in an online live classroom;

[0039] Each of the inspection processes includes the role of a student, the role of a lecturer, and the role of a tutor.

[0040] As an optional implementation manner of the present invention, in the scene automatic inspection method of the online live classroom of the present invention, the inspection program supports the http protocol, the websocket protocol, the webrtc protocol, and has a built-in private protocol sdk.

[0041] As an optional embodiment of the present invention, the scene automatic inspection method of the online live classroom of the present invention includes:

[0042] Input multiple student accounts, at least one tutor account, a lecturer account, and classroom inspection scenarios into the inspection program;

[0043] The inspection program initializes the class scene according to the inspection scene, and creates class roles according to the student account, tutor account, and lecturer account;

[0044] Simulate discrete students entering the classroom, establish long connections to interact with the lecturer, tutor, and other students, and stream videos;

[0045] Simulate a tutor entering the classroom: push a video stream, establish a long connection to send interactive questions, chat with students, and return to the classroom. Different tutors have their own behavior sequences.

[0046] After the class time comes, the main teacher enters the classroom: pushes the video, establishes a long connection, and the main teacher cuts the stream. All students enter the main live broadcast room. At this time, all the auxiliary live broadcast rooms of the tutors are closed. The main teacher will also have his own random behavior sequence;

[0047] The students, tutors, and lecturers behave independently to ensure normal functions and self-consistent data in various inspection scenarios.

[0048] In a second aspect, the present invention provides an automatic scene inspection device for an online live classroom, characterized in that it includes:

[0049] The inspection management platform includes an account role management module and a scene creation module, wherein the account role management module is used to configure multiple student accounts and at least one teacher account of the online live classroom, and the scene creation module is used to create an inspection scene of the online live classroom and generate an inspection scene file;

[0050] The inspection module inputs the student account parameters, teacher account parameters and inspection scenario files into the inspection program. The inspection program initializes the class scene according to the inspection scenario files, creates the class role according to the student account parameters and teacher account parameters, starts the inspection process of different role function actions in each class scene, and executes the inspection process;

[0051] Inspection reporting module, reporting inspection progress and inspection results.

[0052] In a third aspect, the present invention provides a computer-readable recording medium storing a computer-executable program, characterized in that when the computer-executable program is executed, the method for automated scene inspection of the online live classroom is implemented.

[0053] Compared with the prior art, the present invention has the following beneficial effects:

[0054] The scene automatic inspection method of the online live classroom of the present invention refers to the actual scene of the online live classroom, simulates the class role by configuring multiple student accounts and at least one teacher account of the online live classroom, simulates the class scene by creating the inspection scene of the online live classroom, and realizes the automatic inspection of the functional actions of different roles in different class scenes through the inspection process, covering the complex scene requirements of the online live classroom, thereby solving the scene automatic inspection problem of the online live classroom.

[0055] Therefore, the scene automation inspection method of the online live classroom of the present invention starts from the actual user behavior, and aims to solve the business model under the Cartesian product scene combination + discrete random user behavior. How to ensure the normal function of each business, rather than the accuracy of a single interface and a single process, is the main feature of the model that is different from the existing interface automation. The scene automation inspection method of the online live classroom of the present invention pays more attention to discrete, random, interactive and other operations. According to the current project benefits, it solves a large number of business regression costs and saves manpower; it also provides a bottom-up guarantee for precision testing.

[0056] The scene automatic inspection method of the online live classroom of the present invention has the following technical effects:

[0057] High degree of freedom in configuration of inspection scenarios and low maintenance costs

[0058] Built-in behavior queue pool, which can achieve random combination. It is simpler, more random and easier to maintain than the conventional automation using configuration interface files as configuration.

[0059] Supports state synchronization among multiple roles, and communication is convenient and reliable.

[0060] Introduce a state machine to synchronize the states between roles. This live broadcast room state is an FSM (Finite State Machine for short) in the inspection. It is part of the state of a process and is shared by all actors (student, teacher, assistant) associated with the process. The DoEvent interface is implemented, so the inspection program can be notified through this interface for state synchronization.

[0061] · Golang has a natural advantage in concurrency.

[0062] Go coroutines provide a powerful tool for concurrent programming, combining lightweight and efficient features.

[0063] 1) Startup overhead: The startup overhead of a Goroutine is much smaller than that of a thread. Therefore, you can easily start thousands of goroutines.

[0064] 2) Memory footprint: The stack size of each goroutine starts small (usually a few KB) and can grow and shrink as needed, while threads usually require a fixed, larger stack memory (usually 1MB or more).

[0065] 3) Scheduling: Go coroutines are scheduled by the Go runtime system rather than the operating system. This means that context switching between Go coroutines is less expensive.

[0066] 4) Security: Go coroutines provide developers with a simplified concurrency model, and with synchronization mechanisms such as channels, they reduce common errors in concurrent programs.

[0067] Supports a wide range of protocols

[0068] In addition to supporting http protocol, websocket, and webrtc, this inspection program also has built-in SDKs for private protocols. It can better fit the company's technical architecture and middleware, and more comprehensively cover protocols and business functions. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] Figure 1 Flowchart of inspections performed on the existing interface automation platform;

[0070] Figure 2 A flow chart of a method for automated inspection of online live classroom scenes according to an embodiment of the present invention;

[0071] Figure 3 A schematic structural diagram of an electronic device according to an embodiment of the present invention;

[0072] Figure 4 Schematic diagram of a computer-readable recording medium according to an embodiment of the present invention. DETAILED DESCRIPTION

[0073] To make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be described clearly and completely in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them.

[0074] Therefore, the following detailed description of the embodiments of the present invention is not intended to limit the scope of the invention claimed for protection, but merely represents some embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0075] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features and technical solutions in the embodiments may be combined with each other.

[0076] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0077] In the description of the present invention, it should be noted that the orientation or positional relationship indicated by the terms "upper", "lower", etc. is based on the orientation or positional relationship shown in the drawings, or the orientation or positional relationship in which the invention product is usually placed when in use, or the orientation or positional relationship commonly understood by those skilled in the art. Such terms are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

[0078] Embodiment 1

[0079] See also Figure 1 As shown, the scene automatic inspection method of the online live classroom of this embodiment includes:

[0080] Configure multiple student accounts and at least one teacher account for online live classes;

[0081] Create inspection scenarios for online live classes and generate inspection scenario files;

[0082] The student account parameters, teacher account parameters and inspection scene files are input into the inspection program, the inspection program initializes the class scene according to the inspection scene file, creates the class role according to the student account parameters and teacher account parameters, starts the inspection process of different role function actions in each class scene, and executes the inspection process;

[0083] Report inspection progress and results.

[0084] The scene automated inspection method of the online live classroom of this embodiment refers to the actual scene of the online live classroom, simulates the class roles by configuring multiple student accounts and at least one teacher account of the online live classroom, simulates the class scene by creating an inspection scene of the online live classroom, and realizes automatic inspection of the functional actions of different roles in different class scenes through the inspection process, covering the complex scene requirements of the online live classroom, thereby solving the problem of scene automated inspection of the online live classroom.

[0085] Therefore, the scene automation inspection method of the online live classroom of this embodiment starts from the actual user behavior, and aims to solve the business model under the Cartesian product scene combination + discrete random user behavior. How to ensure the normal function of each business function, rather than the accuracy of a single interface and a single process, is the main feature of the model that is different from the existing interface automation. The scene automation inspection method of the online live classroom of this embodiment pays more attention to discrete, random, interactive and other operations. According to the current project benefits, it solves a large amount of business regression costs and saves manpower; it also provides a bottom-up guarantee for precision testing.

[0086] Furthermore, in the scene automated inspection method for online live classrooms of the present embodiment, each inspection process includes a student role created according to the student account parameters and a teacher role created according to the teacher account parameters. Each role starts the corresponding instance task according to the number of parameter configurations and automatically randomly serialized behavior actions, and concurrently executes the commands and scripts configured in the inspection scene file to perform the inspection process.

[0087] Due to the automatic random arrangement of various role behaviors of student roles and teacher roles involved in online live classes (such as entering and leaving the classroom, interacting, connecting to microphones, PK, gestures, concentration, chatting, raising hands, and other one-time or repetitive classroom behaviors), which are more random and more in line with the user's discrete behaviors, the scene automated inspection of the online live classroom in this embodiment is more in line with the actual scene, and the automatic inspection report is more valuable.

[0088] In addition, this embodiment creates multiple student roles, and each inspection process includes a student role and a teacher role, which better simulates the actual scene of the online live classroom and realizes automated inspection in various inspection scenarios.

[0089] Specifically, in the scene automatic inspection method of the online live classroom of this embodiment, during the inspection process, each role starts the corresponding instance task according to the number of parameter configurations and the automatically randomly sequenced behavior actions, including:

[0090] Set up behavior queue pools for student roles and teacher roles respectively;

[0091] According to the role, the corresponding behavior queue pool is automatically randomly arranged to obtain the automatically randomly serialized behavior actions of each role;

[0092] Among them, when the behaviors are automatically randomly arranged in the behavior queue pool, the order of the behaviors needs to meet the sequential arrangement.

[0093] This embodiment has a built-in behavior queue pool, which can be randomly combined. Different roles have their own behavior queue sets. Except for the priority behaviors (students must interact with tutors after entering the classroom, and teachers must also interact after entering the classroom), other behaviors are randomly combined. It is simpler, more random, and easier to maintain than conventional automation using configuration interface files as configuration.

[0094] Specifically, in the scene automated inspection method of the online live classroom of this embodiment, during the inspection process, each inspection process realizes the state switching of the live room of the online live classroom by introducing a finite state machine. The finite state machine is shared by all roles of the corresponding inspection process to realize state synchronization among multiple roles.

[0095] In this embodiment, all roles share the finite state machine of the online live classroom. According to the state of the live broadcast room of the online live classroom, each role switches synchronously to achieve state synchronization of each role and ensure the correctness of the function.

[0096] The synchronization of the internal state machine in this embodiment, such as the main teacher switching live broadcast rooms, sending interactions, students submitting interactions, collecting answer data, monitoring user behavior, and the main teacher closing interactions, etc., the data communication between scripts only provides process-level data isolation, and cannot provide user-level data isolation. The inspection program provides two other groups of interfaces to provide user-level data caching within the process.

[0097] As an optional implementation of this embodiment, in the scene automatic inspection method of the online live classroom of this embodiment, the inspection program is developed based on the Go language, and the Lua virtual machine is introduced to implement various behavior actions or business process definitions;

[0098] The inspection scenario is described and explained through a json file. The inspection scenario is loaded when the inspection is started, and functional inspection is performed according to the random action arrangement of each role.

[0099] Furthermore, in the scene automated inspection method of the online live classroom of this embodiment, the inspection program supports the http protocol, the websocket protocol, the webrtc protocol, and has a built-in private protocol SDK.

[0100] Inspection has certain requirements for concurrency, so the inspection program of this embodiment is developed based on the go language, and the lua virtual machine is introduced to implement various behavioral actions or business process definitions. The live broadcast scene is described and explained through a json file. The live broadcast scene is loaded when the inspection starts, and functional inspections are performed according to the random action arrangement of each role. In addition, since services such as long connections and streaming media involve private protocols, independent SDKs are also integrated for support. The overall operation provides a visual platform to provide users with convenient and intuitive operations. The following are the libs and middleware that the program mainly depends on:

[0101] The whole system is developed based on Google.

[0102] gopher-lua is mainly used by golang to call functions in lua.

[0103] gopher-lua-libs is a collection of third-party libraries that can be used to write lua scripts (such as json, http). This is mainly used for lua.

[0104] gopher-luar is used to give the lua script access to the interfaces and functions exposed to it in the go main program.

[0105] ·Mysql: used for persistent data.

[0106] The private protocol SDK is used to interact with the streaming media long connection.

[0107] ·The company's internal system provides API, account management and update, and construct basic inspection data.

[0108] As an optional implementation of this embodiment, in the scene automatic inspection method of the online live classroom of this embodiment, the configuration of multiple student accounts and at least one teacher account of the online live classroom includes:

[0109] Configure multiple student accounts to simulate the student roles in online live classes;

[0110] Configure a lecturer account to simulate the role of the lecturer in the online live class;

[0111] Configure at least one tutor account to simulate the role of a tutor in an online live classroom;

[0112] Each of the inspection processes includes the role of a student, the role of a lecturer, and the role of a tutor.

[0113] This embodiment configures the lecturer account and the tutor account to simulate the lecturer role and the tutor role, thereby achieving composite scenario coverage of the dual-teacher online live classroom.

[0114] The classroom environment of the dual-teacher online live classroom is relatively complex, and it is necessary to simulate the behaviors of different roles (main teacher, tutor, student) in different scenarios with a robot program. Due to the large number of people and scenes (threads) involved, there are requirements for concurrent performance. The inspection program of this embodiment is developed using the go language, and Gopher-lua is introduced. The lua language has good scalability. It also provides a rich Go API, which can easily embed the scripting language into the Go host program for loading and execution, and is used to simulate the discrete behavior of the role. Different live broadcast scenes are described by configuration files (json). It is provided to users for configuration and management through a visual page. The above is the overall design of the inspection robot.

[0115] The runtime files of the entire inspection program include the following three categories:

[0116] ①Inspection engine, which is the main program of the robot.

[0117] ②Inspection scene file (json), which is the scene loaded by the inspection program.

[0118] ③l ua script, which is the program plug-in referenced by the inspection scene file.

[0119] To make a simple analogy, the inspection engine is equivalent to the operating system, the inspection scenario files are equivalent to the various program files (exe), and the lua script is equivalent to the program plug-in (dll).

[0120] Therefore, the runtime model of the inspection program is similar to the process management of the operating system. Each scenario corresponds to a program. When a command is received to run an inspection scenario, a process is started using the program and parameters. Each process contains three types of roles: students, main teachers, and tutors. These actors will start the corresponding instance tasks according to the number of parameter configurations and automatically randomly serialized behavior actions, and concurrently execute the commands and lua scripts configured in the program. Finally, the inspection results are reported to the platform for display.

[0121] For example, in the following classroom scenario: Before the main teacher starts the class, the tutor needs to appear on camera to warm up the learning atmosphere and preview the knowledge points in advance. When the class starts, the main teacher switches the stream, that is, all the students under the tutor are switched to the main teacher's live broadcast room for class. At this time, the tutor follows the class, pays attention to the students' concentration in class, their answers in class, and collaborates with the main teacher in real time to adjust the teaching status in real time. Students interact with the main teacher in real time and answer questions.

[0122] In view of the above scenario, the scene automatic inspection method of the online live classroom of this embodiment includes:

[0123] Input multiple student accounts (usually no less than 20), at least one tutor account (no less than 2), the lecturer account, and the classroom inspection scene into the inspection program in the form of an http interface.

[0124] The inspection program initializes the class scene according to the inspection scene, and creates class roles according to the student account, tutor account, and main teacher account.

[0125] Simulate discrete students entering the classroom, establish long connections to interact with the main teacher, tutors, and other students, and stream videos; students' behaviors are discrete and random, some enter the classroom early, some are late, some enter the classroom repeatedly, some are chatting, and some are not very focused... Different students have their own independent behavior sequences.

[0126] Simulate a tutor entering the classroom: push a video stream, establish a long connection to send interactive questions, chat with students, and return to the classroom. Different tutors have their own behavior sequences.

[0127] After the simulation reaches the class time, the main teacher enters the classroom: pushes the video to establish a long connection, the main teacher cuts the stream, and all students enter the main live broadcast room. At this time, the auxiliary live broadcast rooms of all tutors are over. The main teacher will also have his own random behavior sequence; exit the classroom, pause the live broadcast, start the live broadcast, send interactive questions, chat with students... At this time, the tutor is following the class and collecting students' class data.

[0128] The students, tutors, and lecturers behave independently to ensure normal functions and self-consistent data in various inspection scenarios.

[0129] In summary, the scene automatic inspection method of the online live classroom of this embodiment has the following technical effects:

[0130] High degree of freedom in configuration of inspection scenarios and low maintenance costs

[0131] Built-in behavior queue pool, which can achieve random combination. It is simpler, more random and easier to maintain than the conventional automation using configuration interface files as configuration.

[0132] Supports state synchronization among multiple roles, and communication is convenient and reliable.

[0133] Introduce a state machine to synchronize the states between roles. This live broadcast room state is an FSM (Finite State Machine for short) in the inspection. It is part of the state of a process and is shared by all actors (student, teacher, assistant) associated with the process. The DoEvent interface is implemented, so the inspection program can be notified through this interface for state synchronization.

[0134] · Golang has a natural advantage in concurrency.

[0135] Go coroutines provide a powerful tool for concurrent programming, combining lightweight and efficient features.

[0136] 1) Startup overhead: The startup overhead of a Goroutine is much smaller than that of a thread. Therefore, you can easily start thousands of goroutines.

[0137] 2) Memory footprint: The stack size of each goroutine starts small (usually a few KB) and can grow and shrink as needed, while threads usually require a fixed, larger stack memory (usually 1MB or more).

[0138] 3) Scheduling: Go coroutines are scheduled by the Go runtime system rather than the operating system. This means that context switching between Go coroutines is less expensive.

[0139] 4) Security: Go coroutines provide developers with a simplified concurrency model, and with synchronization mechanisms such as channels, they reduce common errors in concurrent programs.

[0140] Supports a wide range of protocols

[0141] In addition to supporting http protocol, websocket, and webrtc, this inspection program also has built-in SDKs for private protocols. It can better fit the company's technical architecture and middleware, and more comprehensively cover protocols and business functions.

[0142] See also Figure 1 As shown, this embodiment also provides an automatic inspection device for online live classroom scenes, including:

[0143] The inspection management platform includes an account role management module and a scene creation module, wherein the account role management module is used to configure multiple student accounts and at least one teacher account of the online live classroom, and the scene creation module is used to create an inspection scene of the online live classroom and generate an inspection scene file;

[0144] The inspection module inputs the student account parameters, teacher account parameters and inspection scenario files into the inspection program. The inspection program initializes the class scene according to the inspection scenario files, creates the class role according to the student account parameters and teacher account parameters, starts the inspection process of different role function actions in each class scene, and executes the inspection process;

[0145] Inspection reporting module, reporting inspection progress and inspection results.

[0146] The scene automatic inspection device of the online live classroom of this embodiment refers to the actual scene of the online live classroom, configures multiple student accounts and at least one teacher account of the online live classroom to simulate the class role through the account role management module of the inspection management platform, creates the inspection scene of the online live classroom to simulate the class scene through the scene creation module of the inspection management platform, and realizes automatic inspection of the functional actions of different roles in different class scenes through the inspection module, covering the complex scene requirements of the online live classroom, thereby solving the problem of scene automatic inspection of the online live classroom.

[0147] Therefore, the scene automation inspection device of the online live classroom of this embodiment starts from the actual user behavior, and aims to solve the business model under the Cartesian product scene combination + discrete random user behavior. How to ensure the normal operation of each business function, rather than the accuracy of a single interface and a single process, is the main feature of the model that is different from the existing interface automation. The scene automation inspection device of the online live classroom of this embodiment pays more attention to discrete, random, interactive and other operations. According to the current project benefits, it solves a large amount of business regression costs and saves manpower; it also provides a bottom-up guarantee for precision testing.

[0148] Specifically, see Figure 1 As shown, in the scene automatic inspection device of the online live classroom of this embodiment:

[0149] ① Manage the account roles of various inspection roles, automatically create inspection scenarios according to business / regression requirements, display inspection reports, and persist data. If the alarm threshold is reached, notify business R&D and test personnel by email, DingTalk, etc.

[0150] ② Notify the inspection program of the scene data and role account parameters and initiate the inspection.

[0151] ③~⑤Start the inspection process of different roles in each scenario. Each process contains three roles (students, main teachers, and tutors), and performs inspections according to their own randomly serialized actions. The status between roles is synchronously updated through the internal state machine, and the core field accuracy of each functional interface return value is checked.

[0152] ⑥Report inspection progress and alarm information in real time.

[0153] Embodiment 2

[0154] The following describes an electronic device embodiment of the present invention, which can be regarded as a specific physical implementation of the method and device embodiments of the present invention. The details described in the electronic device embodiment of the present invention should be regarded as a supplement to the above method or device embodiments; details not disclosed in the electronic device embodiment of the present invention can be implemented with reference to the above method or device embodiments.

[0155] Figure 3 It is a structural diagram of an electronic device of an embodiment of the present invention, the electronic device includes a processor and a memory, the memory is used to store a computer executable program, when the computer program is executed by the processor, the processor executes the scene automatic inspection method of the online live classroom of embodiment one.

[0156] like Figure 3As shown, the electronic device is presented in the form of a general computing device. The processor may be one or more and work in coordination. The present invention does not exclude distributed processing, that is, the processor may be dispersed in different physical devices. The electronic device of the present invention is not limited to a single entity, but may also be the sum of multiple physical devices.

[0157] The memory stores a computer executable program, which is usually a machine-readable code. The computer-readable program can be executed by the processor to enable the electronic device to perform the method of the present invention, or at least part of the steps in the method.

[0158] The memory includes a volatile memory, such as a random access memory unit (RAM) and / or a cache memory unit, and may also be a non-volatile memory, such as a read-only memory unit (ROM).

[0159] Optionally, in this embodiment, the electronic device further includes an I / O interface, which is used for the electronic device to exchange data with an external device. The I / O interface can represent one or more of several types of bus structures, including a storage unit bus or a storage unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of a variety of bus structures.

[0160] It should be understood that Figure 3 The electronic device shown is only an example of the present invention, and the electronic device of the present invention may also include elements or components not shown in the above examples. For example, some electronic devices also include display units such as display screens, and some electronic devices also include human-computer interaction elements such as buttons, keyboards, etc. As long as the electronic device can execute the computer-readable program in the memory to implement the method of the present invention or at least part of the steps of the method, it can be considered as an electronic device covered by the present invention.

[0161] Figure 4 Schematic diagram of a computer readable recording medium according to an embodiment of the present invention. Figure 4As shown, a computer executable program is stored in a computer-readable recording medium, and when the computer executable program is executed, the scene automatic inspection method of the online live classroom of the first embodiment of the present invention is implemented. The computer-readable recording medium may include a data signal propagated in a baseband or as part of a carrier, which carries a readable program code. This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable recording medium can also be any readable medium other than a readable recording medium, which can send, propagate or transmit a program for use by or in combination with an instruction execution system, device or device. The program code contained on the readable recording medium can be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.

[0162] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0163] Through the above description of the implementation mode, it is easy for those skilled in the art to understand that the present invention can be implemented by hardware capable of executing a specific computer program, such as the system of the present invention, and the electronic processing unit, server, client, mobile phone, control unit, processor, etc. contained in the system. The present invention can also be implemented by computer software that executes the method of the present invention, such as control software executed by a microprocessor, an electronic control unit, a client, a server, etc. However, it should be noted that the computer software that executes the method of the present invention is not limited to being executed by one or a specific hardware entity, and it can also be implemented in a distributed manner by unspecified specific hardware. For computer software, the software product can be stored in a computer-readable recording medium (which can be a CD-ROM, a USB flash drive, a mobile disk, etc.), and can also be distributed and stored on the network, as long as it enables the electronic device to execute the method according to the present invention.

[0164] The above embodiments are only used to illustrate the present invention and are not intended to limit the technical solutions described in the present invention. Although the present invention has been described in detail with reference to the above embodiments, the present invention is not limited to the above specific implementation methods. Therefore, any modification or equivalent replacement of the present invention; and all technical solutions and improvements thereof that do not depart from the spirit and scope of the invention are included in the scope of the claims of the present invention.

Claims

1. The scene automatic inspection method of online live classroom is characterized by: include: Configure multiple student accounts and at least one teacher account for online live classes; Create inspection scenarios for online live classes and generate inspection scenario files; The student account parameters, teacher account parameters and inspection scene files are input into the inspection program, the inspection program initializes the class scene according to the inspection scene file, creates the class role according to the student account parameters and teacher account parameters, starts the inspection process of different role function actions in each class scene, and executes the inspection process; Report inspection progress and results.

2. The scene automatic inspection method of the online live classroom according to claim 1 is characterized in that: Each inspection process includes a student role created according to the student account parameters and a teacher role created according to the teacher account parameters. Each role starts the corresponding instance task according to the number of parameter configurations and automatically randomly serialized behavior actions, and concurrently executes the commands and scripts configured in the inspection scenario file to perform the inspection process.

3. The scene automatic inspection method of the online live classroom according to claim 2 is characterized in that: During the inspection process, each role starts the corresponding instance tasks according to the number of parameter configurations and the automatically randomly sequenced behavior actions, including: Set up behavior queue pools for student roles and teacher roles respectively; According to the role, the corresponding behavior queue pool is automatically randomly arranged to obtain the automatically randomly serialized behavior actions of each role; Among them, when the behaviors are automatically randomly arranged in the behavior queue pool, the order of the behaviors needs to meet the sequential arrangement.

4. The scene automatic inspection method of the online live classroom according to claim 3 is characterized in that: During the inspection process, each inspection process realizes the state switching of the live broadcast room of the online live classroom by introducing a finite state machine. The finite state machine is shared by all roles of the corresponding inspection process to achieve state synchronization among multiple roles.

5. The scene automatic inspection method of the online live classroom according to claim 2 is characterized in that: The inspection program is developed based on the golang language and introduces the lua virtual machine to implement various behavioral actions or business process definitions; The inspection scenario is described and explained through a json file. The inspection scenario is loaded when the inspection is started, and functional inspection is performed according to the random action arrangement of each role.

6. The method for automatic scene inspection of online live classroom according to claim 2 is characterized in that: The configuration of multiple student accounts and at least one teacher account for an online live classroom includes: Configure multiple student accounts to simulate the student roles in online live classes; Configure a lecturer account to simulate the role of the lecturer in the online live class; Configure at least one tutor account to simulate the role of a tutor in an online live classroom; Each of the inspection processes includes the role of a student, the role of a lecturer, and the role of a tutor.

7. The method for automatic scene inspection of online live classroom according to claim 2 is characterized in that: The inspection program supports http protocol, websocket protocol, webrtc protocol, and has a built-in private protocol SDK.

8. The method for automatic inspection of online live classroom scenes according to any one of claims 1 to 7, characterized in that: include: Input multiple student accounts, at least one tutor account, a lecturer account, and classroom inspection scenarios into the inspection program; The inspection program initializes the class scene according to the inspection scene, and creates class roles according to the student account, tutor account, and lecturer account; Simulate discrete students entering the classroom, establish long connections to interact with the lecturer, tutor, and other students, and stream videos; Simulate a tutor entering the classroom: push a video stream, establish a long connection to send interactive questions, chat with students, and return to the classroom. Different tutors have their own behavior sequences. After the class time comes, the main teacher enters the classroom: pushes the video, establishes a long connection, and the main teacher cuts the stream. All students enter the main live broadcast room. At this time, all the auxiliary live broadcast rooms of the tutors are closed. The main teacher will also have his own random behavior sequence; The students, tutors, and lecturers behave independently to ensure normal functions and self-consistent data in various inspection scenarios.

9. The scene automatic inspection device of the online live classroom is characterized in that: include: The inspection management platform includes an account role management module and a scene creation module, wherein the account role management module is used to configure multiple student accounts and at least one teacher account of the online live classroom, and the scene creation module is used to create an inspection scene of the online live classroom and generate an inspection scene file; The inspection module inputs the student account parameters, teacher account parameters and inspection scenario files into the inspection program. The inspection program initializes the class scene according to the inspection scenario files, creates the class role according to the student account parameters and teacher account parameters, starts the inspection process of different role function actions in each class scene, and executes the inspection process; Inspection reporting module, reporting inspection progress and inspection results.

10. A computer-readable recording medium storing a computer-executable program, characterized in that: When the computer executable program is executed, the scene automatic inspection method of the online live classroom as described in any one of claims 1 to 8 is implemented.