Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Will the following work?<br> You are looking for the progress to reach 100% then loop again?</p> <pre><code> f = open("C:\\test.htm",'W') f.write('&lt;font color="#347C2C"&gt;lOOPtEST&lt;/font&gt;&lt;br /&gt;') f.write('loop iteration' + (str (count)) + '&lt;br /&gt;') count = count + 1 f.close() COUNT =10 POPUP("LOOPTEST") //image compare from progress bar import sikuli.Sikuli * WebPath =('Z:\\ZZZautomation\\Web\\') BuildPath = ("Z:\BUILDS\Daily_BUILDS\QA_MainBranch_Install\*.install") BuildNumber = glob.glob("Z:\BUILDS\Daily_BUILDS\QA_MainBranch_Install\*.install") for filename in BuildNumber: SmokeTestInfo = "SmokeTest_Build " + filename[45:50] + " Iteration 44"+".htm" global Number Number = filename[45:50] global SmokeTest SmokeTest = SmokeTestInfo global count count = 0 defMidProgress(): while not exists ("//path to image of progress bar @ 50%//",FOREVER) //or wait("//path to image of progress bar @ 50%//", FOREVER) //using forevEr means sikuli will checK FOR 50% PROGRESS FOREVER //the bottom execures once the condition above is met open(WebPath + SmokeTest,'w') f.write('&lt;font color="#0000FF"&gt;Progress is at 50%&lt;/font&gt;&lt;br /&gt;') f.close() // writes entry to html log fie defFinalProgress(): while not exists ("//path to image of progress bar @ 100%//",FOREVER) //or wait("//path to image of progress bar @ 100%//", FOREVER) //using forever means sikuli will check FOR 100% PROGRESS FOREVER //the bottom execures once the condition above is met open(WebPath + SmokeTest,'a') f.write('&lt;font color="#0000FF"&gt;Progress is at 100%&lt;/font&gt;&lt;br /&gt;') f.close() // writes entry to html log fie def Loop count =0 def midProgress(): def FinalProgress(): </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload