Ask a Question

CheckedListBoxControl:Issue

msap
Frequent Contributor

CheckedListBoxControl:Issue

see an error : running the script selects other currency instead of cad.

please let me know whats wrong with the below code

 

run the below code:

checkedPopupContainerForm = framework.CheckedPopupContainerForm;

popupCheckedListBoxControl = checkedPopupContainerForm.PopupContainerControl.PopupCheckedListBoxControl;

popupCheckedListBoxControl.Keys("cad");

popupCheckedListBoxControl.Click();

 

 

10 REPLIES 10
tristaanogre
Esteemed Contributor

Without knowing more about the specifics of the control in question, I don't see anything explicitly wrong with the code.

 

Just a few questions:

 

1) What is the reason for using "Keys" to select the item from the control list? Is there a method like "ClickItem" or something similar?

2) If it's a checklist box control, then there may be other methods.  According to https://support.smartbear.com/testcomplete/docs/reference/test-objects/controls/desktop/dev-express/..., there may be a method of "CheckItem" which will set the state of a particular item in the checklist box.  Have you investigated other methods?

3) Let's get down to it.  What type of control is it? Can you post screenshot of properties and method so we can assist further?


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
msap
Frequent Contributor

its a checklistbox control. but I don't see the ClickItem method.

tristaanogre
Esteemed Contributor

If it is in fact a Dev Express CheckedListBox control, please reference the following documentation and verify all the requirements are met as well as double check the version of both your version of TC as well as the version of Dev Express.  The linked document is for TC 12.50 so keep this in mind as well.

https://support.smartbear.com/testcomplete/docs/reference/test-objects/controls/desktop/dev-express/...


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
msap
Frequent Contributor

I checked the version of TC and Dev . Its on latest versions. any ideas, not able to figure it out, some of the methods like  clickitems , check items are missing on my Testcomplete versions.

tristaanogre
Esteemed Contributor

Having Dev Express on the latest version is not necessarily the right answer.  Reference the link I sent you.  There are certain Dev Express version numbers supported by TC... if you are using a Dev Express version LATER than what's documented there, you may not get things to work.  Please verify that you are using a version of Dev Express that is compatible with TC 12.5


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
msap
Frequent Contributor

how can I check the dev express versions and update the version compabtible to TC 12.50.

In common I only see the devexpress control is checked.

tristaanogre
Esteemed Contributor

That is something you will have to check with the developers of the application that you are testing.  They should be able to tell you what version of the Dev Express WinForms controls they are using in their application.


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
msap
Frequent Contributor

one of my colleague was able to see click items in his laptop with 12.42 version, but not me

tristaanogre
Esteemed Contributor

There's nothing explicitly different between TC 12.50 and TC 12.42 with regards to interaction with Dev Express objects.  Again, go back to that link that I noted and make sure that all requirements are met, including making sure plugins and such are turned on, that objects are checked and available in your project., etc.  If it's working for your colleague, then it's something in your configuration of TC on your machine that needs research.


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
cancel
Showing results for 
Search instead for 
Did you mean: