java automation testing

Discover java automation testing, include the articles, news, trends, analysis and practical advice about java automation testing on alibabacloud.com

Appium-based mobile automation testing, the password keypad does not recognize the problem

is "963", the first key is "9", the second key is "6" And so on However, some people will ask "since we do not recognize the keyboard, then how to get keyboard information?" ", yes, we can only get the keyboard number by OCR, but we can't get the key information. So how do you click it? Next, we turn on the "pointer position" function of andorid and calculate the position of each key on the screen (calculated by a percentage of the way: The key is in the relative position of the screen). Then d

Web interface Test JMeter Interface Test Automation (iii) (data-driven test) interface testing and data-driven

Reprint: HTTP://WWW.CNBLOGS.COM/CHENGTCH/P/6576117.HTML1 profileData-driven testing is the process of separating test logic from test data, saving test data in the form of Excel tables, and reading and executing tests using test scripts.2 data-driven and JMeter interface testingWe have briefly introduced the interface test parameter input and test execution process, because a large number of test scripts and test data together, so that our test script

Python special test--android app Automation testing Framework

framework1 How do I use it? Prepare a third-party library-first install the DDT library, followed by the introduction of DDT in the script, then OKSpecific: Download the DDT library on the Python website; Commands for importing DDT libraries in scripts: From DDT import DDT, data, unpack To label DDT before testing the class: @ddt strong> class Mooktestcase (unittest. TestCase), indicating that this tes

Use VS 2010 to improve the level of automation of software testing (2)

On the instrument said the tester small Zhang to developer Xiao Li sent a incisively and vividly bug report, sure enough, Xiao Li according to the small Zhang of this "picture shadow graphics" without any difficulty will be the latent very deep bug caught. But is this bug a bug? I'm afraid I'll have to run again. She found the bug test to confirm that the problem had indeed been resolved. In fact, even if it is not to confirm that the bug has been Shang, Xiao Zhang also had to run a lot of the t

APP remote debugging and automated network testing, and app debugging Automation

APP remote debugging and automated network testing, and app debugging Automation 1. Enter this website, register and log on Https://dt.testbird.com/login/ 2. Choose cloud phone 3. Select the phone you want to rent 4. Click remote debugging. 5. In the dos command window of the Local Computer, enter two adb command prompts. If no error occurs, the link is successfully reminded. 6. In Android stud

Fedora23 install and use web automation testing tools selenium and fedora23selenium

Fedora23 install and use web automation testing tools selenium and fedora23selenium 1. pip install selenium requires root permission 2. Run openchrome. py: from selenium import webdriverfrom selenium.common.exceptions import NoSuchElementExceptionfrom selenium.webdriver.common.keys import Keysimport timebrowser = webdriver.Chrome() # Get local session of Chromebrowser.get("http://www.bing.com") # Load pagea

"XPath learning" XPath will not, say what do you do for site automation testing?

Well, I really don't. Feel I write the essay is very slag, not necessarily, everybody don't be misled by me, best not to see. I try to make sure it's all right to write.First of all, these two got me dizzy.1.//Regardless of hierarchy: relative path2./Care Level: represents an absolute path to an element3.//DDD/BBB: Mixed explanation? All the DDD elements under the BBB element, no matter where4. * Indicates the element to which the path positioned before the asterisk is selected*: Select all elem

Application Python+selenium for Web Automation testing under MAC OS

("http://cnblogs.com") Time.sleep (1) Browser.find_element_by_link_text ("Login"). Click () time.sleep (1) browser.find_element_by_id ("INPUT1"). Send_keys ("User name") browser.find_element_by_id ("Input2"). Send_keys (the password") browser.find_element_by_id ("signin"). Click () time.sleep (1)Try: ifBrowser.find_element_by_link_text ("Exit"): Print "Login successfully."except: Print "Login failed."#browser.quit ()Run results (test pass):This is done with a simple test case under

Appium Apppackage and appactivity for mobile automation testing

Method One: Open Appium directly, click on the top left corner of the robot iconChoose the location of the APK, here take contactmanager.apk as an exampleMethod Two: Use the Dex2jar and Jd-gui tools to decompile the APK fileHere still take contactmanager.apk as an example(1) Rename contactmanager.apk to Contactmanager.zip and extract the file Classes.dex;(2) Unzip the Dex2jar-2.0.zip and enter the folder from the command line;(3) Run the commandGet Classes-dex2jar.jar under the current folder (F

Functional Automation Testing Tools Selenium individual browsers and Android device driver methods

(Mobilecapabilitytype.platform_name, "Android"); Capabilities.setcapability (Mobilecapabilitytype.device_name, "WQ"); Capabilities.setcapability (mobilecapabilitytype.version, "6.0.1"); Capabilities.setcapability ("Apppackage", "along.nttdata.com");//This is the native app's package name capabilities.setcapability (" Appactivity "," along.nttdata.com.ui.LoginActivity ");//start activity URL url = new URL (" http://127.0.0.1:4723/wd/ Hub "); Sdriver = new Androiddri

Appium Automation Testing (3)-Control positioning & Chinese input

‘]=‘.XXSearchActivity‘ desired_caps[‘unicodeKeyboard‘]=True desired_caps[‘resetKeyboard‘]=True driver = webdriver.Remote(‘http://localhost:4723/wd/hub‘, desired_caps) driver.find_elements_by_name("搜索话题") driver.find_element_by_class_name("android.widget.EditText").send_keys(u"可爱") # driver.find_element_by_id(‘et_searchactivity_search‘).send_keys(u"可爱") driver.find_element_by_name("搜索").click() Time.sleep (5)//Pause on page for 5 seconds driver.quit() From for not

Robot framework for Web UI Automation testing, browser configuration instructions

Reprint please indicate the source, thank you;Chrome Browser:1. Download the Chromedriver.exe driver file consistent with the local browser version number from the following address;Http://chromedriver.storage.googleapis.com/index.html2. Place the drive file under the Python root path, e.g. D:\Python27;IE Browser:1, from the following address download and local selenium version number and operating system consistent iedriver;Http://selenium-release.storage.googleapis.com/index.html2. Place the d

The practice of Python automation for stress testing

"self.content= Os.popen (CMD)def stopapp (self):#停止APPcmd = "adb shell am force-stop com.zgjky.app"Os.popen (CMD)#获取启动时间def getlaunchedtime (self):For line in Self.content.readlines ():If "Thistime" in line:Self.starttime = Line.split (":") [1]BreakReturn Self.starttime#控制类Class Controller (object):def __init__ (Self,count):Self.app = App ()Self.counter = CountSelf.alldata = [("Timestamp", "Elpasedtime")]#单次测试过程def testprocess (self):SELF.APP.LAUNCHAPP ()Time.sleep (5)Elpasedtime = Self.app.GetL

Selenium+python for Web Automation testing (DEMO+API)

of the current page browser.name: The name of the current browser Specific reference: Module-selenium.webdriver.remote.webdriverSome common operations of webelement webEle.clear(): Clear the contents of the element, if this element is a text element webEle.click(): Click the current element webEle,is_displayed(): Whether the current element is visible webEle.is_enabled(): Whether the current element is prohibited, such as often disabling the click of some elements we

Web Automation Testing---CSS way to position page elements

child nodes can be in accordance with the 1, 2, the other write, in the middle with > to connect, so that the uniqueness of the element can be guaranteed, such as:Driver.find_element_by_css_selector (' span>input#kw '). Click ()5, you can also use the tag in addition to the ID, other than class attributes to locate elements, such as the input box through the Name property to locate:Driver.find_element_by_css_selector (' Input[name= "WD"]). Click ()Attributes can be either with or without a valu

Continuous integration testing framework for Jenkins+ant+jmeter interface Automation

In the busy idle, these days to come back to study, the Jenkins+ant+jmeter interface automation of continuous integration testing of the entire environment to build a successful.Now fill it up. ant installation website Download http://ant.apache.org/bindownload.cgi 2. After the download is successful, unzip it and put it on the local directory D:\ant\Setting environment variablesCalculation--"attribute--" A

SELENIUM+JDBC Implementing parameter Automation testing

); Username.sendkeys (name); //enter the corresponding password value for(intJ=0;j) {password.clear (); String Pass=Passwordlist.get (j); Password.sendkeys (pass); } login.click (); webdriverwait wait=NewWebdriverwait (driver,10); Webelement Logoutbutton= Wait.until (Expectedconditions.elementtobeclickable (By.xpath (".//*[@id = ' site_nav_md ']/ul/li[3]/a[2]"))); Logoutbutton.click (); } }}View CodeThe above code is to give yourself a recor

Android automated testing (1) how to install and uninstall an application, android Automation

locally.The monkeyrunner tool is designed to test applications and devices and run unit tests at the functional/framework level,But you can also use it for other purposes for free. 3. Use java to call the monkeyrunner api import com.android.chimpchat.adb.AdbBackend;import com.android.chimpchat.core.IChimpDevice;public class MonkeyTest { public static void main(String[] args) { // sdk/platform-tools has to be in PATH env variable in order t

Java Automation-keyword driven applications in JUnit interface automation

the completed order OrderID, the canceled order OrderID and other keywords, the code see this will be executed directly after the corresponding operation, and then replace the stringFor example, the original is OrderNo, in the document will write a variety of keywords, such as the revocation of the order OrderID, and then invoke the interface or code itself logic, directly generate a corresponding status of the order ID, and then the original data to replace it.This is the keyword-driven code c

8 super-practical Java testing tools and frameworks and java testing tools

8 super-practical Java testing tools and frameworks and java testing toolsJava If you are just getting started with the Java World, the first thing you need to do is install JDK-Java Development Kit (

Total Pages: 12 1 .... 5 6 7 8 9 .... 12 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.