← Back to team overview

sikuli-driver team mailing list archive

[Bug 1243907] Re: After sometime application stops finding text

 

--- And, Raiman, sikuli is one of the best test tools that i ever tryed!
... nice to hear

--- That is not about time, because combo box open very fast.
Yes, that might normally be, but we are talking here about an exception.
While(1) does not help in this situation, since this is the critical part:

            click("IIarIlSelect.png") # I guess this opens the combo box
            t = "SIKUL"
            m = find(t) # here it crashes

I do not know your app and your environment, but I know many situations,
where a GUI suddenly for a short moment takes longer than normally,
since Windows is doing something in background, that slows down the
running apps.

So IMHO: the only chance to get nearer, is either to use wait(t, 10)
instead of find(t), or to add my proposed debug snippet, to get the
screenshot at the moment of crash.

Since the text is found before many times, there is no obvious reason,
why it should not be found anymore, when it is visible on the screen
within the 3 seconds standard max waiting time.

Sorry, but that is all I can do/say in the moment.

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1243907

Title:
  After sometime application stops finding text

Status in Sikuli:
  New

Bug description:
  Description

  Script works properly, but after sometime runnig it stops find text

  
  ''' Steps to reproduce'''

   - Have a the line in some part of script

              t = "SIKULI"
              m = find(t)
              hover(t)
              click(t)

   - run the script some times
   - After some time of user, sikuli doesn't find the word SIKULI anymore

  
  full script:

  
  def overtimeActivity():

      deDashboard = ("DDEDashboard.png")
      selectItemImage = ("1371671431871.png")
      
      
      try:

              find (deDashboard)
              click (deDashboard)

              while exists("Sairdestapag.png"):
                  find("Sairdestapag.png")
                  click("Sairdestapag.png")
                  wait(5)
          

          
              
              find("MyProjectLis-1.png")
              hover("MyProjectLis-1.png")
              click("IIarIlSelect.png")
              t = "SIKUL"
              m = find(t)
              hover(t)
              click(t)
          
              print("work item")
              find("WorkItemMyWo.png")
              print("achou o work")
          
              click ("WorkItemMyWo.png")
              print("passei")
          
              l = "Testing"
              z = find(l)
              hover(l)
              click(l)

              if exists("MyProjectLis.png"):
              
                  find("0000.png")
                  click("0000.png")
              
                  #input ler sobre esse comando#
                  type("0600")

                  if exists("IOvertime-1.png"):
                  
                       find ("Elc.png")                   
                       click("Elc.png")
                       wait("QOvertime.png")
                       wait(2)
                       find("AddActivity.png")
                       click("AddActivity.png")
                  else:
                      print("TEST FAILED - Hours not Reported - Problem '''click check box'''")
                      raise exception            
              
              else:
               print("TEST FAILED - Hours not Reported")
               log = "erro"
               logaDados(log)
               raise exception      

              if exists("DONE.png"):
             
                 print(" Test Passed")

              else:

                  print("TEST FAILED - Hours not Reported")
                  f=Screen(S)
                  print(S)
                  raise Exception
           
          
           
      except:
          print("TEST FAILED - Hours not Reported")
          raise exception

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1243907/+subscriptions


References