This is a migrated thread and some comments may be shown as answers.

RADCOMBOBOX generic selectItem action

2 Answers 45 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Fatso
Top achievements
Rank 1
Fatso asked on 05 Dec 2011, 06:49 PM
Hi.

I created a test that covers the standard flow of our application. This test is divided into multiple 'Test as Step'. In one of the first 'Test as step', I am selecting a RadComboBox item and then, I create an Extraction step for the text now appearing in the RadComboBox. I then added binding to this step to store the text in a variable to be used later on. This step is now looking like this: radcomboboxitem Extract text into DataBindVariable $(JOHNSMITHRadcomboboxitem) - DataDriven: [$(AssignTo)].

In the next 'Test as Step', I want to select an item in a RadComboBox based on $(AssignTo). Here are the 2 steps that I created in order to do so: radcombobox: drop down 'Open' action. and  radcombobox: selecting item 'JOHN SMITH - ESTIMATOR' - DataDriven: [$(AssignTo)].

This is not working: I am getting the following error: Unable to find item with text '' to select!

Any idea of what is causing this issue? Is what I am trying to do doable? Please note that originally, I created the test with hardcoded steps for every radComboBox 'selecting item' step. This was working fine when running the test on my development machine but when I moved the test to another machine which is using a different database, the items selected were different from expected, although the item to be selected existed in the radComboBoxes of this other machine. It looks like if test studio was 'remembering' something else than the 'text' to find the item...

2 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 07 Dec 2011, 06:45 PM
Hello Marc-Andre,

I'm sorry you are running into this problem.

The problem is coming from this step:
radcomboboxitem Extract text into DataBindVariable $(JOHNSMITHRadcomboboxitem) - DataDriven: [$(AssignTo)]

When you create an Extraction step the value will be stored in a DataBindVariable $(JOHNSMITHRadcomboboxitem) and there is no need to bind this step to an external datasource. Please read this documentation.

In other words, to work correctly you need to remove this part :DataDriven: [$(AssignTo)]
and modify your test to look like that:
    1. radcomboboxitem Extract text into DataBindVariable $(JOHNSMITHRadcomboboxitem)
    2. radcombobox: drop down 'Open' action.
    3. radcombobox: selecting item 'JOHN SMITH - ESTIMATOR' -DataDriven: [$(JOHNSMITHRadcomboboxitem)].

Please try it and let me know if it works!

Regards,
Plamen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Fatso
Top achievements
Rank 1
answered on 08 Dec 2011, 09:16 PM
Yes, this is working. I think I had it like this at one point but I screwed it up some how... Thank you very much.


Tags
General Discussions
Asked by
Fatso
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Fatso
Top achievements
Rank 1
Share this question
or