#64 楼 @lihuazhang asdadad
@lihuazhang2012 asdadd
请读 论坛须知
描述有不错的定位。
@easonhan007 能放到 testerhome 里面来不,这样回帖讨论也可以放到这里来。我看你的博客基本也没回复啊。。
socket 连接的稳定性 你这个是要做压测了。 用 jmeter 的 socket 测试吧。
@Before
public void setUp() throws Exception {
// set up appium
File classpathRoot = new File(System.getProperty("user.dir"));
File appDir = new File(classpathRoot, "../../../apps/UICatalog/build/Release-iphonesimulator");
File app = new File(appDir, "UICatalog.app");
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.BROWSER_NAME, "");
capabilities.setCapability("platformVersion", "7.1");
capabilities.setCapability("platformName", "iOS");
capabilities.setCapability("deviceName", "iPhone Simulator");
capabilities.setCapability("app", app.getAbsolutePath());
driver = new AppiumDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
}
你看看 sample 代码里的,自己对应修改下。
帖子不规范
#54 楼 @lihuazhang2012 ceshi
发帖请遵从规则,请纠正,否则删帖。
上点图啊, 妹子都没,非常爽,文字不够啊。
除了薪水之外,别的都是我喜欢的。哈哈。加头像,亲。
ant 已经淘汰了吧。。
必须顶起
没有头像,晚上删帖。
def find_elements_by_android_uiautomator(self, uia_string):
"""Finds elements by uiautomator in Android.
:Args:
- uia_string - The element name in the Android UIAutomator library
:Usage:
driver.find_elements_by_android_uiautomator('.elements()[1].cells()[2]')
"""
return self.find_elements(by=By.ANDROID_UIAUTOMATOR, value=uia_string)
def find_element_by_accessibility_id(self, id):
"""Finds an element by accessibility id.
:Args:
- id - a string corresponding to a recursive element search using the
Id/Name that the native Accessibility options utilize
:Usage:
driver.find_element_by_accessibility_id()
"""
return self.find_element(by=By.ACCESSIBILITY_ID, value=id)
Allows for elements to be found using the "Accessibility ID". The methods take a
string representing the accessibility id or label attached to a given element, e.g., for iOS the accessibility identifier and for Android the content-description. Adds the methods
driver.find_element_by_accessibility_id
and find_elements_by_accessibility_id
.