problem logging on to MAC in M-RUN in ZAPTEST
Home › Forums › Ask Expert › problem logging on to MAC in M-RUN in ZAPTEST
- This topic has 19 replies, 2 voices, and was last updated 7 years, 5 months ago by Kirill Bulatnikov.
-
AuthorPosts
-
June 23, 2017 at 7:38 pm #31136Andrew ChanParticipant
I have recorded a script for MAC using Zap Viewer. However, when playing back using M-RUN by opening the zpd file, I would be able to get the logon screen of the MAC but it will not let me logon with the same account that works in Zap Viewer! Anyone has that experience?
June 23, 2017 at 7:52 pm #31137Kirill BulatnikovParticipantHello
So as I understand the script you running successfully under 1Script not going well in M-Run mode, correct?Is it a script working with web application or standalone application? Did you try to launch application using M-Run?
Thanks,
ZAPTEST TeamJune 23, 2017 at 8:18 pm #31138Andrew ChanParticipantI only mean that I have written the script using the Zap viewer. I have never tested it and that’s what I am trying to do… From what I understand the only way to playback the script is to use M-RUN? The application under test is a standalone application and I am only trying to ‘logon’ to the MAC using zpd in M-RUN at this point. Is there other way to playback the script on MAC?
June 23, 2017 at 8:46 pm #31139Kirill BulatnikovParticipantYou can use either 1Script or M-Run. If you need execute only on 1 device 1Script is the right choice.
Please refer to the tooltip of “Launch” method to see how to run script on remote device via 1Script using ZAP Viewer
In M-Run you have to launch application prior to script execution (when you configuring access to remote device)
June 23, 2017 at 10:35 pm #31141Andrew ChanParticipantI finally ‘guessed’ on using the “mac” param in the launch method to open the zap viewer zpd file for MAC. Unfortunately I am still having issues signing onto the MAC. Will continue the investigation. Is there any documentation/video of how this is supposed to be done (ie. using zap viewer to remote playback script on MAC). Thanks.
Attachments:June 26, 2017 at 3:05 pm #31143Kirill BulatnikovParticipantHello
I got your intention. For your purposes – such as testing of remote MacOS application – best solution is run via M-Run.
To set up M-Run you have to add remote machine to list of devices (I suppose you already did), then in M-Run navigate to this device’s desktop and launch AUT manually there. After that you are able to manipulate this application with script.Do you need to log on onto OS initially with the script or the script managing only the AUT?
Thanks,
ZAPTEST TeamJune 26, 2017 at 7:22 pm #31144Andrew ChanParticipantI tried running M-Run (that’s the initial issue I have opened this thread with) but I cannot logon to my MAC user account in M-Run.
June 26, 2017 at 7:39 pm #31145Andrew ChanParticipantI am still trying the use the 1-script tab for the playback. I am coming across with this issue: When I open the zpd file initially with Application(“MAC ISSP Client”).Launch “mac”,”C:UsersAdministratorDocumentsmymac.zpd”, it is opening too big a screen and not the whole screen will show in the ZapViewer. I know reducing the screen resolution will make it work but I have tried changing the resolution to Custom in the zpd file but it takes no effect. Any one came across with this problem? Attaching my zpd file
June 27, 2017 at 12:58 am #31146Kirill BulatnikovParticipantDid you tried to operate with MAC when it is already logged in prior to work with ZAPTEST?
As for screen size – you can try following lines:
Application(“MAC ISSP Client”).setWindowSize 800,600 #this is for set up vertical and horizontal size of the opening window in pixels
Application(“MAC ISSP Client”).setWindowLocation 0,0 #this is for set up position of the new window where 0,0 is left top cornerJune 27, 2017 at 10:26 pm #31147Andrew ChanParticipantthe setWindowSize and setWindowLocation has worked beautifully! Thanks!
My next challenge is now on the Type method at the password prompt…. I am using the Type method but realized that it is not typing in the letter ‘C’ correctly (encrypted or not)! Is that a known issue?June 27, 2017 at 11:05 pm #31148Kirill BulatnikovParticipantIs it a problem of entire “type” method on your side or some exact textbox? What it insert instead of “C”?
June 27, 2017 at 11:07 pm #31149Andrew ChanParticipant“c” was inserted instead…
seems like all the ‘SHIFT’ characters are not typeable (ie. “@”, “#”, or any of the capital letters).
June 28, 2017 at 12:28 am #31150Kirill BulatnikovParticipantCan you please provide a bit more details? What is the case when you are unable to input uppercase “C”? Is it in M-Run or in viewer? Is it in any text fields or some certain form/field?
June 28, 2017 at 1:35 am #31151Andrew ChanParticipantthe script itself is really straight forward (see attachment of where it calls Type). I have tried the same on other text field and same result. Maybe this only happens on MAC as I have used Type method on Windows Application before with no issues. I am using 1-Script Viewer and playback on a standalone application on MAC. Hope this has enough details. Thanks!
Attachments:June 30, 2017 at 9:50 pm #31152Kirill BulatnikovParticipantHello
We re-test this case and found this is a bug which is affected by VNC protocol interaction with MacOS. Our R&D working on it and this bug will be fixed in next release.Thanks,
ZAPTEST Team -
AuthorPosts
- You must be logged in to reply to this topic.