Search code examples
javascriptxcodeios-ui-automation

File(.txt) Input Output from .trace file of XCODE UI Automation


I am trying to write debug lines from my automation script(.trace file) to a text file on local file system. I am using XCode Automation Instrument.

Can anybody guide me on how this is done?


Solution

  • At present , you can not get the txt file . You will either get plist file and manually you have to write it into txt file or you can also get result in terminal window , if you wish you can write it into txt file , but that will be one by one .. you can not write all the result at a single go .

    /// Get the Results from Instruments.

    These are the steps to get the result on Instruments:-

    1) In a application go to profile and open the Instruments .
    
    2) Click on Library there and find the Activity Monitor tool .
    
    3) Press the start button . and find out the process name (mostly you have to find out the name of your application there )
    
    4) Now see if there any leaks you will get that red graph there , As I told you yesterday .
    
    5) Now if there is any leaks and you can see the leaks in Instruments then go to ---------> Terminal 
    
    6) check your process name and write the command there :-  leaks yourprocessname
    
    7) you will get the generated leaks report here .