How to track the status of insatallation of an Application using Sikuli

Asked by Madhusudhan

I am using Sikuli to Automate the process of installing the downloaded Applications on Mac, while installing I will be having an Add-on with the App, Eg. am installing Adobe app, with that McAfee is an Add-on, Pls refer below link for the screenshot. So here How can I track the status of my app and McAfee individualy? I need to track the progress of installation

https://docs.google.com/document/d/1Ls-VYK4z1TfIObYSuzFgMQ9xhH4vJOfyK3eqRRbCbnk/edit

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

Tracking the progress might principally be possible, by checking when the blue bar has reached certain positions on the progress bar using the onChange()/observer(), but this is very complicated and I doubt the value.

So I hope you only need the information, that both bars have reached 100% ;-)
This should be possible, by capturing a 100% bar with little but some background and then waiting for that bar in the respective regions (which should be calculated with respect to the top left corner of the dialog window).

Revision history for this message
Madhusudhan (madhusudhan-jr) said :
#2

how to create popup using sikuli script in java..

Revision history for this message
RaiMan (raimund-hocke) said :
#3

--- how to create popup using sikuli script in java..

import org.sikuli.script.SikuliScript;

ss = new SikuliScript()

then you can use these two:

(from the code SikuliScript)

public void popup(String message, String title){
      JOptionPane.showMessageDialog(null, message,
                                    title, JOptionPane.PLAIN_MESSAGE);
   }

   public void popup(String message){
      popup(message, "Sikuli");
   }

as:

ss.popup(....)

I put the code here, so you can see, that internally JOptionPane is used, to finally make the popup.
So you could use it directly and might have some more options.

BTW: if you have new questions, pls. post a new question an that stuff.

Revision history for this message
Madhusudhan (madhusudhan-jr) said :
#4

Thanks RaiMan, that solved my question.