08-27-2011, 12:28 PM
hi.......
In my application, the values changes dynamically in fields.....so i tried to use the concept of conditional statements........
Say for eg: Have a field named as customer,...By default, the drop down list contains "select...and Add new"..when ever user adds the customer in add new, the value changes dynamically..How can i overcome this using descriptive programming of QTP.
The following conditions be applied for this scenario......
1.Once the customer name is added in add new, second time i want to select the add new and add another customer(in different name) at run time.. This has to repeated for six customers..
2.If add new field shows "This customer name already exists" then i have to add some other customer in variant name...
3. If six customers gets added in add new, i want to select customers randomly from the drop down without trying for add new.....
Help me out....
In my application, the values changes dynamically in fields.....so i tried to use the concept of conditional statements........
Say for eg: Have a field named as customer,...By default, the drop down list contains "select...and Add new"..when ever user adds the customer in add new, the value changes dynamically..How can i overcome this using descriptive programming of QTP.
The following conditions be applied for this scenario......
1.Once the customer name is added in add new, second time i want to select the add new and add another customer(in different name) at run time.. This has to repeated for six customers..
2.If add new field shows "This customer name already exists" then i have to add some other customer in variant name...
3. If six customers gets added in add new, i want to select customers randomly from the drop down without trying for add new.....
Help me out....