CN111221729B - Automatic testing method and system for separating platform service from testing service - Google Patents

Automatic testing method and system for separating platform service from testing service Download PDF

Info

Publication number
CN111221729B
CN111221729B CN201911423681.1A CN201911423681A CN111221729B CN 111221729 B CN111221729 B CN 111221729B CN 201911423681 A CN201911423681 A CN 201911423681A CN 111221729 B CN111221729 B CN 111221729B
Authority
CN
China
Prior art keywords
test
platform
server
service
name
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
CN201911423681.1A
Other languages
Chinese (zh)
Other versions
CN111221729A (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.)
Dilu Technology Co Ltd
Original Assignee
Dilu 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 Dilu Technology Co Ltd filed Critical Dilu Technology Co Ltd
Priority to CN201911423681.1A priority Critical patent/CN111221729B/en
Publication of CN111221729A publication Critical patent/CN111221729A/en
Application granted granted Critical
Publication of CN111221729B publication Critical patent/CN111221729B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an automatic test method and system for separating platform service from test service, comprising the following steps that a platform server provides the platform service; the platform service binds the name of the test with the class-test method-test parameters; the front-end service displays the test name to the user and provides the user with the test name; after the back-end service monitors that the target test name is selected, the back-end service sends the related execution instruction and class name-method name-parameter which are configured to be completed to the test server; the test server receives related execution instructions and parameters through a TCP protocol; and after the execution is finished, the test result is returned to the platform server. The invention has the beneficial effects that: the platform service is separated from the test service, the platform can be connected with a plurality of test services, the test services can be uncorrelated with each other, and different people can maintain different test cases; and secondly, a plurality of tests are flattened and normalized among the platform servers.

Description

Automatic testing method and system for separating platform service from testing service
Technical Field
The invention relates to the technical field of platform service and test service separation, in particular to an automatic test method and an automatic test system for platform service and test service separation.
Background
RPC (Remote Procedure Call) in recent years is a protocol for requesting services from a remote computer program over a network as a remote procedure call without requiring knowledge of underlying network technology. The RPC protocol assumes the existence of certain transport protocols, such as TCP or UDP, and employs a client/server mode for carrying information data between communication programs, where the requesting program is a client and the service provider is a server.
First, the client calling process sends a call message with process parameters to the service process and then waits for a response message. At the server side, the process remains dormant until the call information arrives. When one call information arrives, the server obtains the process parameters, calculates the result, sends the reply information, then waits for the next call information, finally the client calls the process to receive the reply information, obtains the process result, and then calls the execution to continue. The Dango framework is a web framework with complete functions and is realized based on the python language, is very suitable for quickly building a station, can be used for building an automatic test platform, and is suitable for writing automatic test cases.
Disclosure of Invention
This section is intended to outline some aspects of embodiments of the invention and to briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section as well as in the description summary and in the title of the application, to avoid obscuring the purpose of this section, the description summary and the title of the invention, which should not be used to limit the scope of the invention.
The present invention has been made in view of the above-described problems occurring in the prior art.
Therefore, one technical problem solved by the present invention is: an automatic testing method for separating platform service from testing service is provided, and the pressure of a platform server and the maintenance cost of use cases are reduced.
In order to solve the technical problems, the invention provides the following technical scheme: an automatic test method for separating platform service from test service comprises the following steps that a platform server provides the platform service; the platform service binds the name of the test with the class-test method-test parameters; the front-end service displays the test name to the user and provides the user with the test name; after the back-end service monitors that the target test name is selected, the back-end service sends the related execution instruction and class name-method name-parameter which are configured to be completed to the test server; the test server receives related execution instructions and parameters through a TCP protocol; and after the execution is finished, the test result is returned to the platform server.
As a preferred embodiment of the automated testing method for separating platform services from testing services according to the present invention, the method comprises: the front end of the platform server uses html, css, javascrip grammar, and the rear end of the platform server uses Django frames to build an automatic test platform to provide platform service for testing.
As a preferred embodiment of the automated testing method for separating platform services from testing services according to the present invention, the method comprises: the test server receives related execution instructions and parameters through a TCP protocol; finding a corresponding test method through python characteristic reflection; transmitting the parameters to a testing method, performing deserialization and finally executing; and after the execution is completed, the test result is returned to the platform service.
As a preferred embodiment of the automated testing method for separating platform services from testing services according to the present invention, the method comprises: the platform server and the test server respectively provide test service and platform service, and the method comprises the following steps of taking RPC technology as a core; adopting a mode of decomposing test service and platform service; the test service platform is used as a server to provide a test execution inlet for a user and feed back a report; the test platform itself is used as a client to request the test server to execute the test service and receive the test result of the test server, and finally the test result is fed back to the platform page.
As a preferred embodiment of the automated testing method for separating platform services from testing services according to the present invention, the method comprises: the test server also comprises the following steps of creating an automation use case and a test program; providing a test inlet as a server and outputting a test result; and monitoring the test case execution command from the client.
As a preferred embodiment of the automated testing method for separating platform services from testing services according to the present invention, the method comprises: the platform server comprises the following steps of taking charge of supporting the web platform; receiving a use case selection made by a user at a web end; analyzing the use case selection into a command and sending the command to the test server; the test server analyzes the command transmitted by the platform server and executes an application case; and the platform server analyzes and processes the result data returned by the test server and displays the result data on the platform.
As a preferred embodiment of the automated testing method for separating platform services from testing services according to the present invention, the method comprises: the development of the Django framework is based on Django, the template system of the Django framework enables front-end and back-end development to be carried out separately, flash Builder4 is selected as an integrated development environment in front-end development, an MXML tag and an ActionScript3.0 script language are supported by the environment, an MXML code editor is adopted, a back-end development environment is directly built at a server side, a linux operating system is adopted by the server, and Vim code editors are adopted in view layer python code writing and script writing.
The invention solves the other technical problem that: an automatic test system with platform service and test service separated is provided, and the pressure of a platform server and the maintenance cost of use cases are reduced.
In order to solve the technical problems, the invention provides the following technical scheme: an automatic test system with platform service separated from test service comprises a platform server and a test server, wherein the platform server comprises front-end service and back-end service; the platform server is used for providing platform services and binding the name of the test with the class-test method-test parameters; the front-end service is used for European showing test names to users and providing user selection test names; the back-end service is used for sending the related execution instruction and class name-method name-parameter which are configured to be completed to the test server after the target test name is monitored to be selected; the test server is used for receiving related execution instructions and parameters through a TCP protocol, and transmitting test results back to the platform server after execution is completed.
The invention has the beneficial effects that: the platform service is separated from the test service, the platform can be connected with a plurality of test services, the test services can be uncorrelated with each other, different people can maintain different test cases, and the normal operation of the platform server is not influenced; secondly, a plurality of tests are flattened and normalized among the platform servers, so that a user does not need to know details behind the tests, and can see test results only by executing the tests.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. Wherein:
FIG. 1 is a schematic diagram of a test flow according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of an automatic test control server software architecture according to a first embodiment of the present invention;
fig. 3 is a schematic diagram of the overall principle and structure of an automated test system with platform service and test service separated according to a second embodiment of the present invention.
Detailed Description
So that the manner in which the above recited objects, features and advantages of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, but the present invention may be practiced in other ways other than those described herein, and persons skilled in the art will readily appreciate that the present invention is not limited to the specific embodiments disclosed below.
Further, reference herein to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic can be included in at least one implementation of the invention. The appearances of the phrase "in one embodiment" in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments.
While the embodiments of the present invention have been illustrated and described in detail in the drawings, the cross-sectional view of the device structure is not to scale in the general sense for ease of illustration, and the drawings are merely exemplary and should not be construed as limiting the scope of the invention. In addition, the three-dimensional dimensions of length, width and depth should be included in actual fabrication.
Also in the description of the present invention, it should be noted that the orientation or positional relationship indicated by the terms "upper, lower, inner and outer", etc. are based on the orientation or positional relationship shown in the drawings, are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the apparatus or elements referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first, second, or third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
The terms "mounted, connected, and coupled" should be construed broadly in this disclosure unless otherwise specifically indicated and defined, such as: can be fixed connection, detachable connection or integral connection; it may also be a mechanical connection, an electrical connection, or a direct connection, or may be indirectly connected through an intermediate medium, or may be a communication between two elements. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
Example 1
Referring to the schematic diagrams of fig. 1-2, an automatic test method for separating platform service from test service is provided in this embodiment, which is different from a test system for testing and writing services and test logic together, and the platform service and test service of the system are separated, so that the pressure of a platform server and the maintenance cost of a use case are greatly reduced.
The rapid development of software testing drives the continuous improvement of the automated testing technology, but due to the hybridization of the testing process and the special characteristics of certain products, some automated testing workers have limited performance, and many automated testing technologies are tested for the general connectivity and expansibility. Therefore, how to improve the universality and expansibility of the test of the dynamic software is a continuously pursued goal in the technical field. The research in the field of automatic testing is various, and from the viewpoint of technical development, script technology of automatic testing and research of an automatic testing framework are the most interesting parts of . In the process of test execution, many test cases are realized in an automated manner. By writing the functional script to guide the execution of the test, the human resources are greatly saved. Automated testing is based on the fact that the framework is designed to accommodate the entire item, and it is well known that software development is a dynamic process, so that it is difficult to achieve a complete match to the entire item while performing automated testing, and it is desirable to find a model to maximize the near-needs of automated testing by modifying fewer configurations.
Web development is a technique that is popular with developments, and its advent greatly facilitates the organization and access of resources by people. The development of various websites also provides convenience for people to acquire rich network information and promotes the vigorous development of the Internet industry. An automated test framework is constructed to release part of the manpower from the manual testing. In the aspect of bearing test tasks, the framework solves the functional test and the performance test of the targets in the group through an automatic mode. The tester only needs to input the information required by the test at the front end, carries out related operation according to the prompt, can complete the process of automatic test, and can directly return the required result at the front end after testing the tie beam, and the tester only needs to check the obtained result. In the whole dynamic test process, a tester only needs to perform simple operation at the front end without inputting personal codes and commands in the background, thereby shortening the test period and improving the test efficiency. In the implementation of the auxiliary test, a series of auxiliary tools are developed herein for the current need of companies to communicate between the advertisement configurator and the modules of the advertisement selection platform. The use of tools, both for the testers and for the operation and maintenance staff, greatly reduces their workload, thus enabling the testers to concentrate more on the quality problems of the products themselves.
The method specifically comprises the following steps in the embodiment,
the platform server provides platform services;
the platform service binds the name of the test with the class-test method-test parameters;
the front-end service displays the test name to the user and provides the user with the test name;
after the back-end service monitors that the target test name is selected, the back-end service sends the related execution instruction and class name-method name-parameter which are configured to be completed to the test server;
the test server receives related execution instructions and parameters through a TCP protocol;
and after the execution is finished, the test result is returned to the platform server.
It should be noted that, the front end of the platform server uses html, css, javascrip grammar, and the rear end of the platform server uses Django frame to build an automatic test platform to provide platform service for the test. The development of the Django framework is based on Django, the template system of the Django framework enables the development of the front end and the rear end to be carried out separately, flash Builder4 is selected as an integrated development environment in the front end development, an MXML tag and an ActionScript3.0 script language are supported by the environment, an MXML code editor is adopted, the rear end development environment is directly built at a server, the server adopts a linux operating system, and the writing of view layer python codes and the writing of scripts all adopt a Vim code editor.
Further, the method also comprises the following testing steps,
after receiving the relevant execution instruction and parameters through the TCP protocol, the test server receives the relevant execution instruction and parameters through the TCP protocol;
finding a corresponding test method through python characteristic reflection;
transmitting the parameters to a testing method, performing deserialization and finally executing;
and after the execution is completed, the test result is returned to the platform service.
Wherein the Python language is a computer programming language that acts like a C/c++/java/perl, which is a high-level object-oriented language. Django is a set of class libraries written in python. Python code is written using the Django development site using these class libraries. Django is a high-level dynamic language framework applied to Web development, and has a perfect template mechanism, an object-relation mapping (ORM) mechanism and a function for dynamically creating a background management interface, and an automatic test tool which has MVC architecture level and is beneficial to engineering management can be rapidly designed and developed by using the Django.
The platform server and the test server respectively provide test service and platform service, and the method comprises the following steps of taking RPC technology as a core;
adopting a mode of decomposing test service and platform service;
the test service platform is used as a server to provide a test execution inlet for a user and feed back a report;
the test platform itself is used as a client to request the test server to execute the test service and receive the test result of the test server, and finally feeds back to the platform page.
The test server further comprises the step of,
creating an automation use case and a test program;
providing a test inlet as a server and outputting a test result;
and monitoring the test case execution command from the client.
The platform server comprises the steps of,
is responsible for supporting the web platform;
receiving a use case selection made by a user at a web end;
analyzing the use case selection into a command and sending the command to a test server;
the test server analyzes the command transmitted by the platform server and executes the application case;
and the platform server analyzes and processes the result data returned by the test server and displays the result data on the platform.
Software testing is a key step of software quality assurance, software automation testing is a main mode for improving software testing efficiency, development of a software automation testing service platform has become a work focus of a plurality of company quality assurance departments, and decoupling of testing codes on a testing machine and basic functional service codes on a background platform server is achieved. A plurality of test projects can be configured on the same platform, test developers only need to maintain the test codes which are responsible for the test developers, and the platform server codes of the background are responsible for the research and development personnel of the server side. The scene is suitable for test visualization and platfonn under multiple items. The research and development is clear, the research and development efficiency is greatly improved, only the own service codes are needed to be known in research and development, and the research and development knowledge cost is reduced.
The traditional system with the test and the platform not separated is characterized in that the test code and the platform service are deployed on the same host, the code coupling degree is high, the maintenance is carried out by the same person, the maintenance cost is high, and the requirement on the research and development knowledge reserve is also high, so that the problem is solved by the design of the separation of the test and the platform service, and the research and development efficiency of the test tool is greatly improved.
Scene one:
the technical effects adopted in the method are verified and explained, and the different methods selected in the embodiment and the method are adopted for comparison test, and the test results are compared by means of scientific demonstration to verify the true effects of the method.
In this embodiment, an automated test framework is used to run test cases, such as foreign CloudTesting, keynote, SOASTA, which mainly provide functional testing and performance testing, for Web-based applications. There is AlldayTestV3.0 in China, and the platform mainly provides function test and performance test and is also automatic test software.
In the embodiment, the UML class diagram is utilized, the generation of the test script is advanced to the initial modeling of the system, the UML model diagram is converted into the test case based on XML from the UML model diagram, and then the XML file is processed to generate the test case. The built test cases are respectively tested by running the AlldayTestV3.0 and the automatic test method provided by the embodiment, the virtual machine mirror image library is searched, a test environment is built, a user can select to generate the test cases, and the generated test cases can be checked. For example, a test is performed to determine whether a triangle is present, for example, as shown in table 1.
Table 1: test case
Test caseBraiding machine Test function Input value Expected value
Case_01 is_Tangle 3,4,6 true
Case_02 is_Tangle 2,4,6 false
And finally, generating a final test file by utilizing the XML test result generated above, and then submitting the final test file to run and feeding back the service to a user through a report tool.
Based on the above, the example selects the cloud office software used by me as the test case, runs the test software for a long time by simulating the software and hardware environment of the actual application and the use process of the user, and finally checks different response times of the platform server under the same pressure test.
Test environment:
(1) Software to be tested: office Anywhere 2008 enhancement 3.4.090602
(2) Test software: webserver Stress Tool A phase License (7.2.2.261enter-print Edition)
Simulation user: 1000 persons;
simulation time: 600 seconds;
average request amount of simulation server: 24 times/second;
simulation mode: the platform server load was gradually increased over a prescribed time frame, with a total of 14,400 platform server requests by 1000 users being incrementally distributed over 600 seconds.
The test shows that 1000 simulation users generate 13505 effective clicks within 600 seconds, the clicking amount per second is between 0 and 45 times, the average request amount of the platform server is 22.5 times/second, and finally different test methods lead to the effect results of the platform server as shown in the following table 2.
Table 2: response time.
Server click 45 times 720 times 1170 times 5400 times 13505 times
AlldayTestV3.0 0.5s 0.8s 1s 6s 10s
The method 0.5s 0.6s 0.5s 0.5s 0.6s
As shown in table 2, the method does not generate pressure on the server, and does not affect the normal operation of the platform server, while in the conventional method, alldaytestv3.0, because of the system of testing and platform separation, the test code and the platform service are deployed on the same host, and with the increase of the test cases, the performance of the server is affected, and the CPU usage rate (load) of the platform server is 80% in the testing process of alldaytestv3.0, while the method only has 20% and the operation memory is maintained at 2047MB. Therefore, the test of the method does not affect the performance of the server.
Example 2
Referring to the illustration of fig. 3, the present embodiment proposes an automated test system with platform service and test service separated, and the method of the above embodiment is implemented by means of the present system, including a platform server 100 and a test server 200, where the platform server 100 includes a front-end service and a back-end service; the platform server 100 is used for providing platform services and for binding the names of the tests with class-test method-test parameters; the front-end service is used for European showing the test name to the user and providing the user with the test name; the back-end service is used for sending the related execution instruction and class name-method name-parameter after the configuration completion to the test server after the target test name is monitored to be selected; the test server 200 is configured to receive related execution instructions and parameters through the TCP protocol, and transmit the test result back to the platform server 100 after the execution is completed.
It should be appreciated that embodiments of the invention may be implemented or realized by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer readable memory. The methods may be implemented in a computer program using standard programming techniques, including a non-transitory computer readable storage medium configured with a computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner, in accordance with the methods and drawings described in the specific embodiments. Each program may be implemented in a high level procedural or object oriented programming language to communicate with a computer system. However, the program(s) can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language. Furthermore, the program can be run on a programmed application specific integrated circuit for this purpose.
Furthermore, the operations of the processes described herein may be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The processes (or variations and/or combinations thereof) described herein may be performed under control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications), by hardware, or combinations thereof, collectively executing on one or more processors. The computer program includes a plurality of instructions executable by one or more processors.
Further, the method may be implemented in any type of computing platform operatively connected to a suitable computing platform, including, but not limited to, a personal computer, mini-computer, mainframe, workstation, network or distributed computing environment, separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, and so forth. Aspects of the invention may be implemented in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, optical read and/or write storage medium, RAM, ROM, etc., such that it is readable by a programmable computer, which when read by a computer, is operable to configure and operate the computer to perform the processes described herein. Further, the machine readable code, or portions thereof, may be transmitted over a wired or wireless network. When such media includes instructions or programs that, in conjunction with a microprocessor or other data processor, implement the steps described above, the invention described herein includes these and other different types of non-transitory computer-readable storage media. The invention also includes the computer itself when programmed according to the methods and techniques of the present invention. The computer program can be applied to the input data to perform the functions described herein, thereby converting the input data to generate output data that is stored to the non-volatile memory. The output information may also be applied to one or more output devices such as a display. In a preferred embodiment of the invention, the transformed data represents physical and tangible objects, including specific visual depictions of physical and tangible objects produced on a display.
As used in this application, the terms "component," "module," "system," and the like are intended to refer to a computer-related entity, either hardware, firmware, a combination of hardware and software, or software in execution. For example, the components may be, but are not limited to: a process running on a processor, an object, an executable, a thread of execution, a program, and/or a computer. By way of example, both an application running on a computing device and the computing device can be a component. One or more components may reside within a process and/or thread of execution and a component may be localized on one computer and/or distributed between two or more computers. Furthermore, these components can execute from various computer readable media having various data structures thereon. The components may communicate by way of local and/or remote processes such as in accordance with a signal having one or more data packets (e.g., data from one component interacting with another component in a local system, distributed system, and/or across a network such as the internet with other systems by way of the signal).
It should be noted that the above embodiments are only for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that the technical solution of the present invention may be modified or substituted without departing from the spirit and scope of the technical solution of the present invention, which is intended to be covered in the scope of the claims of the present invention.

Claims (3)

1. An automatic testing method for separating platform service from testing service is characterized in that: comprising the steps of (a) a step of,
the platform server provides platform services;
the platform service binds the name and class of the test, the test method and the test parameters;
the front-end service displays the test name for the user and provides a test name interface for the user to select;
after the back-end service monitors that the test name is selected, the back-end service sends the relevant execution instruction, class name, method name and parameter which are configured to be finished to a test server;
the test server receives related execution instructions and parameters through a TCP protocol;
after execution, the test result is returned to the platform server;
html, css, javaScript grammar is used at the front end of the platform server, and an automatic test platform is built by using a Django frame at the rear end of the platform server to provide platform service for testing;
further comprising the step of testing the following,
the test server receives related execution instructions and parameters through a TCP protocol;
finding out a corresponding test method through python characteristic reflection;
transmitting the parameters to a testing method, performing deserialization, and finally executing the test;
after the execution is completed, the test result is returned to the platform server;
the platform server and the test server respectively provide test service and platform service, comprising the following steps,
RPC technology is used as a core;
adopting a mode of decomposing test service and platform service;
the test service platform is used as a server to provide a test execution inlet for a user and feed back a report;
the test platform itself is used as a client to request the test server to execute test service and receive test results of the test server, and finally the test results are fed back to the platform page;
the platform server performs the following steps,
is responsible for supporting the web platform;
receiving a use case selection made by a user at a web end;
analyzing the use case selection into a command and sending the command to the test server;
the test server analyzes the command transmitted by the platform server and executes an application case;
the platform server analyzes and processes the result data returned by the test server and displays the result data on the platform;
the development of the Django framework is based on Django, the template system of the Django framework enables front-end and back-end development to be carried out separately, the front-end development selects FlashBuilder4 as an integrated development environment, the environment supports MXML labels and ActionScript3.0 scripting languages, an MXML code editor is adopted, the back-end development environment is directly built at a server side, the server adopts a linux operating system, and both the writing of view layer python codes and the writing of scripts adopt a Vim code editor.
2. The automated testing method of platform services separated from testing services of claim 1, wherein: the test server also performs the steps of:
creating an automation use case and a test program;
providing a test inlet as a server and outputting a test result;
and monitoring the test case execution command from the client.
3. A system for an automated test method for platform services to test service separation according to any of claims 1-2, characterized by: the system comprises a platform server (100) and a test server (200), wherein the platform server (100) comprises a front-end service and a back-end service;
the platform server (100) is used for providing platform services and binding the names and classes of the tests, the test methods and the test parameters; the front-end service is used for displaying the test name to the user and providing the user with the test name; the back-end service is used for sending the relevant execution instruction, class name, method name and parameter which are configured to be completed to the test server after the target test name is monitored to be selected;
the test server (200) is configured to receive related execution instructions and parameters through a TCP protocol, and return a test result to the platform server (100) after execution is completed.
CN201911423681.1A 2019-12-31 2019-12-31 Automatic testing method and system for separating platform service from testing service Active CN111221729B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911423681.1A CN111221729B (en) 2019-12-31 2019-12-31 Automatic testing method and system for separating platform service from testing service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911423681.1A CN111221729B (en) 2019-12-31 2019-12-31 Automatic testing method and system for separating platform service from testing service

Publications (2)

Publication Number Publication Date
CN111221729A CN111221729A (en) 2020-06-02
CN111221729B true CN111221729B (en) 2024-04-05

Family

ID=70832816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911423681.1A Active CN111221729B (en) 2019-12-31 2019-12-31 Automatic testing method and system for separating platform service from testing service

Country Status (1)

Country Link
CN (1) CN111221729B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113835994A (en) * 2020-06-24 2021-12-24 上海莉莉丝科技股份有限公司 Golang language-based server stress testing system, method and computer-readable storage medium
CN111984537B (en) * 2020-08-24 2021-12-07 上海睿成软件有限公司 WebIDE-based software testing method, storage medium and device
CN112948255B (en) * 2021-03-23 2024-05-14 三六零数字安全科技集团有限公司 Distributed kernel fuzzy test system and method
CN114938342A (en) * 2022-01-27 2022-08-23 浙江浩瀚能源科技有限公司 Automatic testing and monitoring method capable of remotely triggering local UI

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107577599A (en) * 2017-08-21 2018-01-12 同程网络科技股份有限公司 A kind of automatic interface testing method and platform based on custom script

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107577599A (en) * 2017-08-21 2018-01-12 同程网络科技股份有限公司 A kind of automatic interface testing method and platform based on custom script

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
尚洁.基于Django的测试工具平台的设计与实现.《中国优秀硕士学位论文全文数据库信息科技辑》.2019,正文第5-8页. *
汪旺等.面向服务器集群的自动化测试监控平台的研究和实现.《计算机与现代化》.2014,第137-141页. *

Also Published As

Publication number Publication date
CN111221729A (en) 2020-06-02

Similar Documents

Publication Publication Date Title
CN111221729B (en) Automatic testing method and system for separating platform service from testing service
CN110716870B (en) Automatic service testing method and device
US8914673B2 (en) Distributed testing within a serial testing infrastructure
CN108984202B (en) Electronic resource sharing method and device and storage medium
CN113900958A (en) Test case script generation method, system, medium and electronic device
CN112685035A (en) Project development method and device, computer-readable storage medium and electronic device
US20210089336A1 (en) System and method for programmatically converting interface specification to generic plug-in code
CN113505082B (en) Application program testing method and device
EP3968145A1 (en) Apparatus and method for executing customized artificial intelligence production line, and device and medium
CN106354629A (en) Construction method of iOS system mobile application automatic test system based on multiple stages of servers
CN109828921A (en) HTML5 webpage automated function test method, system and electronic equipment
CN109840192B (en) Method and device for automatic testing
JP2023086678A (en) Method and apparatus for generating and applying deep learning model based on deep learning framework
Wu et al. Automation and management of scientific workflows in distributed network environments
CN108694120B (en) Method and device for testing service component
CN112667219A (en) Code generation method and device, equipment and computer readable storage medium
CN112988267A (en) Loading method and device, storage medium and electronic equipment
CN115543324B (en) Method, device, equipment and medium for generating interactive interface
Rodrigues et al. A model driven approach for software systems reliability
CN111596905A (en) Method, device, storage medium and terminal for generating java object
CN112416746A (en) Test case generation method, device, equipment and medium
CN115827476A (en) Interface online visual debugging method and device, electronic equipment and medium
CN116257226A (en) Data verification method and device, electronic equipment and storage medium
CN111176624B (en) Method and device for generating stream type calculation index
CN113204495A (en) Automatic testing method and device based on B/S architecture, storage medium and equipment

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
CB02 Change of applicant information

Address after: 11th Floor, Building A1, Huizhi Science and Technology Park, No. 8 Hengtai Road, Nanjing Economic and Technological Development Zone, Jiangsu Province, 211000

Applicant after: DILU TECHNOLOGY Co.,Ltd.

Address before: Building C4, No.55 Liyuan South Road, moling street, Nanjing, Jiangsu Province

Applicant before: DILU TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant