Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP is not generating scripts automatically while recording for wpfMenu items
#1
Not Solved
Scenario:
My application developed in: WPF
-- QTP is not generating script for WpfMenu items. For example File->Menu. While recording when you click on File and Menu items QTP is not generating script automatically.
-- When you do object spy for menu item i can able to see object properties.
My question: If QTP is not generating script, how to add object properties to repository?

Refer attached screen shot for details


Attached Files Image(s)
   
Reply
#2
Not Solved
Hi Chandra .

Try the other way , dont record your application instead add the objects to the repository and drag and drop them onto the Keyword view and see what happens , since object spy is able to acquire the object properties it should be able to generate the relevant commands... Try reinstallating the .net add in ...

Regards,
Balaji
Reply
#3
Not Solved
Balaji -
Not always does QTP record and generate scripts. If there are third party add-ins then although it recognizes it is difficult for it to write the scripts.

IamShekar -
Add the objects to the repository and build your script from there, see if that helps. IF it works,well and good...else find out what is the underlying architecture of the application.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#4
Not Solved
Not always does QTP record and generate scripts. If there are third party add-ins then although it recognizes it is difficult for it to write the scripts.

hi Basanth ,

I am new to QTP but based on your answer i have a doubt , if QTP can recognize an object any third party object for that matter why is it hard for it to generate the script . The internal scripting engine just takes the user actions on the objects and converts into a script so i feel the critical part is identifying the object rather than generating script so in the above stated example the object is acquired and the job of scripting engine is to replace user actions with commands , i feel scripting engine is framework or object independent . Can you please explain how exactly it works and why it cannot generate the script .

Regards,
Balaji
Reply
#5
Not Solved
Hi Balaji,
Thanks for your reply. How to add objects to the repository? can you plz tell steps?
Chandra
Reply
#6
Not Solved
Balaji -
Ideally it should, and you will see in most of the cases that it does..However, when it comes to third party applications, identification happens because of the associated add-ins(not the ones which come defaulted with qtp) but the supportive ones which QTP cannot read and write as script.

Please excuse my knowledge about the scripting engine of QTP, I am unsure how it was designed and how it co-relates with framework or object identification. The reason it is hard for it to write is because of its inability to co-relate a custom object properties and then generate a script based on it.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Test Set Run automatically Santhosh311 0 2,454 04-14-2016, 06:06 PM
Last Post: Santhosh311
  Unable to fetch items from WpfList in UFT saurabhkumar_gupta 0 2,489 03-08-2015, 09:17 PM
Last Post: saurabhkumar_gupta
  Can't locate items on Win7 Desktop RandomGrin 0 2,098 01-30-2015, 10:55 PM
Last Post: RandomGrin
Exclamation SystemUtil.run script is not generating while recording in qtp 9.5..pls help me senthil.kumar 0 2,587 01-24-2013, 02:09 PM
Last Post: senthil.kumar
  how to get list of itmes(Submenus) of WpfMenu? krr 3 3,959 11-23-2011, 12:35 PM
Last Post: krr

Forum Jump:


Users browsing this thread: 1 Guest(s)