I want to use QTP to test web application. in that application there is one menu like file and under that there are diff menus like create, new,open etc. so while recording if i click on new then it get recorded. but in new when i click on new then its not get recorded. why this is happening?

Showing Answers 1 - 15 of 15 Answers

Bhupathiraju

  • May 15th, 2006
 

Use descriptive programming,using FireEvent("OnMouseOver" or "OnClick") method u can record the mouse events that u've mentioned.

  Was this answer useful?  Yes

Bhupathiraju

  • May 15th, 2006
 

Using FireEvent method ,u can record that mouse event.

  Was this answer useful?  Yes

rachana

  • Oct 10th, 2006
 

Make sure you have enabled all required setting to record web event . you need to do web event config setting to capture mouse events..

  Was this answer useful?  Yes

Our web application has several features which acan be accessed by using one menu bar and sub menu item benaeath to that. When I am trying to add or record operatoin on this menu QTP not identifying this menu bar and sub menu items under that.

 
E.g I have below parent menu items.
 
1. Manage.
2. Learn
3. Assess.
 
Under manage I have Users, Domains and etc. How to make QTP to recognize both parent and chid menu items. Pleae advise. This is blocking issue for me.

  Was this answer useful?  Yes

md_vinodh

  • May 30th, 2008
 

Hi,

 Please write code like this..  Note: No need for OR
 Browser("" ).Page("").SelectMenu "File->Save"

Hope it may help you

  Was this answer useful?  Yes

swaroop84

  • Apr 3rd, 2009
 

I also encountered the same situation as you are in, i.e. selecting a menuitem from a menu. As far as we have tried, this could not be done as the QTP is not identifying the MDI objects (the menu and menuiteCms). One solution i can suggest is...

Check if the menuitem have keyboard shortcuts like New can be opened by Alt+N, Open can be opened by Alt+O etc when the menu is displayed. if there are keyboard shortcuts, then Click on the menu webelement and list will be displayed. Then using the sendkeys click on the required shortcut menu item so that the corresponding screen will open up.

Let me know if this is useful or not and if you need any guidance in implementing this.

You can contact me on my email.

  Was this answer useful?  Yes

naveen

  • Aug 3rd, 2011
 

No, Whenever we click on record mode it recorded what are the actions you perform but it will not record the actions on test pane.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions