CN113468058A - Regression testing method and device for software-as-a-service platform and electronic equipment - Google Patents

Regression testing method and device for software-as-a-service platform and electronic equipment Download PDF

Info

Publication number
CN113468058A
CN113468058A CN202110779687.3A CN202110779687A CN113468058A CN 113468058 A CN113468058 A CN 113468058A CN 202110779687 A CN202110779687 A CN 202110779687A CN 113468058 A CN113468058 A CN 113468058A
Authority
CN
China
Prior art keywords
page
software
service platform
test
execution result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110779687.3A
Other languages
Chinese (zh)
Other versions
CN113468058B (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.)
Shenzhen Xishima Data Technology Co ltd
Original Assignee
Shenzhen Xishima Data 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 Shenzhen Xishima Data Technology Co ltd filed Critical Shenzhen Xishima Data Technology Co ltd
Priority to CN202110779687.3A priority Critical patent/CN113468058B/en
Publication of CN113468058A publication Critical patent/CN113468058A/en
Application granted granted Critical
Publication of CN113468058B publication Critical patent/CN113468058B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • 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

Landscapes

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

Abstract

The application is applicable to the field of software testing, and particularly relates to a regression testing method and device for a software-as-a-service platform and electronic equipment. The regression testing method of the software as a service platform comprises the following steps: acquiring a test instruction for testing software, namely a service platform, wherein the test instruction comprises a page identifier, opening a page corresponding to the page identifier, and generating an operation instruction corresponding to the page; the method comprises the steps of sequentially triggering tabs and/or links on the page according to the operation instruction to obtain a first execution result of the page based on the operation instruction, so that automatic testing of software, namely a service platform, is realized, the testing efficiency is improved, the testing coverage can be improved, and test items are prevented from being omitted.

Description

Regression testing method and device for software-as-a-service platform and electronic equipment
Technical Field
The application belongs to the field of software testing, and particularly relates to a regression testing method and device of a software-as-a-service platform and electronic equipment.
Background
A Software as a service (SaaS) platform is a set of background management systems, which is used as a new Software application mode and is applied in more and more fields. In the using process of the SaaS, some service modules are upgraded. After upgrading, in addition to testing the upgraded service module, regression testing needs to be performed on the SaaS platform. The regression test of the existing SaaS platform is generally a manual test, the efficiency is low, and test items are easy to omit.
Disclosure of Invention
In view of this, embodiments of the present application provide a regression testing method and apparatus for a software-as-a-service platform, and an electronic device, which can improve testing efficiency and avoid missing test items.
A first aspect of an embodiment of the present application provides a regression testing method for a software as a service platform, including:
acquiring a test instruction for testing a software as a service platform, wherein the test instruction comprises a page identifier;
opening a page corresponding to the page identifier;
generating an operation instruction corresponding to the page;
and sequentially triggering tabs and/or links on the page according to the operation instruction to obtain a first execution result of the page based on the operation instruction, wherein the first execution result is used for judging whether the page is abnormal or not.
In a possible implementation manner, after the obtaining of the first execution result of the page based on the operation instruction, the method further includes:
and if the first execution result has operation failure information, performing screenshot operation on the page.
In a possible implementation manner, before the sequentially triggering tabs and/or links on the page according to the operation instruction, the method further includes:
and positioning the tab and/or the link according to the preset attribute identification.
In one possible implementation, the method further includes:
acquiring test data corresponding to the page;
inputting the test data into an input box and/or a selection box on the page;
and triggering a confirmation control corresponding to the input box and/or the selection box to obtain a second execution result of the page based on the test data, wherein the second execution result is used for judging whether the page is abnormal or not.
In a possible implementation manner, after obtaining the second execution result of the page based on the test data, the method further includes:
and generating a test report according to the first execution result and/or the second execution result.
In a possible implementation manner, the test instruction further includes address information, and before the opening of the page corresponding to the page identifier, the method further includes:
and logging in a cloud platform according to the address information.
In a possible implementation manner, the logging in the cloud platform according to the address information includes:
and if detecting that the software deployed on the cloud platform is the information for completing the upgrade of the service platform, logging in the cloud platform according to the address information.
A second aspect of the embodiments of the present application provides a regression testing apparatus for a software as a service platform, including:
the system comprises an acquisition module, a test module and a processing module, wherein the acquisition module is used for acquiring a test instruction for testing a software-as-a-service platform, and the test instruction comprises a page identifier;
the opening module is used for opening a page corresponding to the page identifier;
the generating module is used for generating an operation instruction corresponding to the page;
and the test module is used for sequentially triggering the tabs and/or links on the page according to the operation instruction to obtain a first execution result of the page based on the operation instruction, wherein the first execution result is used for judging whether the page is abnormal or not.
A third aspect of embodiments of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor, when executing the computer program, implements the regression testing method for software as a service platform according to the first aspect.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the regression testing method for a software-as-a-service platform according to the first aspect.
A fifth aspect of embodiments of the present application provides a computer program product, which, when run on a terminal device, causes the terminal device to perform the method of any one of the first aspect.
Compared with the prior art, the embodiment of the application has the advantages that: the method comprises the steps of obtaining a test instruction for testing software, namely a service platform, opening a page corresponding to a page identifier in the test instruction, generating an operation instruction corresponding to the page, sequentially triggering tabs and/or links on the page according to the operation instruction, and obtaining a first execution result of the page based on the operation instruction, so that the tabs and the links can be prevented, the test coverage is improved, and test items are prevented from being omitted. After the first execution result is obtained, whether the page is abnormal or not can be judged according to the first execution result, so that the automatic test of the software, namely the service platform is realized, and the test efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the embodiments or the description of the prior art will be briefly described below.
Fig. 1 is a schematic flow chart illustrating an implementation of a regression testing method for a software as a service platform according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a regression testing apparatus for a software as a service platform according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
In addition, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not intended to indicate or imply relative importance.
In order to solve the problems that efficiency is low and test items are easy to miss when a regression test of a software as a service (SaaS) platform is manually performed, the regression test method of the software as a service platform is provided. After the first execution result is obtained, whether the page is abnormal or not can be judged according to the first execution result, so that the automatic test of the software, namely the service platform is realized, and the test efficiency is improved.
The regression testing method of the software as a service platform provided by the present application is exemplified below.
Referring to fig. 1, a regression testing method for a software-as-a-service platform provided in an embodiment of the present application includes:
s101: obtaining a test instruction for testing a software as a service platform, wherein the test instruction comprises a page identifier.
The regression testing method of the software-as-a-service platform provided by the embodiment of the application is applied to electronic equipment, and the electronic equipment can be a desktop computer, a notebook computer, a palm computer and the like.
The test instruction may be input by a user, or may be generated by the electronic device after detecting information that the SaaS platform completes upgrading. The page identifier is an address corresponding to the page or a name of the page.
In an embodiment, the SaaS platform is deployed on the cloud platform, the test instruction further includes address information, and the electronic device logs in the cloud platform according to the address information to test the SaaS platform, so that script debugging and test environment debugging can be completed locally, and then the electronic device logs in the cloud platform to perform testing, thereby improving debugging and testing efficiency.
In an embodiment, when detecting that the SaaS platform deployed on the cloud platform completes upgrading information, the electronic device logs in the cloud platform according to the address information, so as to perform regression testing on the SaaS platform in time.
S102: and opening a page corresponding to the page identifier.
Specifically, the electronic device calls a test script corresponding to the page identifier and runs the test script, and the test script opens the corresponding page when running. Illustratively, the test scripts comprise login scripts, homepage scripts, role management scripts, account management scripts, user center scripts, basic data scripts, professional management scripts and industry management scripts, and the pages corresponding to the test scripts are login pages, homepage pages, role management pages, account management pages, user center pages, name management pages, professional management pages and industry management pages.
In an embodiment, the electronic device determines a test sequence according to a preset test frame, determines a page identifier of a current page to be tested according to the test sequence after obtaining a test instruction, calls a corresponding test script according to the page identifier, and opens a page corresponding to the page identifier.
S103: and generating an operation instruction corresponding to the page.
The page comprises at least one tab or link, the test script generates an operation instruction in the running process, and the operation instruction comprises an instruction for triggering the tab or link and a triggering sequence. For example, in the home page, the operation instruction includes triggering the home tab, sequentially triggering each tab in the list of home tabs, and so on.
S104: and sequentially triggering tabs and/or links on the page according to the operation instruction to obtain a first execution result of the page based on the operation instruction, wherein the first execution result is used for judging whether the page is abnormal or not.
During the running process of the test script, the address of the tab or the link can be input to trigger the corresponding tab or link, and a click instruction can also be generated and executed to click the corresponding tab or link for triggering. The first execution result may be a page displayed after triggering the tab or the link, or may be running information of the page after triggering the tab or the link.
In an embodiment, if the page displayed after clicking the tab or the link is inconsistent with the preset page, it is indicated that the page is abnormal. In another embodiment, if the first execution result does not have the operation failure information, it indicates that the page does not have the abnormality, and if the first execution result has the operation failure information, it indicates that the page does not have the abnormality. When the page is abnormal, screenshot operation can be performed on the currently displayed page, the screenshot can be stored, and the running information and the tab corresponding to the running information can be recorded, so that a user can search the abnormal information.
In an embodiment, after one of the tabs or the links is clicked, if error information occurs, the script corresponding to the page is called again to retest the current page, or only the tab is retested. If the number of times of continuously appearing error-reporting information reaches a preset number of times, for example, three times, the current operation fails, so that the error-reporting information is verified, and an erroneous test result is avoided. And after the operation failure information is detected, recording the operation failure information, and continuously testing the next tab or the next page.
In an embodiment, the page further has input frames and/or selection frames, the electronic device calls the test data script, obtains test data corresponding to each input frame or selection frame according to the basic input data, inputs the test data into the input frames and/or selection frames on the page, triggers the confirmation controls corresponding to the input frames and/or selection frames, and obtains a second execution result of the page based on the test data, so as to improve coverage of page elements and further improve test accuracy. The test data may be a user name, a password, a newly added account, a newly added name, or the like, and may be correct data or incorrect data. The second execution result may be a page displayed after the confirmation control is triggered, or may be running information after the confirmation control is triggered. For example, an account number is input into an account number input box on a login page, a password is input into a password input box, a corresponding confirmation control is clicked, after the confirmation control is clicked, the login page displays that the login is normal, and if the login page displays that the login is wrong, the page is abnormal.
In one embodiment, before triggering the tab, link, and confirmation control, a positioning script of the interface element needs to be called to position each tab, link, input box, and selection box on the page. The positioning script of the interface element can acquire the positions of each tab, each link, each input frame and each selection frame by intercepting the image of the page and then carrying out image recognition on the image of the page. The positioning script of the interface element can also be positioned through the attribute identification of each tab, link, input box and selection box, the attribute identification can be the name corresponding to the tab, link, input box or selection box, and the omission of the test item can be prevented through the method of the attribute identification positioning.
After the first execution result and/or the second execution result are obtained, the electronic equipment records the first execution result and/or the second execution result for a user to view. In one embodiment, the electronic equipment calls a script for generating the report, and generates the test report according to the recorded first execution result and/or the second execution result. Illustratively, if the first execution result and the second execution result do not have the operation failure information, the generated test report prompts that the test passes. If the first execution result or the second execution result has operation failure information, the generated test report prompts that the test fails, and a page corresponding to the operation failure information is output, or a tab, a link, an input box or a selection box corresponding to the operation failure information is output.
In the embodiment, the test instruction for testing the software, i.e. the service platform, is obtained, the page corresponding to the page identifier in the test instruction is opened, the operation instruction corresponding to the page is generated, the tab and/or the link on the page are/is sequentially triggered according to the operation instruction, and the first execution result of the page based on the operation instruction is obtained, so that the tab and the link can be prevented, the test coverage is improved, and the test items are prevented from being omitted. After the first execution result is obtained, whether the page is abnormal or not can be judged according to the first execution result, so that the automatic test of the software, namely the service platform is realized, and the test efficiency is improved.
The test method of the SaaS platform provided by the embodiment of the present application is described below with reference to specific scenarios. Firstly, a login script is operated to open a browser on the electronic equipment, an address management script is called to input an access address in the browser, and the access address is the address of the SaaS platform. The method comprises the steps that firstly, an entering page is a login page, a positioning script of an interface element is called to search a user name input box and a password input box on the login page, meanwhile, a test data script is called to obtain test data, the test data is input into the corresponding user name input box and the corresponding password input box, and input of a user name and a password is completed. After the input is finished, the confirmation control is searched through the interface element positioning script, and the confirmation control is clicked to finish the login.
After the test of the login page is finished, the homepage script is operated to open the homepage, and the tab on the homepage is searched and clicked through the positioning script of the interface element on the homepage. The homepage displays a background management system catalog, the catalog comprises all tabs and collected tabs, the collected tabs are searched through the script positioned by the interface elements and clicked, and the collection operation is completed. And then returning to the background management system target, clicking the collected page tab, entering the collected page, clicking to cancel the collection, and finishing the collection canceling operation. And after the collection is cancelled, returning to the homepage again, searching the super-management background system through the script positioned by the interface element, clicking the check tab, and finishing the check operation.
After the test of the homepage is finished, the role management script is operated to open the role management page, and in the role management page, the newly added link is searched and clicked through the interface element positioning script, and then the newly added role window is accessed. And then searching all input frames and selection frames on the page through the interface element positioning script, respectively inputting corresponding test data and clicking corresponding confirmation controls to finish the new adding operation. And returning to the role management page again, searching for a modification link through the interface element positioning script, clicking, and entering a modified role window. And then searching all input frames and selection frames on the page through the interface element positioning script, respectively inputting corresponding test data and clicking corresponding confirmation controls to finish modification operation. And then returning to the role management interface, searching and checking a link through the interface element positioning script, clicking, opening a checking window, and finishing checking operation. And then closing the viewing window, returning to the role management interface, searching for a deletion link through the interface element positioning script and clicking to complete the deletion operation.
After the test of the role management page is completed, the account management script is operated to open the account management page, and in the account management page, the new link is searched and clicked through the interface element positioning script, and then the new account window is entered. And then searching all input frames and selection frames on the page through the interface element positioning script, respectively inputting corresponding test data and clicking corresponding confirmation controls to finish the new adding operation. And returning to the account management page again, searching for a modification link through the interface element positioning script, clicking, and entering a window for modifying the account. And then searching all input frames and selection frames on the page through the interface element positioning script, respectively inputting corresponding test data and clicking corresponding confirmation controls to finish modification operation. And then returning to the account management interface, searching and checking a check link through the interface element positioning script, clicking, opening a check window, and finishing check operation. And then closing the viewing window, returning to the account management interface, searching for a deletion link through the interface element positioning script, and clicking to complete the deletion operation.
After the test of the account management page is completed, operating the user center script to open the user center page, searching and checking a link and clicking through the interface element positioning script on the user center page, opening a checking window, and completing checking operation. And then closing the viewing window, returning to the user center page, searching for the export link and clicking to finish the export operation.
After the test of the user center page is completed, the basic data script is operated, a school/company name management page is opened firstly, a new link is searched and clicked through the interface element positioning script, and a new school/company window is entered. And then searching all input frames and selection frames on the page through the interface element positioning script, respectively inputting corresponding test data and clicking corresponding confirmation controls to finish the new adding operation. And returning to the school/company name management page again, searching for a modification link through the interface element positioning script, clicking, and entering a modification school/company window. And then searching all input frames and selection frames on the page through the interface element positioning script, respectively inputting corresponding test data and clicking corresponding confirmation controls to finish modification operation. And then returning to the school/company name management interface, searching and checking a link through the interface element positioning script, clicking, opening a checking window, and finishing checking operation.
After the test of the school/company name management page is completed, the professional management page is opened, the newly added link is searched and clicked through the interface element positioning script, and a newly added professional window is entered. And then searching all input frames and selection frames on the page through the interface element positioning script, respectively inputting corresponding test data and clicking corresponding confirmation controls to finish the new adding operation. And returning to the professional management page again, searching for a modification link through the interface element positioning script, clicking, and entering a modification professional window. And then searching all input frames and selection frames on the page through the interface element positioning script, respectively inputting corresponding test data and clicking corresponding confirmation controls to finish modification operation. And then returning to the professional management interface, searching and checking a check link through the interface element positioning script, clicking, opening a check window, and finishing check operation.
After the test of the professional management page is completed, the industry management page is opened, the newly added link is searched and clicked through the interface element positioning script, and a newly added industry window is entered. And then searching all input frames and selection frames on the page through the interface element positioning script, respectively inputting corresponding test data and clicking corresponding confirmation controls to finish the new adding operation. And returning to the industry management page again, searching for the modification link through the interface element positioning script, clicking, and entering a modification industry window. And then searching all input frames and selection frames on the page through the interface element positioning script, respectively inputting corresponding test data and clicking corresponding confirmation controls to finish modification operation. And then returning to the industry management interface, searching and checking a link through the interface element positioning script, clicking, opening a checking window, and finishing checking operation.
In the testing process of the page, if the operation failure information occurs, calling a log file script to record the operation failure information, carrying out screenshot on the page corresponding to the operation failure information, and storing the screenshot to obtain the picture. If the operation failure information does not appear, calling a report generating script to generate a test report, and outputting prompt information that the test passes.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 2 shows a block diagram of a regression testing apparatus of a software-as-a-service platform provided in an embodiment of the present application, and only shows portions related to the embodiment of the present application for convenience of description.
As shown in fig. 2, the regression testing apparatus of the software as a service platform includes,
an obtaining module 10, configured to obtain a test instruction for testing a software-as-a-service platform, where the test instruction includes a page identifier;
an opening module 20, configured to open a page corresponding to the page identifier;
a generating module 30, configured to generate an operation instruction corresponding to the page;
and the test module 40 is configured to sequentially trigger the tabs and/or links on the page according to the operation instruction to obtain a first execution result of the page based on the operation instruction, where the first execution result is used to determine whether the page is abnormal.
In one possible implementation, the test module 40 is further configured to:
and if the first execution result has operation failure information, performing screenshot operation on the page.
In one possible implementation, the test module 40 is further configured to:
and positioning the tab and/or the link according to the preset attribute identification.
In a possible implementation manner, the obtaining module 10 is further configured to:
acquiring test data corresponding to the page;
inputting the test data into an input box and/or a selection box on the page;
and triggering a confirmation control corresponding to the input box and/or the selection box to obtain a second execution result of the page based on the test data, wherein the second execution result is used for judging whether the page is abnormal or not.
In one possible implementation, the test module 40 is further configured to:
and generating a test report according to the first execution result and/or the second execution result.
In a possible implementation manner, the obtaining module 10 is further configured to: and logging in a cloud platform according to the address information.
In a possible implementation manner, the obtaining module 10 is further configured to:
and if detecting that the software deployed on the cloud platform is the information for completing the upgrade of the service platform, logging in the cloud platform according to the address information.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
Fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. As shown in fig. 3, the electronic apparatus of this embodiment includes: a processor 11, a memory 12 and a computer program 13 stored in said memory 12 and executable on said processor 11. The processor 11, when executing the computer program 13, implements the steps in the control method embodiment of the electronic device described above, such as the steps S101 to S104 shown in fig. 1. Alternatively, the processor 11 executes the computer program 13 to implement the functions of the modules/units in the device embodiments, such as the functions of the acquisition module 10 to the test module 40 shown in fig. 2.
Illustratively, the computer program 13 may be partitioned into one or more modules/units, which are stored in the memory 12 and executed by the processor 11 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 13 in the terminal device.
Those skilled in the art will appreciate that fig. 3 is merely an example of an electronic device and is not limiting of an electronic device, and may include more or fewer components than those shown, or some components in combination, or different components, e.g., the electronic device may also include input output devices, network access devices, buses, etc.
The Processor 11 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 12 may be an internal storage unit of the electronic device, such as a hard disk or a memory of the electronic device. The memory 12 may also be an external storage device of the electronic device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the electronic device. Further, the memory 12 may also include both an internal storage unit and an external storage device of the electronic device. The memory 12 is used for storing the computer program and other programs and data required by the electronic device. The memory 12 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A regression testing method for software as a service platform is characterized by comprising the following steps:
acquiring a test instruction for testing a software as a service platform, wherein the test instruction comprises a page identifier;
opening a page corresponding to the page identifier;
generating an operation instruction corresponding to the page;
and sequentially triggering tabs and/or links on the page according to the operation instruction to obtain a first execution result of the page based on the operation instruction, wherein the first execution result is used for judging whether the page is abnormal or not.
2. The regression testing method for software as a service platform according to claim 1, wherein after the obtaining of the first execution result of the page based on the operation instruction, the method further comprises:
and if the first execution result has operation failure information, performing screenshot operation on the page.
3. The regression testing method for software as a service platform according to claim 1, wherein before the sequentially triggering tabs and/or links on the page according to the operation instructions, the method further comprises:
and positioning the tab and/or the link according to the preset attribute identification.
4. The regression testing method for software as a service platform according to claim 1, further comprising:
acquiring test data corresponding to the page;
inputting the test data into an input box and/or a selection box on the page;
and triggering a confirmation control corresponding to the input box and/or the selection box to obtain a second execution result of the page based on the test data, wherein the second execution result is used for judging whether the page is abnormal or not.
5. The regression testing method for software as a service platform according to claim 4, wherein after the obtaining of the second execution result of the page based on the test data, the method further comprises:
and generating a test report according to the first execution result and/or the second execution result.
6. The regression testing method for software as a service platform according to claim 1, wherein the testing instruction further includes address information, and before the opening of the page corresponding to the page identifier, the method further comprises:
and logging in a cloud platform according to the address information.
7. The regression testing method for software as a service platform according to claim 6, wherein the logging in a cloud platform according to the address information comprises:
and if detecting that the software deployed on the cloud platform is the information for completing the upgrade of the service platform, logging in the cloud platform according to the address information.
8. A regression testing apparatus for software as a service platform, comprising:
the system comprises an acquisition module, a test module and a processing module, wherein the acquisition module is used for acquiring a test instruction for testing a software-as-a-service platform, and the test instruction comprises a page identifier;
the opening module is used for opening a page corresponding to the page identifier;
the generating module is used for generating an operation instruction corresponding to the page;
and the test module is used for sequentially triggering the tabs and/or links on the page according to the operation instruction to obtain a first execution result of the page based on the operation instruction, wherein the first execution result is used for judging whether the page is abnormal or not.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the regression testing method for the software as a service platform according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, implements the regression testing method for a software-as-a-service platform according to any one of claims 1 to 7.
CN202110779687.3A 2021-07-09 2021-07-09 Regression testing method and device for software as service platform and electronic equipment Active CN113468058B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110779687.3A CN113468058B (en) 2021-07-09 2021-07-09 Regression testing method and device for software as service platform and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110779687.3A CN113468058B (en) 2021-07-09 2021-07-09 Regression testing method and device for software as service platform and electronic equipment

Publications (2)

Publication Number Publication Date
CN113468058A true CN113468058A (en) 2021-10-01
CN113468058B CN113468058B (en) 2024-05-03

Family

ID=77879531

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110779687.3A Active CN113468058B (en) 2021-07-09 2021-07-09 Regression testing method and device for software as service platform and electronic equipment

Country Status (1)

Country Link
CN (1) CN113468058B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114546822A (en) * 2021-12-27 2022-05-27 芯华章科技股份有限公司 Method for testing design, electronic device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150339213A1 (en) * 2014-05-21 2015-11-26 Cgi Technologies And Solutions Inc. Automated testing of an application system
US9262311B1 (en) * 2013-12-03 2016-02-16 Amazon Technologies, Inc. Network page test system and methods
US20180189171A1 (en) * 2015-06-15 2018-07-05 Lens10 Pty Ltd A system and method for use in regression testing of electronic document hyperlinks
US20180351989A1 (en) * 2017-06-02 2018-12-06 DigitSec, Inc. Saas configuration and security analysis engine
CN109828900A (en) * 2018-12-14 2019-05-31 深圳壹账通智能科技有限公司 Test script automatic generation method, device, electronic equipment and storage medium
CN111240980A (en) * 2020-01-13 2020-06-05 苏州浪潮智能科技有限公司 Automatic regression testing method based on cloud pipe platform
CN112131111A (en) * 2020-09-21 2020-12-25 贝壳技术有限公司 Method, device and storage medium for automatically testing page
CN112799763A (en) * 2021-01-28 2021-05-14 深圳希施玛数据科技有限公司 Function management method, management device, terminal equipment and readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9262311B1 (en) * 2013-12-03 2016-02-16 Amazon Technologies, Inc. Network page test system and methods
US20150339213A1 (en) * 2014-05-21 2015-11-26 Cgi Technologies And Solutions Inc. Automated testing of an application system
US20180189171A1 (en) * 2015-06-15 2018-07-05 Lens10 Pty Ltd A system and method for use in regression testing of electronic document hyperlinks
US20180351989A1 (en) * 2017-06-02 2018-12-06 DigitSec, Inc. Saas configuration and security analysis engine
CN109828900A (en) * 2018-12-14 2019-05-31 深圳壹账通智能科技有限公司 Test script automatic generation method, device, electronic equipment and storage medium
CN111240980A (en) * 2020-01-13 2020-06-05 苏州浪潮智能科技有限公司 Automatic regression testing method based on cloud pipe platform
CN112131111A (en) * 2020-09-21 2020-12-25 贝壳技术有限公司 Method, device and storage medium for automatically testing page
CN112799763A (en) * 2021-01-28 2021-05-14 深圳希施玛数据科技有限公司 Function management method, management device, terminal equipment and readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
柯栋梁;郑啸;秦锋;: "云服务自动化集成测试研究", 系统仿真学报, no. 12, 6 December 2013 (2013-12-06), pages 2872 - 2878 *
贾丽;许静;金鑫;田禾;: "Web系统测试用例自动执行系统", 计算机工程与应用, no. 04, pages 86 - 89 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114546822A (en) * 2021-12-27 2022-05-27 芯华章科技股份有限公司 Method for testing design, electronic device and storage medium

Also Published As

Publication number Publication date
CN113468058B (en) 2024-05-03

Similar Documents

Publication Publication Date Title
CN106844217B (en) Method and device for embedding point of applied control and readable storage medium
US7503037B2 (en) System and method for identifying bugs in software source code, using information from code coverage tools and source control tools to determine bugs introduced within a time or edit interval
US9612943B2 (en) Prioritization of tests of computer program code
US20150269060A1 (en) Development tools for logging and analyzing software bugs
CN105573911A (en) Application popup window processing method and apparatus
US20210263841A1 (en) Machine code analysis for identifying software defects
US20160162385A1 (en) Correlation of violating change sets in regression testing of computer software
US11232020B2 (en) Fault detection using breakpoint value-based fingerprints of failing regression test cases
CN109885480A (en) A kind of automatic interface compatibility test method and device based on debugging bridge
CN112052172A (en) Rapid testing method and device for third-party channel and electronic equipment
CN112241370B (en) API interface class checking method, system and device
US20210019253A1 (en) Methods Circuits Devices Systems and Functionally Associated Machine Executable Code For Enhanced Automated Software Code Testing
CN112925524A (en) Method and device for detecting unsafe direct memory access in driver
CN112395202A (en) Interface automation test method and device, computer equipment and storage medium
US10846206B2 (en) Adaptive software testing
US20140229923A1 (en) Commit sensitive tests
CN112231206A (en) Script editing method for application program test, computer readable storage medium and test platform
CN113468058B (en) Regression testing method and device for software as service platform and electronic equipment
CN111563032A (en) APP debugging method and device, computer equipment and storage medium
JPH10320234A (en) Automatic test method for software
CN110716843A (en) System fault analysis processing method and device, storage medium and electronic equipment
KR20220073151A (en) FMEA failure mode recommend system
CN109902001B (en) Method for detecting uninitialized variable and terminal equipment
CN111324537A (en) Test script-based test method and device and computer equipment
CN115455431A (en) Method, device, terminal and medium for automatic code security detection and vulnerability repair

Legal Events

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