CN109446064A - A kind of interactive testing method based on browser - Google Patents

A kind of interactive testing method based on browser Download PDF

Info

Publication number
CN109446064A
CN109446064A CN201811087451.8A CN201811087451A CN109446064A CN 109446064 A CN109446064 A CN 109446064A CN 201811087451 A CN201811087451 A CN 201811087451A CN 109446064 A CN109446064 A CN 109446064A
Authority
CN
China
Prior art keywords
browser
docker container
server
browser client
testing method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811087451.8A
Other languages
Chinese (zh)
Inventor
郭申
周诚
孙国军
李爱华
何雯青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Xishan Mobile Game Technology Co Ltd
Zhuhai Kingsoft Online Game Technology Co Ltd
Original Assignee
Zhuhai Xishan Mobile Game Technology Co Ltd
Zhuhai Kingsoft Online Game Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Xishan Mobile Game Technology Co Ltd, Zhuhai Kingsoft Online Game Technology Co Ltd filed Critical Zhuhai Xishan Mobile Game Technology Co Ltd
Priority to CN201811087451.8A priority Critical patent/CN109446064A/en
Publication of CN109446064A publication Critical patent/CN109446064A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45591Monitoring or debugging support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Technical solution of the present invention includes a kind of interactive testing method based on browser, it is characterized in that, method includes the following steps: S1, identified using instruction set of the browser client to input, identify successfully after using server-side respectively with machine locating for browser client and corresponding one or more Docker container;S2 is parsed using the instruction set that browser client inputs user, and one or more instructions of parsing are distributed to corresponding Docker container according to parsing result, and, corresponding instruction is executed using Docker container;The result that Docker container executes is fed back to browser client using server-side and shown by S3.The invention has the benefit that distributed perform script, tool, detection, update etc. is greatly facilitated to operate, for the distributed starting of some projects, termination, update, replacement etc., it can accomplish that the page is intuitive, configuration is convenient, easy to operate.

Description

A kind of interactive testing method based on browser
Technical field
The interactive testing method based on browser that the present invention relates to a kind of, belongs to Computer Service end testing field.
Background technique
Under distributed environment, it can inevitably encounter and need to log in different machines and execute order, to carry out test verifying or inspection It surveys.Distributed Docker container equally has this demand, i.e., goes to execute an order into the different vessels of different machines, this In executable command can be shell script, python script or other executable files.Personnel are avoided to log in different machines Device different vessels go to execute the complexity operated, reach simple, intuitive, efficient purpose.
Docker container is the application container engine of an open source, and developer can be packaged their application and rely on It wraps into a transplantable container, is then published on the Linux machine of any prevalence, also may be implemented to virtualize.Container It is not have any interface between each other using sandbox mechanism completely.It, can be easily in machine almost without performance cost It is run in data center.Most importantly, they include system independent of any language, frame.
Summary of the invention
The present invention provides a kind of fatigue driving householder method and system, and human eye shape is judged by the way of training-prediction State, the algorithm detect first and orient the face location in image, according to the mode that human face characteristic point is divided, are partitioned into eyes Region, then the eye image segmented is predicted by classifier file, judge whether eyes are striven and closes.With at present it is existing The algorithm of eye state judgement is compared, and the applicable scene of such mode is wider, also more stable.
Technical solution of the present invention includes a kind of interactive testing method based on browser, which is characterized in that this method packet Including following steps: S1 is identified using instruction set of the browser client to input, is distinguished after identifying successfully using server-side With machine locating for browser client and corresponding one or more Docker container;S2, using browser client to The instruction set of family input is parsed, and one or more instructions of parsing are distributed to corresponding Docker according to parsing result and are held Device, and, corresponding instruction is executed using Docker container;S3 is fed back using the result that server-side executes Docker container It is shown to browser client.
According to the interactive testing method based on browser, wherein instruction set includes for running on Docker container Order, script, executable file and Docker capsule address mark.
According to the interactive testing method based on browser, wherein step S1 further include: enter specified Docker Container then meets capsule address mark by browser client input, and browser client is according to address mark and to service End sends connection request, and server-side suggests the connection of browser client and Docker container according to request.
According to the interactive testing method based on browser, wherein step S2 further include: instruction set is parsed, Obtain multiple instruction and the corresponding capsule address mark of instruction;It is identified using server-side according to capsule address and successively establishes and instruct Collect corresponding one or more Docker container connection, and issues and execute order.
According to the interactive testing method based on browser, wherein step S3 further include: using server-side to one Or return the result performed by multiple Docker containers and successively summarized, summarized results is sent to browser client, and Summarized results is shown using browser client.
According to the interactive testing method based on browser, wherein browser client and Docker container are one-to-one When interaction, then the implementing result of Docker container is exported in real time.
According to the interactive testing method based on browser, wherein the relationship of Docker container and machine is caching And/or database.
According to the interactive testing method based on browser, wherein this method further include: keep clear using server-side Device client of looking at is connect with Docker container, when browser client is actively and/or passively disconnected with the connection of server-side, then The connection with Docker container is disconnected using server-side.
The invention has the benefit that greatly facilitating distributed perform script, tool, detection, update etc. to operate, for portion The distributed starting of sub-item is terminated, is updated, replacement etc., can accomplish that the page is intuitive, configuration is convenient, easy to operate.
Detailed description of the invention
Fig. 1 show overview flow chart according to the method for the present invention;
Fig. 2 show interactive schematic diagram according to embodiments of the present invention.
Specific embodiment
It is carried out below with reference to technical effect of the embodiment and attached drawing to design of the invention, specific structure and generation clear Chu, complete description, to be completely understood by the purpose of the present invention, scheme and effect.
It should be noted that unless otherwise specified, when a certain feature referred to as " fixation ", " connection " are in another feature, It can directly fix, be connected to another feature, and can also fix, be connected to another feature indirectly.In addition, this The descriptions such as the upper and lower, left and right used in open are only the mutual alignment pass relative to each component part of the disclosure in attached drawing For system.The "an" of used singular, " described " and "the" are also intended to including most forms in the disclosure, are removed Non- context clearly expresses other meaning.In addition, unless otherwise defined, all technical and scientific terms used herein It is identical as the normally understood meaning of those skilled in the art.Term used in the description is intended merely to describe herein Specific embodiment is not intended to be limiting of the invention.Term as used herein "and/or" includes one or more relevant The arbitrary combination of listed item.
It will be appreciated that though various elements, but this may be described using term first, second, third, etc. in the disclosure A little elements should not necessarily be limited by these terms.These terms are only used to for same type of element being distinguished from each other out.For example, not departing from In the case where disclosure range, first element can also be referred to as second element, and similarly, second element can also be referred to as One element.The use of provided in this article any and all example or exemplary language (" such as ", " such as ") is intended merely to more Illustrate the embodiment of the present invention well, and unless the context requires otherwise, otherwise the scope of the present invention will not be applied and be limited.
Fig. 1 show overview flow chart according to the method for the present invention.Flow chart as shown in Figure 1, specifically includes:: S1 is identified using instruction set of the browser client to input, objective with browser respectively using server-side after identifying successfully Machine locating for family end and corresponding one or more Docker container;S2, the finger that user is inputted using browser client It enables collection be parsed, one or more instructions of parsing is distributed to by corresponding Docker container according to parsing result, and, make Corresponding instruction is executed with Docker container;The result that Docker container executes is fed back to browser visitor using server-side by S3 Family end is shown.
Fig. 2 show interactive schematic diagram according to embodiments of the present invention.It includes browser client, server-side, more A and its and multiple corresponding Docker containers.
Wherein process includes:
(1) browser clients access operation is passed to Container Name, then passes through browser visitor into specified Docker container The input of family end meets capsule address mark, and browser client takes according to identifying to address and sending connection request to server-side End be engaged according to the connection for requesting suggestion browser client and Docker container.
(2) server-side obtains Container Name according to parsing, and the machine where positioning vessel parses instruction set, obtains To multiple instruction and the corresponding capsule address mark of instruction;Successively foundation and instruction set are identified according to capsule address using server-side Corresponding one or more Docker container connection.Here the relationship of machine and container can be caching, be also possible to database
(3) enter Docker container, execute incoming order, one or more Docker containers are held using server-side Capable returning the result successively is summarized, and summarized results is sent to browser client, and show using browser client Summarized results;
(4) summarized results is sent to browser client, and shows summarized results using browser client;
(5) interaction for keeping the page and machine, until closing browser client.
Efficiency can be greatly improved by the direct process container of browser, and application is very flexible.It can want to see with a key tail Log, all kinds of scripts etc. can be executed with a key, operated conveniently, it is clear to show.
It should be appreciated that the embodiment of the present invention can be by computer hardware, the combination of hardware and software or by depositing The computer instruction in non-transitory computer-readable memory is stored up to be effected or carried out.Standard program skill can be used in method Art-includes that the non-transitory computer-readable storage media configured with computer program is realized in computer program, wherein such as Storage medium of this configuration operates computer in a manner of specific and is predefined --- according to describing in a particular embodiment Method and attached drawing.Each program can be realized with the programming language of level process or object-oriented with logical with computer system Letter.However, if desired, the program can be realized with compilation or machine language.Under any circumstance, the language can be compiling or The language of explanation.In addition, the program can be run on the specific integrated circuit of programming for this purpose.
In addition, the operation of process described herein can be performed in any suitable order, unless herein in addition instruction or Otherwise significantly with contradicted by context.Process described herein (or modification and/or combination thereof) can be held being configured with It executes, and is can be used as jointly on the one or more processors under the control of one or more computer systems of row instruction The code (for example, executable instruction, one or more computer program or one or more application) of execution, by hardware or its group It closes to realize.Computer program includes the multiple instruction that can be performed by one or more processors.
Further, method can be realized in being operably coupled to suitable any kind of computing platform, including but It is not limited to PC, mini-computer, main frame, work station, network or distributed computing environment, individual or integrated meter Calculate machine platform or communicated with charged particle tool or other imaging devices etc..Each aspect of the present invention can be to be stored in No matter machine readable code on non-transitory storage medium or equipment is moveable or is integrated to calculate and put down to realize Platform, such as hard disk, optically read and/or write-in storage medium, RAM, ROM, so that it can be read by programmable calculator, when depositing Storage media or equipment can be used for configuration and operation computer to execute process described herein when being read by computer.In addition, Machine readable code, or part thereof can be transmitted by wired or wireless network.When such media include in conjunction with microprocessor or When other data processors realize the instruction or program of above step, the disclosure herein includes that these and other are different types of non- Temporary computer readable storage medium.When programming according to the method for the present invention with technology, the invention also includes computer sheets Body.
Computer program can be applied to input data to execute functions herein, be deposited to convert input data with generating It stores up to the output data of nonvolatile memory.Output information can also be applied to one or more output equipment such as displays. In the preferred embodiment of the invention, the data of conversion indicate physics and tangible object, including the physics generated on display Describe with the particular visual of physical objects.
More than, only presently preferred embodiments of the present invention, the invention is not limited to above embodiment, as long as its with Identical means reach technical effect of the invention, all within the spirits and principles of the present invention, any modification for being made, equivalent Replacement, improvement etc., should be included within the scope of the present invention.Its within the scope of the present invention technical solution and/ Or embodiment can have a variety of different modifications and variations.

Claims (8)

1. a kind of interactive testing method based on browser, which is characterized in that method includes the following steps:
S1 identified using instruction set of the browser client to input, after identifying successfully using server-side respectively with browsing Machine locating for device client and corresponding one or more Docker container;
S2 is parsed using the instruction set that browser client inputs user, according to parsing result by one of parsing or Multiple instruction is distributed to corresponding Docker container, and, corresponding instruction is executed using Docker container;
The result that Docker container executes is fed back to browser client using server-side and shown by S3.
2. the interactive testing method according to claim 1 based on browser, which is characterized in that described instruction collection includes using In the order, script, executable file and the Docker capsule address mark that run on Docker container.
3. the interactive testing method according to claim 2 based on browser, which is characterized in that the step S1 is also wrapped It includes:
Capsule address mark, browser client root are then met by browser client input into specified Docker container According to identifying to address and sending connection request to server-side, server-side suggests browser client and Docker container according to request Connection.
4. the interactive testing method according to claim 1 based on browser, which is characterized in that the step S2 is also wrapped It includes:
Instruction set is parsed, multiple instruction and the corresponding capsule address mark of instruction are obtained;
It is identified using server-side according to capsule address and successively establishes one or more Docker container connection corresponding with instruction set, And it issues and executes order.
5. the interactive testing method according to claim 1 based on browser, which is characterized in that the step S3 is also wrapped It includes:
Successively summarized using server-side to being returned the result performed by one or more Docker containers, summarized results is sent out It send to browser client, and shows summarized results using browser client.
6. the interactive testing method of-the 3 any bases and browser according to claim 1, which is characterized in that for browser Client with Docker container is one-to-one interact when, then in real time output Docker container implementing result.
7. the interactive testing method according to claim 1 based on browser, feature exist, the Docker container and machine The relationship of device is caching and/or database.
8. the interactive testing method according to claim 1 based on browser, which is characterized in that this method further include:
Browser client is kept to connect with Docker container using server-side, when browser client actively and/or passively breaks When opening the connection with server-side, then the connection with Docker container is disconnected using server-side.
CN201811087451.8A 2018-09-18 2018-09-18 A kind of interactive testing method based on browser Pending CN109446064A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811087451.8A CN109446064A (en) 2018-09-18 2018-09-18 A kind of interactive testing method based on browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811087451.8A CN109446064A (en) 2018-09-18 2018-09-18 A kind of interactive testing method based on browser

Publications (1)

Publication Number Publication Date
CN109446064A true CN109446064A (en) 2019-03-08

Family

ID=65532981

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811087451.8A Pending CN109446064A (en) 2018-09-18 2018-09-18 A kind of interactive testing method based on browser

Country Status (1)

Country Link
CN (1) CN109446064A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110471649A (en) * 2019-07-11 2019-11-19 广州向导信息科技有限公司 A kind of development platform and method for writing WEB service end program
CN111026667A (en) * 2019-12-09 2020-04-17 北京乐学帮网络技术有限公司 Script execution method and device and electronic equipment
CN111984603A (en) * 2020-07-06 2020-11-24 珠海西山居移动游戏科技有限公司 Method and system for collecting remote container file information
CN113050943A (en) * 2021-04-20 2021-06-29 中国工商银行股份有限公司 Code verification method and device based on local development environment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105701010A (en) * 2015-12-31 2016-06-22 北京元心科技有限公司 Method and device for accelerating software testing
CN105978781A (en) * 2016-06-28 2016-09-28 浪潮电子信息产业股份有限公司 Method and system for establishing network connection of Docker container, and client side
US20170154017A1 (en) * 2014-05-08 2017-06-01 Telefonaktiebolaget Lm Ericsson (Publ) Web Application Management
CN107608763A (en) * 2017-09-26 2018-01-19 中国科学院声学研究所 A kind of method for entering Docker container operations by Web browser

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170154017A1 (en) * 2014-05-08 2017-06-01 Telefonaktiebolaget Lm Ericsson (Publ) Web Application Management
CN105701010A (en) * 2015-12-31 2016-06-22 北京元心科技有限公司 Method and device for accelerating software testing
CN105978781A (en) * 2016-06-28 2016-09-28 浪潮电子信息产业股份有限公司 Method and system for establishing network connection of Docker container, and client side
CN107608763A (en) * 2017-09-26 2018-01-19 中国科学院声学研究所 A kind of method for entering Docker container operations by Web browser

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110471649A (en) * 2019-07-11 2019-11-19 广州向导信息科技有限公司 A kind of development platform and method for writing WEB service end program
CN111026667A (en) * 2019-12-09 2020-04-17 北京乐学帮网络技术有限公司 Script execution method and device and electronic equipment
CN111984603A (en) * 2020-07-06 2020-11-24 珠海西山居移动游戏科技有限公司 Method and system for collecting remote container file information
CN111984603B (en) * 2020-07-06 2024-05-24 珠海西山居数字科技有限公司 Method and system for collecting remote container file information
CN113050943A (en) * 2021-04-20 2021-06-29 中国工商银行股份有限公司 Code verification method and device based on local development environment

Similar Documents

Publication Publication Date Title
CN109446064A (en) A kind of interactive testing method based on browser
US11227221B2 (en) Framework management method and apparatus
US10831463B2 (en) Intelligent software deployment on an IaaS platform
CN109446071A (en) Interface test method, interface test device, electronic equipment and storage medium
CN107807877A (en) A kind of method and apparatus of code performance test
CN109408247A (en) Interaction data processing method and device
CN111316232A (en) Providing optimization using annotations of programs
US20190138647A1 (en) Designing conversational systems driven by a semantic network with a library of templated query operators
CN111182291B (en) Video maintenance method, maintenance end, server, system and storage medium
US11061739B2 (en) Dynamic infrastructure management and processing
CN108874678A (en) A kind of automatic test approach and device of intelligent program
US10839168B2 (en) Dynamic automation of pipeline creation
US20170293551A1 (en) Separating test verifications from test executions
US20230034173A1 (en) Incident resolution
CN108241496A (en) The smooth upgrading method and device of application program
CN109376079A (en) The test method and server that interface calls
US11226832B2 (en) Dynamic generation of user interfaces based on dialogue
CN113849405B (en) Intelligent application online design evaluation system and method based on FPGA
CN107368339A (en) Container entrance program operating method, system, equipment and storage medium
CN109492749B (en) Method and device for realizing neural network model online service in local area network
CN104836831B (en) A kind of object method of servicing for Internet of Things
US10719482B2 (en) Data comparison
CN110209565A (en) A kind of metadata schema adjustment method and its device
US20150088689A1 (en) Product Recognition Platform
CN109214189A (en) Method, apparatus, storage medium and the electronic equipment of recognizer loophole

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190308

RJ01 Rejection of invention patent application after publication