English 中文(简体)
UIAutomation iPhone App Read from a file
原标题:

This is regarding iPhone App UIAutomation.

I was able to automate the App flow, now I wanted to read a file to us the file data i.e. text file / csv file.

Can you please let me know how we can read a file on a MAC machine.

Since the normal javascript command does not work.

Thanks a ton in Advance.

Regards,

问题回答

Reading from txt or csv is not as such possible,. but an alternative is write a seperate .js file,. and giv the data in the .js file. And in your test script(.js file) include the .js file containing data. As far as I know, i dont have anyother solution





相关问题
How can I load a folders files into a ListView?

I d like to have a user select a folder with the FolderBrowserDialog and have the files loaded into the ListView. My intention is to make a little playlist of sorts so I have to modify a couple of ...

File Handling Issue

I am developing a tool in c#, at one instance I start writing into a xml file continuously using my tool,when i suddenly restart my machine the particular xml file gets corrupted, what is the reason ...

C# GemBox Excel Import Error

I am trying to import an excel file into a data table using GemBox and I keep getting this error: Invalid data value when extracting to DataTable at SourceRowIndex: 1, and SourceColumnIndex: 1. As ...

Saving output of a for-loop to file

I have opened a file with blast results and printed out the hits in fasta format to the screen. The code looks like this: result_handle = open("/Users/jonbra/Desktop/my_blast.xml") from Bio.Blast ...

热门标签