CN107273287A - A kind of web terminal Function Test Automation framework based on power business case driving - Google Patents
A kind of web terminal Function Test Automation framework based on power business case driving Download PDFInfo
- Publication number
- CN107273287A CN107273287A CN201710417215.7A CN201710417215A CN107273287A CN 107273287 A CN107273287 A CN 107273287A CN 201710417215 A CN201710417215 A CN 201710417215A CN 107273287 A CN107273287 A CN 107273287A
- Authority
- CN
- China
- Prior art keywords
- test
- script
- case
- automatic test
- automatic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test 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
A kind of web terminal Function Test Automation framework based on power business case driving, including:1) test case provides test data for automatic test, drives the progress of automatic test;2) use-case being stored in Excel forms is transferred in test script using POI transmission technologys, automatic test is opened in driving script operation;3) WebDriver technologies, realization calls browser to carry out emulation testing in testing results script;4) automatic test script, test script is write using Java language, and script is run by carrying out precise positioning, control system to system interface according to use-case step;5) Selenium.jar, the jar bags provide a series of API, to realize the precise positioning to system interface;6) JDK environment, it is ensured that the API in whole framework can be performed;The beneficial effects of the invention are as follows:Test period can be shortened, testing cost is saved, testing efficiency is improved, allow system to obtain comprehensively returning to test before reaching the standard grade, it is ensured that the availability and stability of system.
Description
Technical field
The invention belongs to the web terminal Function Test Automation technology of power industry power business driving.
Technical background
Because domestic measuring technology starting evening, at present in the test of many companies all in a kind of dispensable state, greatly
All only rest in software unit testing, integration testing and functional test more, and functional test nearly all uses manual test
Means complete.Manual test needs tester according to use-case, clicks on each operation one by one in systems, it is clear that such
Test not only wastes substantial amounts of manpower and materials, and easily because fatigue operation causes error, cause test result inaccurate etc.
Problem.
Software development constantly builds development to continuous integrating and automation, and software upgrading iteration speed is also increasingly faster, hand
Work test can not meet the pattern of Future Software exploitation.Up to the present, on the one hand the test industry of the country does not have still
Obtain enough attention, although on the other hand thering is part company to begin one's study automatization testing technique, when in the market do not lead to
With automatization testing technique and the automated test frame of shaping, result in web terminal regression test can not all standing, online implementing
The problem of still there is many bug afterwards.
Grid company one, with the popularization of internet, is more and more done to the construction and development of focusing on IT application in enterprises
Public software is applied in the daily office of power network, in grid company, before every a online implementing, is required for by strict survey
Examination, to shorten test period, saves testing cost, it is ensured that test quality, has built this automated test frame.
The content of the invention
The present invention is a kind of web terminal Function Test Automation framework based on power business case driving, including following several
Individual part:
1) there are the data of automatic test and the content of test, test case in automatic test cases, test case
Test data is provided for automatic test, the progress of automatic test is driven;
2) use-case being stored in Excel forms, test pin is transferred to using POI transmission technologys by POI data streaming
In this, automatic test is opened in driving script operation;
3) WebDriver technologies are there is provided the interface to different browsers, and realization calls browser in testing results script
Emulation testing is carried out, makes test more directly perceived;
4) automatic test script, test script is write using Java language, and script is accurate by being carried out to system interface
Positioning, control system is run according to use-case step;
5) Selenium.jar, the jar bags provide a series of API, it is possible to achieve to the precise positioning of system interface;
6) JDK environment, is used as the basic foundation of automated function test framework, it is ensured that the API energy in whole framework
Enough it is performed;
The automated test frame is so that when carrying out automatic test, script is core, and tester carries according to selenium
The API of confession writes script to the precise positioning of system interface, and the browser used is set in script, and the test called is used
Example;Test case is write by tester according to system requirements, and the step of test is not only write in test case also needs to compile
Test data is write, by the incoming script of POI data transport stream when script is run, driving automatic test operation, Webdriver technologies
According to the browser interface finished writing in script, browser execution is called, automatic test output test script is completed, by POI data
Stream is said in test result write-in Excel, forms test report.
Beneficial effect of the present invention
Advantage:Test period can be shortened, testing cost is saved, testing efficiency is improved, allow system to be obtained before reaching the standard grade entirely
Face returns to test, it is ensured that the availability and stability of system.
Brief description of the drawings
Fig. 1:Frame construction drawing;
Fig. 2:Block flow diagram.
Embodiment
With reference to Fig. 1, Fig. 2 makes to framework of the present invention and further illustrated:
As shown in figure 1, a kind of web terminal Function Test Automation framework based on power business case driving, including it is following
Part:
1) automatic test cases, automatic test cases are to write using Excel, have automation in test case
The data of test and the content of test, test case provide test data for automatic test, drive the progress of automatic test;
2) use-case being stored in Excel forms, test pin is transferred to using POI transmission technologys by POI data streaming
In this, automatic test is opened in driving script operation;
3) WebDriver technologies are there is provided the interface to different browsers, and realization calls browser in testing results script
Emulation testing is carried out, makes test more directly perceived;
4) automatic test script, test script is write using Java language, and script is accurate by being carried out to system interface
Positioning, control system is run according to use-case step;
5) Selenium.jar, the jar bags provide a series of API, it is possible to achieve to the precise positioning of system interface;
6) JDK environment, is used as the basic foundation of automated function test framework, it is ensured that the API energy in whole framework
Enough it is performed;
As shown in Figure 1 and Figure 2, it is test script, the API that tester provides according to selenium in the core of the present invention
Script is write to the precise positioning of system interface, the browser used, and the test case called are set in script;Test is used
Example is write by tester according to system requirements, and the step of test is not only write in test case also needs to write test number
According to, by the incoming script of POI data transport stream when script is run, driving automatic test operation, Webdriver technologies are according to script
In the browser interface finished writing, call browser execution, complete automatic test output test script, test is said by POI data stream
As a result in write-in Excel, test report is formed.
The automated test frame is run by case driving script, is carried out data in automatic test, use-case and is smoothly passed
It is input into script, it is ensured that correctly operation is the key entirely tested to script, has been run after script, test also terminates therewith, institute
It is the core entirely tested with script.The operation of the operation triggering browser of script and then system starts setting quilt according to script
Click on, reach the purpose of checking systemic-function availability;In system operation, the data obtained during operation, end of run are preserved
When, output test data, obtain test report, complete the whole process of test.
Claims (1)
1. a kind of web terminal Function Test Automation framework based on power business case driving, it is characterised in that including following several
Individual part:
1) there are the data of automatic test and the content of test in automatic test cases, test case, test case is certainly
Dynamicization test provides test data, drives the progress of automatic test;
2) POI data streaming, is transferred to the use-case being stored in Excel forms in test script using POI transmission technologys,
Script operation is driven, automatic test is opened;
3) WebDriver technologies are there is provided the interface to different browsers, and realization calls browser to carry out in testing results script
Emulation testing, makes test more directly perceived;
4) automatic test script, test script is write using Java language, script by system interface carry out precise positioning,
Control system is run according to use-case step;
5) Selenium.jar, the jar bags provide a series of API, to realize the precise positioning to system interface;
6) JDK environment, is used as the basic foundation of automated function test framework, it is ensured that API in whole framework can be by
Perform;
To carry out during automatic test, script is core to the automated test frame, and tester provides according to selenium
API writes script to the precise positioning of system interface, and the browser used, and the test case called are set in script;Survey
Example on probation is write by tester according to system requirements, and the step of test is not only write in test case also needs to write test
Data, by the incoming script of POI data transport stream when script is run, driving automatic test operation, Webdriver technologies are according to pin
The browser interface finished writing in this, calls browser execution, completes automatic test output test script, survey is said by POI data stream
In test result write-in Excel, test report is formed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710417215.7A CN107273287A (en) | 2017-06-06 | 2017-06-06 | A kind of web terminal Function Test Automation framework based on power business case driving |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710417215.7A CN107273287A (en) | 2017-06-06 | 2017-06-06 | A kind of web terminal Function Test Automation framework based on power business case driving |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107273287A true CN107273287A (en) | 2017-10-20 |
Family
ID=60065119
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710417215.7A Pending CN107273287A (en) | 2017-06-06 | 2017-06-06 | A kind of web terminal Function Test Automation framework based on power business case driving |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107273287A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109144542A (en) * | 2018-08-07 | 2019-01-04 | 太仓市同维电子有限公司 | Wireless terminal product software automatic updating system and method |
CN110287092A (en) * | 2019-05-10 | 2019-09-27 | 广东电力交易中心有限责任公司 | A kind of electricity transaction system and its automatic test approach based on graphical interfaces |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102222112A (en) * | 2011-07-12 | 2011-10-19 | 宇龙计算机通信科技(深圳)有限公司 | Resource management device and resource management method |
US20150106791A1 (en) * | 2013-10-14 | 2015-04-16 | Cognizant Technology Solutions India Pvt. Ltd. | System and method for automating build deployment and testing processes |
CN106547689A (en) * | 2016-10-20 | 2017-03-29 | 金航数码科技有限责任公司 | A kind of automatic test cases development system and method based on web |
-
2017
- 2017-06-06 CN CN201710417215.7A patent/CN107273287A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102222112A (en) * | 2011-07-12 | 2011-10-19 | 宇龙计算机通信科技(深圳)有限公司 | Resource management device and resource management method |
US20150106791A1 (en) * | 2013-10-14 | 2015-04-16 | Cognizant Technology Solutions India Pvt. Ltd. | System and method for automating build deployment and testing processes |
CN106547689A (en) * | 2016-10-20 | 2017-03-29 | 金航数码科技有限责任公司 | A kind of automatic test cases development system and method based on web |
Non-Patent Citations (1)
Title |
---|
贾泽玉: "基于Selenium的Web自动化测试工具的改进与实现", 《中国优秀硕士论文全文数据库信息科技辑》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109144542A (en) * | 2018-08-07 | 2019-01-04 | 太仓市同维电子有限公司 | Wireless terminal product software automatic updating system and method |
CN110287092A (en) * | 2019-05-10 | 2019-09-27 | 广东电力交易中心有限责任公司 | A kind of electricity transaction system and its automatic test approach based on graphical interfaces |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101241467B (en) | Automatized white box test system and method facing to WEB application | |
CN109726132A (en) | A kind of method for testing software and software test automation management system | |
CN103164328B (en) | The regression testing method of a kind of business function, Apparatus and system | |
CN107506303A (en) | Method, apparatus and system for automatic test | |
US9489277B2 (en) | Application component testing | |
CN105373478B (en) | Automated testing method and system | |
CN109766280A (en) | Method for testing software and software test platform | |
CN105335287B (en) | A kind of automated testing method and device | |
CN102141962A (en) | Safety distributed test framework system and test method thereof | |
CN106933729A (en) | A kind of method of testing and system based on cloud platform | |
CN104834600A (en) | Method for testing Android application controls | |
CN104156224A (en) | Continuous integration method and system for software construction | |
CN104268079A (en) | POS (Point Of Sale) application program testing method and system | |
CN105760296A (en) | Automation testing control method, device and terminal | |
CN112306861A (en) | Unittest and Jenkins tool-based interface automatic testing system and method | |
CN107273287A (en) | A kind of web terminal Function Test Automation framework based on power business case driving | |
Alferidah et al. | Automated software testing tools | |
Wang et al. | Research on mobile application automation testing technology based on appium | |
CN110990262A (en) | Test method and tool integration based on micro-service architecture | |
CN102520343A (en) | Graphical test method of semiconductor devices | |
Sawant et al. | Implementation of selenium automation & report generation using selenium web driver & ATF | |
CN111176971A (en) | Code quality testing system and method based on UI automation | |
CN110597718A (en) | Automatic test implementation method and system based on AI | |
WO2024001594A1 (en) | Operator development method and apparatus, operator processing method and apparatus, and electronic device, system and storage medium | |
CN112835789A (en) | Realization technology for automatic test of automatic test framework |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20171020 |