automation test plan for selenium

Read about automation test plan for selenium, The latest news, videos, and discussion topics about automation test plan for selenium from alibabacloud.com

Python+selenium webdriver Automation Test (i)

statements (file--defualt setting--------and inspections------Encoding specified for file--and Settings UTF8 ), try the above two ways, still can't solve, crash cure happened to see a post, said #coding = UTF8 This sentence must be written in the first line, after the test, sure enough success!! It seems that Python's use is poor ~ later to strengthen Python.Encoding conversion, be sure to write in the first line!!! Head Write!!! First line!! More im

WEB Automation test splinter and Selenium usage

There is sth wrong with input on my Ubuntu. So the first blog would is written in 中文版 about what I am doing during this weekend. I study python for a while the about Algorith and the network and now find some small project for practice. One of Pratice is to log on website automatically. Splinter is an interesting item which would cover web communication and testing. Following link is a implementation on what to log on 12306 to buy ticket presented by Youerning. http://youerning.blog.51cto.com/10

"Selenium2 Python Automation Test" (one)--selenium installation version

First to tell you about the selenium environment, you can in the CMD first look at their own selenium version:Enter it and you can install it.I would like to tell you how to skip the verification code to log in, the results of a lot of friends and I asked my environment configuration problems, so I think it is detailed with you to explain, I also make a record. You can take a look ahead of the issue of skip

Selenium + Python automation Test unittest Framework Learning (iii) Webdriver element positioning (i)

1.Webdriver principleWebdirver is a Web automation tool that provides a unified Webdriver interface to the browser, which is submitted by client, our test script, and the remote server browser responds to the request. Compared to the original selenium1 in the Selenium RC is more convenient, the browser operation more flexible.2. Positioning(1) Positioning of elem

JAVA+SELENIUM+TESTNG Building Automation Test Architecture (1) separation of code and data

1. Introduce the JAVA+SELENIUM+POM Automatic test framework, the first to realize the separation of code and account URL and other information. The 2nd supports cross-browser implementation by reading the configuration file.1) Add information such as account URL to the properties file and read2) write the browser class by fetching the configuration file to achieve browser switching3)

Selenium + Python automation test (i)

(JS) time.sleep (3)# move the scroll bar to the top of the page js="var q=document.documentelement.scrolltop=0"driver.execute_script (JS )To invoke the keyboard key operation requires the introductionKeysPackage:From Selenium.webdriver.common.keys import keysthrough Send_keys () Invoke key:Send_keys (keys.tab) # TABSend_keys (keys.enter) # Enterkeyboard combination Key usage:driver.find_element_by_id ("kw"). Send_keys (Keys.control,'a' ) Time.sleep (3) driver.find_element_by_id ("kw"). Send_ke

Robot Framework Selenium (rfs:web Automation test artifact)

.6. Test Execution Report and log is HTML format, easy to read.The 7.Robot framework is not an automated test tool like QTP. It is an automated testing framework, or an automated test platform.8. Provides a listening interface for test execution events, and can customize scripts in the interface. For example, a script

Mac+python3+selenium to do PC interface Automation test

First install the environment you can refer to this article https://www.zhihu.com/question/30496889I use Chrome to browse, download Webdriver's address is http://chromedriver.storage.googleapis.com/index.html,Click to download the historical version of Chrome: https://www.chromedownloads.net/Note that the downloaded version must correspond to its own version of Chrome, or the error will be as follows: version support for Chromedriver can be viewed from http://npm.taobao.org/mirrors/chromedriver/

JAVA+SELENIUM+TESTNG Building Automation Test Architecture (2) cross-browser capabilities

("Webdriver.firefox.bin", "" ");Driver = new Firefoxdriver ();} else if (Browsername.equalsignorecase ("Chrome")) {system.setproperty ("Webdriver.chrome.driver","C:\\users\\administrator\\workspace\\seleniumkuangjia\\driver\\chromedriver.exe");Driver = new Chromedriver ();} else if (Browsername.equalsignorecase ("IE")) {system.setproperty ("Webdriver.ie.driver", "" ");Driver = new Internetexplorerdriver ();}Driver.get (URL);return driver;}/***//Close browser and launch */Public void TearDown ()

Python+selenium in the UI Automation test project, Common Tips 2: Read the configuration file (Configparser,.ini file)

9 Ten classReadconfig: One def __init__(self): A -FD =Open (Configfile_path) -data =Fd.read () the #Remove BOM - ifData[:3] = =codecs. Bom_utf8: -data = Data[3:] -File = Codecs.open (Configfile_path,"W") + file.write (data) - file.close () + fd.close () A atSELF.CF =Configparser. Configparser () - Self.cf.read (Configfile_path) -# read the information under Config - defGetconfigvalue (self, name): -Value = Self.cf.get ("Config", name) - returnvalue in# read the

Selenium + Python automation Test unittest Framework Learning (iii) WEBDRIVER element operations (ii)

selenium.webdriver.common.action_chains Import actionchainsright = driver.find_element_by_id ("id") actionchains (driver). Context_clcik ("right"). Perform () #鼠标右键left = driver.find_element_by_id ("id") Actionchains (driver). Click_and_hold("left"). Perform () #鼠标左键double = driver.find_element_by_id ("id") Actionchains (driver). Double_clcik("Double"). Perform () #鼠标双击move = driver.find_element_by_id ("id") Actionchains (driver). Move_to_element("move").

SELENIUM2 Learning -036-webui Automation Practical instance -034-javascript in Selenium Automation application example of six (get JS execution result return value)

Jquery.java test_jsreturn, 2015-8-8 15:59:51 Exp $ - * $ */ $ @Test - Public voidTest_jsreturn () { -System.out.println ("\nstart test_jsreturn ..."); theSystem.out.println ( This. EXECJSR (JQ)); - }Wuyi}The execution results are as follows:Start Test_jsreturn ... 717;1396;30;100At this point, theWebUI automation function test script section 0

SELENIUM2 Learning -031-webui Automation Practical Instance -029-javascript application example in Selenium automation (get element position and size)

(";"); - +Elementposition[0] = integer.valueof (position[0]); AELEMENTPOSITION[1] = integer.valueof (position[1]); atELEMENTPOSITION[2] = integer.valueof (position[2]); -ELEMENTPOSITION[3] = integer.valueof (position[3]); - - returnelementposition; -}at this point, WebUI Automated functional test Scripts section 029-javascript Example of application in Selenium

SELENIUM2 Learning -022-webui Automation Practical Instance -020-javascript application example in Selenium automation (get browser display area size)

+ '; ' + window.innerheight"; A -String[] Areasize = ((Javascriptexecutor) This. Webdriver). Executescript (JS). toString (). Split (";"); - theBrowserdisplayareasize[0] = integer.valueof (areasize[0]); -BROWSERDISPLAYAREASIZE[1] = integer.valueof (areasize[1]); - - returnbrowserdisplayareasize; +}From the browser's console, execute the script as shown in the results.PS: In the actual use process, if the browser window size changes, you need to regain the size of

Design and implementation of selenium combined with TESTNG automation framework __selenium

to test, will consume a lot of time and energy, Testers, too, have been overwhelmed by the decline in patience. In order to avoid this situation, the automatic testing of the original function is particularly important. 2. Introduction to Tools When it comes to open source automation testing tools, online talk about the wind and cloud, but other people said things are not necessarily suitable for you, we a

SELENIUM2 Learning -032-webui Automation Practical Case -030-javascript Application example in Selenium Automation (highlight Element)

-JS = "document.getElementById" ("+ ID +"). Style.border=\ "3px solid" + color + "\" "; - - This. Execjs (JS); -}At this point, theWebUI automation function test script section 030-javascript in the Selenium Automation application example of five (highlighting elements) successfully complete

Selenium automation-java-encapsulation assertions, selenium-java-

Selenium automation-java-encapsulation assertions, selenium-java- Encapsulated assertions.1 package com. baidu. www; 2 3 import org. testng. assert; 4/* 5 * encapsulate assertion 6 */7 public class assertion {8 static boolean flog = true; 9 10 public static void verifyassert (Object actual, Object expected) {11 try {12 Assert. assertEquals (actual, expected); 13}

Basic knowledge of selenium automation

need to understand the developer's design ideas, the entire process of code read-through, inefficient, so unit testing in 90% all the above companies have developed themselves to complete. Integration / interface test the relative profitability is still possible, the main completion of the test for each class, interface , the Add () method in a class , pass in the appropriate parameters,

Web automation testing tool selenium 1.0 officially released: chrome support + User Guide

SeleniumIt is an open-source Web automation testing tool. It has recently released version 1.0, marking the formal Addition of a new member in the Web automation testing field. In its new version, apart from fixing a number of bugs, the most eye-catchingThe goal is to add support for Google Chrome in selenium RC and provide a complete user guide on the official w

Selenium (Web Automation Testing tool developed by ThoughtWorks Corporation)

supported 3 componentsEdit Selenium IDE: A Firefox plugin that can record the user's basic operations and generate test cases. You can then run these test cases to play back in the browser, converting the test cases to automation scripts in other languages

Total Pages: 10 1 .... 3 4 5 6 7 .... 10 Go to: Go

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.