The developer said that "name" is already unique. Furthermore, there was one
thing that was strange.
There are say 4 combos out of which the problem always occur on 1st. When I
discussed with developer, he said that other 3 combos are retrieving values
from database and the first combo values are hard coded.
I am using index, innerhtml, innertext, DIV property to get it identified,
but the problem always occur with 1st combo.
I have attached the code.
By the way, this is not the first time, it is happening. Whenever I use
index property with descriptive programming, the test runs successfully for
the first time/session. As soon as the test is closed, or the test is run
after few days/weeks, the test starts to fail by displaying error as to
provide unique properties. I am really fed up of this. I need someone to
please guide me.
On Wed, Dec 16, 2009 at 1:15 AM, bhavin v patel <[email protected]> wrote:
> There is no problem in QTP because I use indexing all the time. Well,
> I would ask my developer for unique indentification for each como box
> or any other objects. Explain him/her your concern and once he will
> give all combo box some unique name than you are go to go.
>
> Let us know how it goes. Please send screen shot of application and
> your code.
>
> On Dec 15, 6:58 am, Daim <[email protected]> wrote:
> > I am really confused with the behviour of QTP.
> >
> > When the test runs initially, it identifies the property of object .
> > But as soon as the following happens, the same error message is
> > displayed "to uniquely provide properties":
> >
> > 1. Either test closes and the test is re-run, or
> > 2. The test is run on 2nd iteration using For loop (where the test
> > successfully passes on first iteration)
> >
> > I need to know if there is a problem in QTP itself or I am making
> > mistake. If there was a mistake anyway, the test wouldn't have passed
> > on 1st iteration either.
> >
> > I am using descriptive programming and indexing the controls.
> >
> > Really need assistance, because this is not the first time I am
> > confronting this issue
> >
> > Regards
>
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<mercuryqtp%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
//I don't understand this code much but developer said that this is how a combo
builds
//up and displays values.
this.supportLevelCombo = new Ext.form.ComboBox( {
fieldLabel :'Support Level',
hiddenName :'supportLevel',
name :'supportLevel',
store :cmsStores.createSupportLevelStore(),
displayField :'name',
valueField :'id',
// typeAhead :true,
forceSelection :true,
mode :'remote',
triggerAction :'all',
selectOnFocus :true,
emptyText :'Select Support Level',
editable :false,
width :140,
scope: this,
blankText:"You didn't select Support Level",
allowBlank: false,
itemCls : 'required',
labelSeparator: '*:'
});
this.supportLevelCombo.on("select",
this.hideShowSupportLevel, this);
______________________________
public static function getPriorityList()
{
$priorityList = array();
array_push($priorityList, Ticket::$PRIORITY_HIGH);
array_push($priorityList, Ticket::$PRIORITY_MEDIUM);
array_push($priorityList, Ticket::$
PRIORITY_LOW);
return $priorityList;
}
----------------------------------------
foreach( $priorities as $priority )
{
$rec['id'] = $priority;
$rec['name'] = $priority;
$arr[] = $rec;
}
---------------------------------------------
var priorityStore = new Ext.data.JsonStore( {
url :'stores/PrioritiesStore.php',
remoteSort :false,
root :"data",
fields : [ 'id', 'name' ]
});