當前我正在將所有測試用例操作寫入一個JavaScript文件,並使用Xcode Instruments automation.traceTemplate文件執行測試用例。 以下是TestCase文件的內容。如何使用Appium Xcode儀器執行單個命令
var target = UIATarget.localTarget();
var app = target.frontMostApp();
var window = app.mainWindow();
//target.logElementTree();
target.delay(2);
UIATarget.localTarget().captureScreenWithName("Application launched");
target.frontMostApp().mainWindow().textFields()[0].setValue("demo");
target.delay(2);
UIATarget.localTarget().captureScreenWithName("Username entered");
var passwordfield = target.frontMostApp().mainWindow().secureTextFields()[0];
passwordfield.setValue("demo");
我的要求: 我想在使用的Xcode工具,而不是通過完整的測試用例文件類似於實施Appium工具的輸入iOS設備上,每次執行一個動作。
在此先感謝..........
有沒有人可以幫助我?如果我做錯了一些事情,請讓我知道。請討論。 – Ashok