Contributions
Re: ObjectState is invisible but its shown in application (Enabled/Exists = True)
Colin_McCrae You know, actually def care about bugs that can be simulated manually - thats the problem. If I cant click a object with testcomplete but i can do it manually they don't care. I have same feelings that "We replace actual dataobject insinde Datawindow to another almost the same" may be a second instance that is not properly recognized by testcomplete. And about control index - looks like they are just sorted diffrent (shouldnt matter for TC if i click object by fullname): In these 80% radiobuttion A - has index 1 and B has index 2. In these 20% radiobutton A - has index 2 and B has index 1. Question is: why just some fields are invisible for TestComplete if they replace a whole dataobject? Problem is with radiobuttions/combobox, normal text fields are fine. If noone here will have some knowledge about this case in PB and TC then ill ask dev to make a version just for me without that dataobject repleace.2.5KViews0likes0CommentsRe: ObjectState is invisible but its shown in application (Enabled/Exists = True)
baxatob I gave same question before to dev - "if u have that property diffrent please check if any other properties are diffrent" He said that the only diffrence is: a) width - dosent matter for TC for sure. b) sorting objects - (prolly matter for control index in TC) - I think it dosent matter if i click objects in my tests by fullname not by index.2.5KViews0likes3CommentsRe: ObjectState is invisible but its shown in application (Enabled/Exists = True)
Colin_McCrae 2. Dev answer: "What Pb is doing is unfortunately not known to me. We replace actual dataobject insinde Datawindow to another almost the same. We dont create publicly a new datawindow"2.5KViews0likes7CommentsRe: ObjectState is invisible but its shown in application (Enabled/Exists = True)
baxatob Class property? In TC i dont have that property (as u can see on screen) Developer said that all properties are same for both fields (visible / invisible). Well i think in PowerBuilder they do not have class property too. shankar_r Yes i am able to do whatever i want with these fields manually in application. If i put object spy coursor on object it dosent see it but i can see it in object browser - diffrence is visible property. Colin_McCrae 1. Yea but i need to click for example dropdown field to choose smth with key("down") and i cant do that atm. 2. I asked developer if its posibble he have that bug. What developer told me before was that in these 20% types of "countries" he replace some fields on "open event" in powerbuilder but in logic way it shouldn't affect in this case - cause he replace a field that i dont want to click ( i skip that one anyway).2.5KViews0likes8CommentsObjectState is invisible but its shown in application (Enabled/Exists = True)
Hello, Application: Power Builder 12 Tests: Scripts - using Python Identify objects: directly (true name) Short introduction: Lets say that i have app that letting u add a person to a country so it have 2 main windows: Country_Object (country_name) Person_Object (name,subname,gender) In 80% countries if i click "add" button that opens Person_Object i can see 3 fields: all of them are visible and i can make tests easly. In 20% countries if i click "add" button that opens Person_Object i can see also 3 fields: name,subname is visible for TC and i can write with my tests to these fields whatever i want but radiobuttion "gener" with option male/female is not clicable with objectspy (i mean i cant identify it). If I open object browser and compare gender field properties between these 80% and 20% i can see difference: 80% has: ControlIndex: 1 Visible: True VisibleOnScreen: True ObjectState: True 20% has: ControlIndex: 2 Visible: False VisibleOnScreen: False ObjectState: False In all 100% i can see all fields in my application but i cant identify them with object spy so my tests also cant identify them. Ofc firstly i asked developer whats the diffrence between two the same objects (user perspective). He said its all the same, just order may be diffrent (prolly affect for controlindex in TC) but it shouldnt matter right? He have some "objects substitution" on opening user window event but it do nothing with that specifing field (gender: male/female) He blames TC for that problem. Countries/Users are just an example: i have that problem with a few fields ( usually radiobutton/dropdown). Any1 of u know why TestComplete "visible" property in some cases are false if i can see these fields.2.9KViews0likes12Comments- 1.3KViews0likes0Comments
Re: Fresh rows recognize by TestComplete
If i reopen window all rows are already shown in a object browser. Prolly Refresh method work as "refresh all" manually in object broweser - it dosent help. RefereshMappingInfo - is for mapped object. I am using original objects names in my script. Problem here is that TestComplete creating "Object browser" that is used for tests in 2 cases: - Frist open window - Reopen window If i just open test complete and go to a datawindow. Then if i'll add another row and then I'll open object spy (or run test - dosent matter its the same) object spy see all rows cus he generated his object browser for first time. If i add now another row i wont see it in object spy, need to close a window that have datawindow. Is there a method that doing the same what do testcomplete for initial application run? For testing add/remove functions i can reopen a window - OK - I can live with that but lets say that i have a filter to test: If i have 5 rows before i use filter and 10 after i use filter I wont be able to select 10th row for example cus on "open" window i have some default filter that returns less than 10 rows. I also walked around that TestComplete bug :) by selecting 10th row with cordinates and then use filter - it helps cus after that operation TestComplete refreshed his object browser inside my datawindow. All my "ways" still are just a patches for these testcomplete "black holes".1.3KViews0likes0CommentsFresh rows recognize by TestComplete
Hi! I have some problem that i solved already but how i did it is far away from the good practices that we should use. In my application that is created under PowerBuilder12 i have alot of datagrids that shows some data inside. Application functionality allows me to add some new rows to these datagrids or filter them etc. If i open some window with a datagrid (lets say it shows 1 row) TestComplete recognize that 1 row very well (object spy) If i add another row by some functionality and try to use object spy again TestComplete recognize still first row but dont see the second one. What i did in my tests before was close and open a window with that datagrid (takes timeif i have to do in every case). I established that: refresh() - no help findchildby- helps but using that everytime also takes time Another reason i need it is: i need to test my app also if it shows a new row directly after user add it. I recorded a short video that shows my problem (video is avaible to open in firefox).1.4KViews0likes3CommentsRe: How to configure test run conditions
Ok i modified my tests and looks like it works. If for some reason one of my steps inside test fails, then my test won't slow down like it was before. Wating for window bla bla... Waintig for window bla bla.. In my case i devided my test. For example modify record test before: TestNumerOne(): OpenRecord(param) ChangeDataInRecord(data) OpenRecord(param) CheckData(data) before every method induction i am checking that flag. TestNumerOne(): if(Project.Variables.IfError != True): OpenRecord(param) if(Project.Variables.IfError != True): ChangeDataInRecord(data) if(Project.Variables.IfError != True): OpenRecord(param) if(Project.Variables.IfError != True): CheckData(data) if(Project.Variables.IfError = True): RestartApp()1KViews0likes1CommentRe: How to configure test run conditions
Your right, i just forgot to remove that sentence. I mean that code (your first version): def yourTest(): while not listen(): step1() step2() step3() other_steps() Code above will do the whole "step1/step2/step3" even if inside that already was 10000 errors.2KViews0likes2Comments