Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Mapping CustomWin

This is a discussion on Mapping CustomWin within the SilkTest forums, part of the Software Testing category; Hi I have this application which i am trying to automate. Silktest identifies all objects as CustomWin. I have been able to map most of them to the appropriate standard ...

Go Back   Geeks Talk > Software Testing > SilkTest
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 05-08-2008
Junior Member
 
Join Date: May 2008
Location: India
Posts: 26
Thanks: 1
Thanked 1 Time in 1 Post
sajithkutty is on a distinguished road
Mapping CustomWin

Hi
I have this application which i am trying to automate. Silktest identifies all objects as CustomWin. I have been able to map most of them to the appropriate standard classes, expect this one object (PropertyGrid/PropertyGridView), which looks like one or combination of table, listview, grid or tree. I have tried mapping these 2 CustomWin to table, listview, grid or tree but each time i hit a getcontents, the contents turn out to be blank. What i need to do is to fetch the key, value pairs.
I have attached the snapshot of the object which i am trying to map and the snapshot of the window declaration.
Can someone suggest what class mappings i can try? or anything else that can get me the key /value pairs?

Thanks in advance.
Sajith
Attached Images
File Type: jpg Object Snapshot.JPG (19.2 KB, 16 views)
File Type: jpg Declaration snapshot.JPG (75.2 KB, 18 views)
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-09-2008
Junior Member
 
Join Date: May 2008
Location: India
Posts: 26
Thanks: 1
Thanked 1 Time in 1 Post
sajithkutty is on a distinguished road
Re: Mapping CustomWin

Hi,
Can someone help please?
Cheers
Sajith
Reply With Quote
The Following User Says Thank You to sajithkutty For This Useful Post:
  #3 (permalink)  
Old 05-09-2008
Junior Member
 
Join Date: May 2008
Posts: 27
Thanks: 1
Thanked 2 Times in 2 Posts
sabariish is on a distinguished road
Re: Mapping CustomWin

Hi Sajith


There are a few custom controls that don't respond to class mapping (such as TreeViews, Grids, and StaticText). However, TypeKeys and mouse events can be used on them.
Also i came to know recently that the GetContents() function seems to return nothing for TreeViews. May be this is the reason why you are not able to get the contents

Nice scenario. Let me see if i can help you with this. Where there is a will there is a way!
The research is "ON"


Regards
Sabarish S

Last edited by sabariish; 05-09-2008 at 11:09 AM.
Reply With Quote
  #4 (permalink)  
Old 05-09-2008
Junior Member
 
Join Date: May 2008
Posts: 27
Thanks: 1
Thanked 2 Times in 2 Posts
sabariish is on a distinguished road
Re: Mapping CustomWin

Quote:
Originally Posted by sabariish View Post
hi sajith there are a few custom controls that don't respond to class mapping (such as treeviews, grids, and statictext). However, typekeys and mouse events can be used on them. Also i came to know recently that the getcontents() function seems to return nothing for treeviews. May be this is the reason why you are not able to get the contents nice scenario. Let me see if i can help you with this. Where there is a will there is a way! the research is "on" regards sabarish s
hey sajith

well as i said earlier treeviews, grids, and statictext are not supported by the class map feature of silktest. So here is what a sketch of things u need to do inorder to map your class:- - do you have any idea about extension kit in silktest? if your answer is yes then your task can be accomplished. I have never worked with extension kit, but i have a little idea about it. What you would require to d o here is with the help of extension kit, create a dll which - for example, add a message handler that says that if any object of this class receives a message called "getvalue", get the contents of the listbox, send a message back to the process that sent the message, and send it the value. On the silktest side you define a new class to support the object and add a method that sends/receives the message to the supported object. I know its getting complex but if you want to give it a try you can always do so. Also read the help for extension kit guide for windows in the documenation folder of the siktest. Keep me posted with your findings

Regards

sabarish s
Reply With Quote
  #5 (permalink)  
Old 05-09-2008
Junior Member
 
Join Date: May 2008
Location: India
Posts: 26
Thanks: 1
Thanked 1 Time in 1 Post
sajithkutty is on a distinguished road
Re: Mapping CustomWin

Hi Sabarish,
I'm glad you looked at this post. What you just suggested sounds more than rocket science to me. I know there is something called Extension Kit in Silk but I have no clue what it does. Perhaps now is the time to learn. I think i might need some help from some of my developer friends on this one. Thanks for the clue.
I shall let you know as soon as I have something goin. Keep me posted if you find something as well.
Cheers
Sajith
Reply With Quote
  #6 (permalink)  
Old 05-11-2008
Junior Member
 
Join Date: May 2008
Location: India
Posts: 26
Thanks: 1
Thanked 1 Time in 1 Post
sajithkutty is on a distinguished road
Re: Mapping CustomWin

Hi Sabarish,
I kinda skimmed through the extension kit documentation.
At the risk of sounding too stupid and silly i would like to confirm that this solution you suggested, would require inclusions in the code (i.e. AUT)? The dll you suggest i write will function like an API... some kinda test harness???
If the answer is yes, then i am afraid it might not be possible because I have no access to the code; unless there is something in the SDK that can help me.
Am I missing something???
Cheers
Sajith
Reply With Quote
  #7 (permalink)  
Old 05-13-2008
Junior Member
 
Join Date: May 2008
Posts: 27
Thanks: 1
Thanked 2 Times in 2 Posts
sabariish is on a distinguished road
Re: Mapping CustomWin

Quote:
Originally Posted by sajithkutty View Post
Hi Sabarish,
I kinda skimmed through the extension kit documentation.
At the risk of sounding too stupid and silly i would like to confirm that this solution you suggested, would require inclusions in the code (i.e. AUT)? The dll you suggest i write will function like an API... some kinda test harness???
If the answer is yes, then i am afraid it might not be possible because I have no access to the code; unless there is something in the SDK that can help me.
Am I missing something???
Cheers
Sajith
Hi Sajith,

Yes sometimes! but it might not be required if the application supports the needed messages.

Regards
Sabarish
Reply With Quote
  #8 (permalink)  
Old 05-06-2009
Junior Member
 
Join Date: May 2009
Location: shanghai
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
tracyfmsi is on a distinguished road
Re: Mapping CustomWin

I have the same problem, my AUT is a C/S application and is built on .Net framework 2.0.
sajithkutty, how did you solve this problem?
Thanks.
Reply With Quote
Reply

  Geeks Talk > Software Testing > SilkTest

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Mapping scenario tanya_j Data Warehousing 1 03-25-2008 06:38 AM
Object mapping gemsgils Rational Robot 0 03-14-2008 12:51 PM
mapping spandana_it Data Warehousing 1 09-12-2007 06:27 AM
How can we upload job after mapping? selvaraj.durairaj Data Warehousing 1 08-24-2007 09:11 AM
Mapping and Auxiliary Mapping? sanghala Data Warehousing 0 08-21-2007 06:25 AM


All times are GMT -4. The time now is 09:36 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved