Contributions
Re: How could disable dialog box show when finished running testing case with TestExecute
yes , you are right , butIt maybe a little special for our project, toSimplify handling some caching problem for Testing. I need to new add test app when run the project. this cause the project files will be changed whenintegrated with jenkins using TestExecute. At least that's my problem right now, Maybe i have some wrong undestanding for some configuration with Jenkins i also don't want to handle this problem in other ways, i will review the project and user guide , to find if we have another better way to fix it. Thanks,Peng609Views0likes0CommentsRe: How could disable dialog box show when finished running testing case with TestExecute
Hi rraghvani, I just write a py script asPolling monitoring , i think it could kill this dialog when i met it, It seems work for me so farπ import win32gui,win32api,win32con import time wdname = ['Confirm'] hWndChildList = [] def CheckHwnd(): hwnd = 0 for k in range(len(wdname)): _tp = win32gui.FindWindow(None, wdname[k]) hwnd = _tp + hwnd return hwnd def Get_Child_Windows(parent): if not parent: return hWndChildList = [] win32gui.EnumChildWindows(parent, lambda hWnd, param: param.append(hWnd), hWndChildList) return hWndChildList def Get_Parent_Hwnd(wdname): hwnd = 0 for k in range(len(wdname)): _tp = win32gui.FindWindow(None, wdname[k]) hwnd = _tp + hwnd return hwnd if __name__ == '__main__': wflag = True while wflag: time.sleep(3) if CheckHwnd() == 0: wflag = True print("watch dog working...") continue else: wflag = False break hWndChildList = Get_Child_Windows(Get_Parent_Hwnd(wdname)) BtnNoHW = hWndChildList[-4] BtnNotitle = win32gui.GetWindowText(BtnNoHW) Btnclassname = win32gui.GetClassName(BtnNoHW) win32api.SendMessage(BtnNoHW, win32con.BM_CLICK, 0, 0) time.sleep(3)629Views0likes0CommentsHow could disable dialog box show when finished running testing case with TestExecute
Hi, I just run some testing casefrom Jenkins using TestExecute. but I have a problem, If the project have be finished, there will be aconfirm dialog box appears ,Probably because of I added Some Test app dynamically,changed some of the files in Original Project. The trouble is if i don't close thedialog boxmanually, I see the jenkins cannot be stopped. I am not sure if i could handle this problemIn the following script?? Does anyone have a good idea ... IF ERRORLEVEL 1001 GOTO NotEnoughDiskSpace IF ERRORLEVEL 1000 GOTO AnotherInstance IF ERRORLEVEL 127 GOTO DamagedInstall IF ERRORLEVEL 4 GOTO Timeout IF ERRORLEVEL 3 GOTO CannotRun IF ERRORLEVEL 2 GOTO Errors IF ERRORLEVEL 1 GOTO Warnings IF ERRORLEVEL 0 GOTO Success IF ERRORLEVEL -1 GOTO LicenseFailed ...Solved721Views0likes5Comments- 644Views1like0Comments
Re: Dynamically add TestedApps in Script Extensions
Hirraghvani,Do you know ifthere isanyway to call themethodin script in cross projectin one TestSuite. TestSuite -Project A --scipt ------- Function A(){} -Project B --scipt ------- Function B(){} -Project C --scipt ------- Call Function A() in Project C ??558Views0likes0CommentsRe: Dynamically add TestedApps in Script Extensions
I have multiple projects need to runin sequence, and also need to start different clinet testapp for different project. Myfirstthought I wanna add theTestedAppsin thescript extension. then some project could start some testapp fromscript extension when it is executed. if this could beimplemented, i think i may not need to add the Testapp for some projects, and those project could be call the common method directly fromscript extension. It seemsthat I'll have to go the other way. Thanks rraghvani for your quick reply!!π572Views0likes0CommentsDynamically add TestedApps in Script Extensions
Hi, I create aScript Extensions andintroduced themethodwhich i could addTestedAppsDynamically. I could run successfully in debug mode but failed inScript Extensions. I am not sure if we couldadd TestedApps in Script Extensions dynamically ,Did I miss something here? Code like this: function AddCharApplication(){ var AppPath = "a.exe" var index = ""; TestedApps.Clear(); if ( aqFile.Exists( AppPath ) ) { var index = TestedApps.Find( AppPath ); if ( -1 == index ) index = TestedApps.Add( AppPath ); } else { Runner.Stop( false ); Log.Error( "" ); } var apprun = TestedApps.Items( index ).Run(); } Error Message: Thanks,PengSolved605Views0likes6Comments