javascript - IOS UI Automation - working with external Data -
Is there a way to work with external data, for example text file? With JS I have no option to I / O for a good reason. The purpose of this is, I want to validate the data from a file or database with data shown in APP (comparative tests) ... Is there a move for the UI automation tool?
<
var target = div class = "post-text" itemprop = "text"> text file
UIATarget.localTarget (); Var host = target.host (); Var result = host.performTaskWithPathArgumentsTimeout ("/ bin / cat", ["/Users/username/Documents/test.txt"], 5) var content = result.stdout; UALogger.logMessage (content); Content of
test.txt
:
Hello World!
This is an examination.
And such that it appears in the editor log :
The downside is that you manually parse the contents of the file
Databases
I can see that the only possible option is to use this method in conjunction with it. But, alas, I did not like this approach. I can not guarantee that this will work.
Comments
Post a Comment