Detailed flow of the USB enumeration processThe user plugs a USB device into the USB port, the host is powering the port, and the device is powered up at this time.Host detection equipment.The 1>hub uses an interrupt channel to report the event to host.2>host sends the Get_port_status (read port status) Request for more device information.The 3> hub detects whether the device is running at low speeds or at
Previous: ASP. NET SignalR with LayIM2.0 Easy implementation of the web chat room (a) of the grassroots data building, let the data Live (data acquisition)We have completed the initial interface of the construction work, this article will introduce the core of IM, is the SIGNALR hub class. The entire instant messaging mechanism is based on it. As for the principle I also no longer explain, said is not as good as a professional article. So we look dire
ArticleDirectory
I. Introduction
II. Implementation Mechanism
3. Hub example tutorial
Iv. Example of persistent connection
Use signalr in ASP. net mvc to implement the push function
Luo chaohui (http://www.cnblogs.com/kesalin/)
CC license. For more information, see Source
I. Introduction
Signal is an HTML websocket framework supported by Microsoft running on the dot NET platform. The main purpose of this function is to ena
How to make a network cable-network cable Sequence
14:03:16 | category: Share read 135 comments 0 font size: LargeMediumSmall subscription
General orange, orange, green, blue, blue, green, brown, white.
If there are only four wires, choose four cables. When the cables are made, press the four portals of the crystal head at 1/2/3/6.
If you only have one network cable, but want to connect to the Internet with two computers at the same time, do not add peripherals, when the network cable is made 45
", "com.android.settings"); Capabilities.setcapability ("Appactivity", ". Settings ");d river = new Androiddriver (New URL (" Http://127.0.0.1:4723/wd/hub "), capabilities); Sleep (2000);} @Afterpublic void TearDown () throws Exception {Driver.quit ();} @Testpublic void Test () {driver.sendkeyevent (26);//press Power key to lock the screen sleep (3000);d River.sendkeyevent (26); Press the Power key to light
To run a program problem:Workaround:Mobile phone system version is low, I am V4.2.2, operating on Android 4.3 system is normalThe code is as follows:#Coding=utf-8" "XXX function: Test calculator basic function Note: need android 4.3 above system" " fromAppiumImportWebdriverImport Time#PATH = Lambda P:os.path.abspath (os.path.join (Os.path.dirname (__file__), p))desired_caps={}desired_caps['PlatformName']='Android'desired_caps['platformversion']='4.3'desired_caps['devicename']='4d005eebb070606f'#
), Text.getattribute ("value"));}@Testpublic void Testslider () throws Exception {Get the Slider//progress bar controlWebelement slider = driver.findelement (By.xpath ("//uiaslider[1]");See if the initial data is 50%Assertequals ("50%", Slider.getattribute ("value"));Point sliderlocation = Getcenter (slider);Drag controls, drag from center to initial positionDriver.swipe (Sliderlocation.getx (), Sliderlocation.gety (), Sliderlocation.getx () -100, Sliderlocation.gety (), 1000) ;Verify that the c
("DeviceName", "Android Emulator"); //setting up the Android system versionCapabilities.setcapability ("Platformversion", "4.4.2"); //Set APK pathCapabilities.setcapability ("App", App.getabsolutepath ()); //set the app's main package name and main class nameCapabilities.setcapability ("Apppackage", "Com.example.android.contactmanager"); Capabilities.setcapability ("Appactivity", ". Contactmanager "); //InitializeDriver =NewAndroiddriver (NewURL ("Http://127.0.0.1:4723/
[' platformversion '] = ' 5.1.2 'desired_caps[' devicename '] = ' Lenovo p1c72 'desired_caps[' apppackage '] = ' com.xiangchao.starspace 'desired_caps[' appactivity '] = '. Starspace 'Driver = Webdriver. Remote (' Http://localhost:4723/wd/hub ', desired_caps)Driver.quit ()Open a separate CMD window and run the test script (Python xxxx.py). At this point the server will have output, the program is running on
It is divided into three steps:Download The latest version of Selenium-server-standalone.jar on the 1.selenium website 2. Startup selenium-server::::: Java-jar" Selenium-server-standalone-2.2.0.jar "NBSP; -dwebdriver.firefox.bin=" C:\FirefoxCollection\Mozilla Firefox 36.0\ Firefox.exe " 3.java Code initialization Webdriver object: desiredcapabilities capabilities = new Desiredcapabilities (" Firefox "," ", Platform.any); Driver=new Remotewebdriver (New URL ("http://127.0.0.1:4444/
Look at http://blog.csdn.net/today520/article/details/36378805.The article, finally on the real machine above test success.Because there is no developer account, it cannot be posted to the machine. So we used the NetEase news client to testFirst get Bundleid.In the app's Info.plist file, you can findTest it and see if it's right.Https://itunes.apple.com/lookup?bundleId=com.netease.newsSuccess will return app app information, JSON formatFirst the terminal command starts Appium:Appium-u xxxxxxxxxx
/examples/python. Run the pip command to install all the dependent libraries (if it is not in the virtual environment virtualenv, you need to use the sudo command ):
$ pip install -r requirements.txt
Next, run the sample test:
$ nosetests simple.py
Now that you have installed the required software and run the test code, you have a general understanding of the Appium process. Now let's take a closer look at the sample test code just run. This test starts the sample application, then fills in some
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.