Contributions
How to wait for an object using for loop [python]
Hi all , My application is an desktop application , while execution i need to wait for an window object and sometimes it may take long time to load , so I thought of using for loop with iteration. where waiting time can be incremented untill object loads . I tried but am not able to do it in Python ,can anyone help me out .Other than using delay .2.7KViews0likes7CommentsRe: Test Complete getting crashed due to DB Error
tristaanogre I think assigning the object to Null have helped now its working .Since I havemade the mistake intentionally to check does the test complete will crash or notand executed 70 times and the test complete did not get crashed :)1.8KViews1like0CommentsRe: Test Complete getting crashed due to DB Error
Hi all, I used try catch exception [Python]still its gets crashed every second execution AConnection = ADO.CreateADOConnection() AConnection.ConnectionString = "Provider=MSDASQL;" + "DRIVER=Ingres; " + "Data Source=LMK2 penelope;" + "SERVERTYPE=INGRES;" + "Database=itvtestauto;" AConnection.LoginPrompt = False try: AConnection.Open() except AConnection.Errors as excp: Log.Error("DB exception"+ str(excp)) AConnection.Close() try: AConnection.Open() RecSet = AConnection.Execute_('select short_name,demo_code from demo') RecSet.MoveFirst(); data_container = [] r= [] while not RecSet.EOF: rows = RecSet.Fields.Item["short_name"].Value data_container.append(rows) RecSet.MoveNext() except AConnection.Errors as e: Log.Error("DB exception"+ str(e)) AConnection.Close() else: AConnection.Close() Log.Message(str(data_container)) dbcount = len(data_container) Log.Message("The Database Count of the Demography List is :"+str(dbcount))1.8KViews0likes3CommentsTest Complete getting crashed due to DB Error
Hi All , My test complete used to crash rarely but now a days it started frequently , so whileI was trying to find the root causeI understood that if there is adb error(like the column name is wrong or query is wrong or index etc) in one execution then the test complete getting crashed. In next execution, the same db execution gets executed and if I execute immediately again test complete gets crashed , every 2 nd execution test complete will crash. Sometimes if I restart my machine twice it gets solved . Is there any other way to stop this , if I use try catch exception[python] does it stops getting crashed. The Code[Python] which am using is AConnection = ADO.CreateADOConnection() # Specify the connection string AConnection.ConnectionString = "Provider=MSDASQL;" + "DRIVER=Ingres; " + "Data Source=LMK2 penelope;" + "SERVERTYPE=INGRES;" + "Database=itvtestauto;" # Suppress the login dialog box AConnection.LoginPrompt = False AConnection.Open() # Execute a simple query RecSet = AConnection.Execute_('select short_name,demo_code from demo') RecSet.MoveFirst(); data_container = [] r= [] while not RecSet.EOF: rows = RecSet.Fields.Item["short_name"].Value data_container.append(rows) RecSet.MoveNext() AConnection.Close() Log.Message(str(data_container)) dbcount = len(data_container) Log.Message("The Database Count of the List is :"+str(dbcount))Solved1.9KViews0likes4CommentsRe: how to recognize the tiles in the windows delphi application
Hi tristaanogre Actually i tried to do that way but it was not working ,so i tried in different way by digging into the different sections of the object spy where i found this Aliases.Teachers_debug.wndTfrmMain.dxRibbonBackstageView1.dxRibbonBackstageViewTabSheet1.TLMKTileControl.Items.TileControl.Items.Items[i].TileItem.Text1.Value Which worked and all the names of the tiles present in the screen wasprinted in the log message:D . But the problem was here was the same tile name have two index values like Tile_1 index is0 as well index 1, Tile_2 index is 3 and as well index 4 ,Tile_3 index is 5 as well index 6 and so on . In future if i want to click on the tiles also i think we can do it in this was only , Does any one have any other better solution than this .kindly let me know1.2KViews0likes1Commenthow to recognize the tiles in the windows delphi application
Hi All, My windows applicationconsist set of tiles .Just like the belowimage. Were I can click on the tiles manually it will take to that particular screen , now when am trying recognize using the object spy its not getting identified as a each single tile ,instead of that the total screen identified. Sys.Process("Teachers.debug").VCLObject("frmMain").VCLObject("dxRibbonBackstageView1").VCLObject("dxRibbonBackstageViewTabSheet1").Window("TLMKTileControl", "", 1) how to recognize these tiles , for now I need just how many tiles present on the screen. In my previous post when I was struggling to get the count from the grid , HKosova suggested me to add the TLMKGrid to the Developer Express Controls > VCL > QuantumGrid category. similarly do I need to add the TLMKTileControl ? Anyone can help me on this .1.2KViews0likes3Comments