I have problem in GUI object in this application. As alias maping does not work. I tried several times . Seveal icons available in axcel bar as single gui object by testpartner. When it is required to automate tp does not click those icons. Kindly help in alias maping, step for create alias maping, please.
GUIObject.Click 21, 67
Consider a edit box is identified with following attach name.
To identify this as normal editbox. Do the following in Alias map window
1.Click on create, which will open the object selection window.
2.Select the GUIObject for which you want to create alias map and then click OK.
3.Now class name for that GUIobject will appear in Add class alias window.
4.Select alias name as editbox from drop down.
After this alias map entry, the GUIObject will be now be identified as
The example you provided sandeep was for a case where TP failed to recognize an edit box as an edit box and is using GUI object instead, so you can map it to EditBox. Maybe I'm mistaken, but it looks like the problem he is having is that a custom control or toolbar, something that contains many GUI objects.
Several years ago when I was using silktest it was possible to take an unrecognized GUI object and slice it up into virtual pieces, relative from the start of the main object. You were limited to being able to click, but you could at least click by name such as FileToolbar.File.Click, FileToolbar.Edit.Click. I don't believe any of this functionality exists in test partner, can one of the veterans clarify?
If you have no other usable approach you could create a custom class to wrap this contorol to do the same 'virtual slices' of the object by name, in a easily programmable approach but of course that is a bit of overhead. I'm not sure alias mapping is what your looking for though.
Seveal icons available in axcel bar as single gui object by testpartner...
Krish, this is with reference to your above statement. Sometimes TP identifies the entire frame/tab or an axcel bar(in ur case) as a single GUIObject without identifying the other objects present on that frame/tab. But by expanding the object tree and using the locate option, you can identify the objects within the frame/tab.
Did u try to expand the object tree of your axcel bar and locate the icons in them ? this may work.
If ur using TP5.2.1 make sure you have installed TP SP3 which solves these kind of problems...