Tag: 自动化

TableView添加一个自动更改的新标签

好吧,最近我帮助Darren解决了我的tableview数据没有显示的问题。 我将在这里留下一份我将要讨论的文件。 下载文件(3.12mb) 在故事板中,最后有3个对象,其中2个自动更改,取决于tableView上select的项目。 我想添加另一个标签(在项目中已经做过),然后根据在表格视图中select的项目,在这里显示一些信息。 就像其他2。 我怎样才能做到这一点? 对于那些不信任下载文件的人,我得到了一些可能有帮助的代码。我想在带有标签#3的标签中显示“myData2”。 我怎样才能做到这一点? – (void)viewDidLoad { [super viewDidLoad]; // Define our test data myData = [NSMutableArray arrayWithObjects: @"Chasing Amy", @"Mallrats", @"Dogma", @"Clerks", @"Jay & Silent Bob Strike Back", @"Red State", @"Cop Out", @"Jersey Girl", nil]; //test for 2nd data myData2 = [NSMutableArray arrayWithObjects: @"Info for Chasing Amy item", @"Info […]

如何使一个ios应用程序发布到twitter

我正在写一个ios应用程序,将手动分发给一小部分人。 我为我的目的创build了一个新的Twitter帐户,我需要知道如何使应用程序自动发布到这个Twitter帐户。 作为一个额外的说明,应用程序将需要至less每分钟发布,但更频繁的会更好。 任何有关这个话题的知识将不胜感激。 谢谢。

iPhone自动化

有没有任何库/工具来自动化iPhone的交互。 我的研究发现了UIAutomation,但是这似乎仅限于在本地testing环境中的应用程序。 我想自动化已发布和下载到我的iPhone的应用程序的交互。 我对networking空间的自动化和testing很熟悉,但是我对Iphone开发很陌生。 我甚至会欣赏没有图书馆的策略。

真正的iOS设备上的Appium

我正在Appium和iPad 2中使用以下所需的function DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability("udid", "ea56e8ae8e5f5235c16d5315f4cb34d81be55917"); capabilities.setCapability("platformName", "iOS"); capabilities.setCapability("deviceName", "iPad 2"); capabilities.setCapability("platformVersion", "8.3"); capabilities.setCapability("app", "/Users/Aress-QA/Desktop/PSt-forQA.ipa"); capabilities.setCapability("platformName", "iOS"); wd = new IOSDriver(new URL("http://0.0.0.0:4723/wd/hub"),capabilities); wd.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS); 应用程序启动后崩溃,Appium控制台显示以下错误, info: [debug] [INST STDERR] 2015-11-04 14:51:55.082 instruments[9690:170378] WebKit Threading Violation – initial use of WebKit from a secondary thread. info: [debug] [INST STDERR] 2015-11-04 14:51:55.984 instruments[9690:170400] Attempting […]

如何在iOS模拟器上启动appiumtesting?

我有以下设置,并试图在iOS模拟器上开始testing…我是一个初学者,不知道如何开始testing。 我已经从教程中导入并安装了appium,但是不知道如何开始testing。 问题是:这个设置是否正确? 如何运行testing? import java.io.File; import java.net.URL; import java.util.HashMap; import java.util.List; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.remote.CapabilityType; import org.openqa.selenium.remote.DesiredCapabilities; import org.openqa.selenium.remote.RemoteWebDriver; import org.testng.Assert; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; import org.openqa.selenium.WebDriver; import org.openqa.selenium.remote.CapabilityType; import org.openqa.selenium.remote.DesiredCapabilities; public class AppiumDriver { private static final String JavascriptExecutor = null; public WebDriver driver = null; @BeforeMethod […]

错误:目标无法运行:debuggingcom.apple.Preferences的权限被拒绝

在Appium上运行第一个testing,并在日志中出现错误。 Appium version 1.4.13 xcode version 7.2 带有appium的iOS设置: http ://screenpresso.com/ = nD2Cf。 这是我的Java代码: import io.appium.java_client.AppiumDriver; import io.appium.java_client.MobileElement; import io.appium.java_client.ios.IOSDriver; import io.appium.java_client.remote.MobileCapabilityType; import org.openqa.selenium.WebDriver; import org.openqa.selenium.remote.DesiredCapabilities; import org.openqa.selenium.remote.RemoteWebDriver; import java.net.MalformedURLException; import java.net.URL; import java.util.concurrent.TimeUnit; /** * Created by betbull on 1/29/16. */ public class Runing { public static AppiumDriver wd; public static void main(String[] args) throws […]

UI自动化:访问UIScrollView中的UIViews

有没有办法使用UI自动化testing使用JavaScript, UIScrollView内的UIScrollView ? 由于UIScrollView不会给我设置,如果它具有可访问性或不,我想知道是否有可能做到这一点。 XIB中的结构: 我可以看到仪器日志上的所有内容,除了里面的UIScrollView和UIViews 。 谢谢。

自动化设置应用程序,iPhone

我正在尝试在iPhone上使用UI Automation连接到任何给定的Wi-Finetworking。 我想自动设置应用程序。 它应该自动: 打开“设置”应用 打开Wi-Fi; 通过提供SSID和WPA连接到给定的networking。 我的问题是: 使用UI自动化可以自动化任何内置的应用程序吗? Apple / iOS安全模型是否阻止了对内置应用程序的访问? 如果有可能,如何实现这一目标?

使用appium访问iOS控制中心

我试图用appium和下面的代码打开控制中心: int halfWidth = driver.manage().window().getSize().width / 2; int screenHeight = driver.manage().window().getSize().height; driver.swipe(halfWidth, screenHeight-5, halfWidth, screenHeight-300, 500); // driver is instance of IOSDriver 应用程序只需从底部向上绘制屏幕(使用坐标input),而不是打开控制中心。 任何人都知道如何使用appium和滑动(或任何其他方式)打开控制中心? 谢谢,查理

使用Xcode和Provisioning Portal自动化TestFlightApp

我在TestFlight中发布一个新版本时,目前有一个相当手动的过程: 从TestFlightApp下载其他设备文本文件 login到供应configuration文件 上传设备 更新供应configuration文件以包含新添加的设备 下载生成的.mobileprovision文件 点击文件添加到Xcode 产品 – >存档,共享,创buildIPA TestFlightApp中的新build input发行说明 上传(等待) selecttesting人员来通知 有脚本或实用程序为我处理这些步骤? 我不介意这些步骤的一部分的解决scheme,只要它减less这个过程。 另一方面,也许我正在重复我不应该做的事情,或者不以有效的方式做事。