Hy,
Is it possible to test mxGraphs via UI by using Quick Test Professional?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming you mean mxGraphs (a link would be nice next time) as javascript library for drawing diagrams in the webbrowser:
Using the example application: It is possible, but poorly. All basic shapes on the left side are selectable and have unique names by their “alt” property or “filename” property. The buttons on top are recognizable by QTP, but results in generic creation of object names, you’ll have to fiddle with the Class attributes if you want to use the,.
Recording example (on dutch culture):
The canvas (drawing area) is a different story. Drag and Drop is not easily automatable because it is not recognized nativly. You have to write your own functions for that.
Shape recognition is only doable on properties in the innerHtml, or the x and y locations. If you want to do extensive creation and changing/editing of objects, then you could create a library with all objects kept in it as sort of virtual objects, remembering the state of each objects. But is won’t be easy.
Tested on WinXP SP3, IE8 and QTP10.00
TL;DR No. Some components can be captured by QTP, but it will be tiresome and slow. It will only be worth the effort if you only want to see if all items on the side-bar are present and can be created.