Jump to content

netnet227

Active Members
  • Posts

    20
  • Joined

  • Last visited

netnet227's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Agree with daluu about the "validation" part. Autoit group should focus on this part. Compare to the fancy "GUI builder" lib, which is not a must for the test, "validation" lib is more important. Maybe since it's not a commercial product, I feel somehow autoit was lost its way. There are bunch of UTF created by freelancer but still lack of some core component itself. Just personal opinion.
  2. I have a autoit testing program to populate 30,000 records into db. But it's not so efficient. I found maybe 2 reasons: 1. I use some sleep in between. It's a problem to performance. but I don't know if it's possible to get ride of them. I know most of case we should use WinWaitActive to make program more robust. but if i am waiting a retrieval from db or waiting a calculation etc, I have to use sleep. 2. because there some option parameters need to be feed in but there are too many combination though it's not so ofter. so I can't control the logic. I use something like: InputParam1IfNeeded() InputParam2IfNeeded() InputParam3IfNeeded() ...... And in most case, they are just doing nothing, which looks very stupid. any suggestion?
  3. Another problem is that the msg box itself blocks the execution of my adlib function. so i still can't get rid of it anyway.
  4. i did not see any code set the $run to 0. i think it should be working if you declare $run as a global variable
  5. i have a GUI application in which includes validation feature thru another server. but after 30 sec, if no response, the frontend will pop up "timeout" message box. i want to capture it and click it without influence the execution of the script. for the adlib, i already use it for other purpose and its time gap is as long as 5 min coz i won't have it hog to much cpu. so the problem is that is there any way to dismiss it without using the adlib functino?
  6. I have an external program, i tried to use GUICtrlRead to get its checkbox state: Debug("aaaaaaaaaaa:" & GuiCtrlGetState("TCheckBox2")) Debug("bbbbbbbbbbb:" & $GUI_UNCHECKED) Debug("ccccccccccc:" & $GUI_CHECKED) If BitAND(GUICtrlRead("TCheckBox2"),$GUI_UNCHECKED)=$GUI_UNCHECKED Then Debug("checking the checkbox"); GUICtrlSetState("TCheckBox2", $GUI_CHECKED) EndIf but i found whatever the state it is, it always get 0 which is not right. i checked the forumn, most of the post is about the "autoit created" control. i believe autoit can read EXTERNAL control as well, but how?
  7. M23,Thank for your help. It's a good idea to go around the nested function issue. I will try it later.
  8. M23, the target is a huge and legacy system. everything will happen when running the test target. for example "memory access violation" or some business logic I failed to(and impossible to) predict. 10 is just a number i gave an example, actually, it's few hundreds at least. also, i realized the problem with the nested function. There's ugly way to do it by writing the current test case number to a file. when exception happens, Exit the whole autoit3.exe and restart from the next number. but i still wondering if there's good way to handle this.
  9. what i want to achive is: I have test case 1 to 10. i will do it one by one, if one fails the UI will freeze. i need detect it and terminate it and start to do the next one. what do you mean by "start again"? If the current ddt_main could return, that will solve the problem. but how can i return/exit it?
  10. but in the ddt_main(), i always open it again: AdlibEnable("CaptureException",1200) ; 20 sec so it will always work like: enable->disable->enable>disable....... why i want to disable and enable it is because i want to reset the timer to 0. Is there something wrong?
  11. I am using ablibenable to capture the exception. I found it only works at first time. CaptureException function will never been called after called once. I paste my script as following. dose any one have some idea? ; CS Global $gTestCaseId = 1 DDT_Main() Func DDT_Main() local $iEndTestCaseId=3 for $iTestCaseId=$gTestCaseId to $iEndTestCaseId Debug("--------------------------------------------------------") Debug("Doing the " & $iTestCaseId) AdlibEnable("CaptureException",1200) ; 20 sec Debug("AdlibEnable") Sleep(300000) ; each loop supposed to go to CaptureException. but only first time works, why?? AdlibDisable() Debug("AdlibDisable"); Next EndFunc Func CaptureException() Debug("entering the CaptureException.......") AdlibDisable() Debug("AdlibDisable from the CaptureException") sleep(2000) ;startup again $gTestCaseId = $gTestCaseId + 1 DDT_Main() EndFunc Func Debug($message) Local $previous = ControlGetText( "Untitled - Notepad","", "Edit1") ControlSetText( "Untitled - Notepad","", "Edit1", $previous & $message & @CRLF) EndFunc ;CE
  12. Because I have some testsuite(1...n). i want to specify the testsuite name from the command line likec:>RunTestSuite.au3 testsuite1 or c:>RunTestSuite.au3 testsuite1 testsuite3 all my testsuite have one main entry: SuiteMain(). they use the unify function name. so i need dynamic specify the function name
  13. If I have the same Function Name in different au3 file. i want to call one in one specific file. how can i do it? For example, i have: File1.au3 myFunc() File2.au3 myFunc() Now i want to call the second myFunc(). but i won't include the File2.au3 ONLY coz sometimes i will call the first myFunc().
  14. seems there's not way to generate the Reports from the autoit. there's other way, but still you need write you own code to feed other report generation tools.I also want to know which way is the best. or the simplest way is to write some log file and you parse it by yourself
  15. [quote Let me pull together some of those library files for you and post them later.
×
×
  • Create New...