Instruments 4.6: Automation Instrument Javascript Editing Annoyance
| Originator: | david.anderson | ||
| Number: | rdar://14544514 | Date Originated: | 25-Jul-2013 02:19 AM |
| Status: | Closed as Duplicate | Resolved: | |
| Product: | Developer Tools | Product Version: | Instruments 4.6 (46000) |
| Classification: | UI/Usability | Reproducible: | Sometimes |
Summary: When using the Automation Instrument with UIAutomation it is very common to edit one of the javascript files that will be used by the Automation Instrument. Using a text editor separate from the one available as part of Instruments (e.g. TextMate) to edit the .js file results in Instruments annoyingly prompting the user with the following warning. Warning The file for the document at '/Users/path/AutomationTest.js' has been modified by another application. Do you want to keep the Instruments version and overwrite or revert to the version on disk? [Revert] [Overwrite with Instruments Version] Instruments should not assume that it is the sole mechanism for editing a javascript file. Like Xcode and myriad other tools, it should automatically detect and reload the changes made by other applications without disturbing the development process with this annoying, unnecessary warning. Not once have I *intentionally* clicked "Overwrite with Instruments Version" Steps to Reproduce: Launch Instruments from Xcode Pick the Automation Instrument Toggle the record button to stop recording Add a script to the automation instrument (e.g. Automation.js) Toggle the record button to start recording (seems to fail without running any tests every time) Toggle the record button to start recording (tests will now run and pass/fail) Open the Automation.js file in Xcode, TextMate, or similar Make changes to Automation.js and save the file. Switch back to Instruments Toggle the record button to stop/start recording Instruments will now prompt you to Overwrite the changes made in Xcode/TextMate with the cached, out of date copy that Instruments last used... Expected Results: Changes made to Automation.js outside of Instruments will be automatically reloaded by Instruments on the next "start recording" action. Actual Results: Changes made to Automation.js outside of Instruments are only reloaded if the user ignores the (dominant) button "Overwrite with Instruments Version" and instead clicks "Revert". Regression: None known Notes:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Dupe of http://openradar.appspot.com/12745392