Row Contents
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Row Contents
Hi all
I was wondering if any of you can help me to solve this problem.
I have attached the screenshot of my application under test for your reference. The object in question is 'Job Name' which has got multiple jobs listed under it.
Issue I am experiencing is that when I record a test I select a specific job(eg:AccruedFeeBatch) however while executing the test TC gets bit tempramental and instead of selecting 'AccruedFeeBatch' it selects 'AccountClosurebatch'. I am not sure why it selects wrong test ? Also whe I use ObjectSpy on the Job Name it doesn not display its contents ie the different job types under it. Is there a reason to that ? Is there a way I Can make TC recognize all the jobs under Job Name ?
Your help is much appreciated. Thanks
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you post a screenshot of the keyword test that is performing this action or the script code that is doing it? The problem is not necessarily with the component but potentially with how the recording ended up performing the action. You might need to alter some parts of your recording to get it to select the right item.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please find the screenshot attached.
The way I had designed my test is by entering the keyword 'pu' to search for the job and then select it as the scroll bar seems to be very tempramental too.
While recording I scrolled upto the item and then selct the check box but while executing the same test, TC does scroll down however selects a wrong item hence I designed the test with keyword search but it still failt o select the right item. Cheers
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK, I'm trying to understand what I'm seeing here. You have a listing of various jobs. You're then clicking on the filter button to filter that list based upon what check box you click. Is that correct?
So, your list of check boxes, that's your TCXInnerListBox I'm assuming. What I'm guessing (and without the object properties to go off), this is a TcxCheckListBox control. You can find the various available methods at https://support.smartbear.com/testcomplete/docs/reference/test-objects/controls/desktop/dev-express/...
What I would suggest is, instead of using the ClickItemXY, I'd use simply CheckItem (https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/list-box/checkitem-ac...). Since you want a particular item, your parameter would be set, not to an integer, but to a string containing the caption (in your case AccruedFeeBatch) with the second parameter set to "true". See if this works for you.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK, I'm trying to understand what I'm seeing here. You have a listing of various jobs. You're then clicking on the filter button to filter that list based upon what check box you click. Is that correct? - Yes, that's correct
I'll try check item option and get back to you with my findings. Appreciate your time and patience. Cheers
Regards
G
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried your suggestion of using CheckItem and setting the parameter to string with second parameter set to True but the test failed.
I have attached the screenshot of the test log which says 'No debug information was found for VCL controls' along with my keyword test screenshot too. Thanks
Regards
G
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK, from what I'm seeing, the objects are not necessarily being recognized as open objects.
So... this takes us back to some basics:
1) What language is your application developed in?
2) Can we get a screenshot of the actual properties and methods of the control in question?
3) Is this something that TestComplete recognized as having the CheckItem method or did you add this component to the Object Mapping of your project properties?
Basically... it seems like the component in question has some recognition issues on playback. Make sure that, under File | Install Extensions that the DevExpress extension is activated under Common.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1) What language is your application developed in? - Delphi
2) Can we get a screenshot of the actual properties and methods of the control in question? - Screenshot attached
3) Is this something that TestComplete recognized as having the CheckItem method or did you add this component to the Object Mapping of your project properties? - I added this component. It was initially ClickItem but then I changed it to CheckItem as suggested by you in earlier post.
File | Install Extensions that the DevExpress extension is already activated. Thanks
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Gotcha... so... it's a custom control or at least a control that is not natively supported by TestComplete. The mapping that you added isn't a 100% match, hence the error you got. Did you add it under just CheckListBox or under CustomInnerCheckListBox? Try moving it to the custom one if it's not there already.
Also, you only gave us a partial list of properties... I'm sure tehre are more under RTTI. 🙂
Something else you could do... there's a property that says "NativeDelphiObject". Click on the ellipses there and see what properties and methods are available there. You might need to go that route.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
