SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    May 2003
    Location
    DC
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Unable to get window properties

    I am trying to capture the window properties of an object on a web page. It displays the message 'Unable to get window properties'. Why do I get this message?

    When I record window declarations, I cannot see the same object in the list of recorded objects. SilkTest captures only upto a certain number of objects in a window and ignores the rest of them. Is there a limit to the number of objects in a window?

    Thanks
    Kiran

  2. #2
    Junior Member
    Join Date
    Oct 2005
    Location
    Delhi
    Posts
    14
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to get window properties

    Hi Kiran,
    What version of Silk are you using ? Because i have faced similar problem on silk 8.0.

    Thanks
    Krishna

  3. #3
    Junior Member
    Join Date
    Oct 2006
    Location
    Campinas/SP - Brazil
    Posts
    21
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to get window properties

    I have the same problem with a Java desktop app =/
    It doesn't capture any object, just show the error message

  4. #4
    Member
    Join Date
    May 2003
    Location
    DC
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to get window properties

    I am using SilkTest 8.0
    This is amazing as to limit the number of objects to be recognized by a testing application.

  5. #5
    Member
    Join Date
    May 2003
    Location
    DC
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to get window properties

    Ok here is the solution:

    This is a problem with SilkTest 8.0
    Supposed to work well with SilkTest 2006 (as per Segue/Borland)


    Thanks
    Kiran

  6. #6
    Member
    Join Date
    May 2005
    Location
    Ukraine
    Posts
    40
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to get window properties

    How many objects does Silk Test capture?
    I have never got this issue. Have you configured extension settings?

  7. #7
    Junior Member
    Join Date
    Sep 2006
    Posts
    18
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to get window properties

    I have this problem with almost ALL windows of our speech recognition software(nothing to do with number- it is very small)with all SilkTest version (5.02-8), this why I never use this "record properties" feature at all.
    Instead of that I use some custom functions which collect properties (by predefined per class list) from any window and store it in data file (with ability to verify after)
    This architecture supports even locaized strings...

    I can make more explanation and examples if you are interested


    Viktor

  8. #8
    Member
    Join Date
    May 2005
    Location
    Ukraine
    Posts
    40
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to get window properties

    Please do it. This is ineresting.

  9. #9
    Junior Member
    Join Date
    Sep 2006
    Posts
    18
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to get window properties

    1. Get list of children on window lwListChildren(do you need to see this function?)

    This would be better to paste in Silk:
    2.
    [-] list of string fWindowsStatus (list of window lwListChildren)
    // collect common properties status (no strings here)
    [ ] list of string lsOut=lsE
    [ ] window wItem
    [-] for each wItem in lwListChildren
    [-] if ListFind(lwDoNotVeryfyThisItem,wItem)!=0
    [ ] goto nextitem
    [ ] list of string lsSS=lsE
    [ ] DATACLASS dClass=wItem.Class
    [ ] Agent.SetOption(OPT_VERIFY_ENABLED, FALSE)
    [-] do
    [-] lsSS={...}
    [ ] "{wItem} IsEnabled {wItem.IsEnabled()}"
    [-] if wItem.IsDefined("HasFocus")
    [ ] ListAppend(lsSS,"{wItem} HasFocus {wItem.HasFocus ()}")
    [-] switch dClass
    [-] case CheckBox
    [ ] ListAppend(lsSS,"{wItem} IsChecked {wItem.IsChecked()}")
    [-] case RadioList
    [ ] ListAppend(lsSS,"{wItem} GetSelIndex {wItem.GetSelIndex()}")
    [ ] // case ComboBox, ListBox, PopupList,PageList,TextField,TreeView

    [ ] // case ListView
    [ ] // case PushButton
    [-] except
    [ ] ExceptPrint()
    [ ] Agent.SetOption(OPT_VERIFY_ENABLED, TRUE)
    [+] if lsSS!=lsE
    [ ] ListMerge(lsOut,lsSS)
    [ ] nextitem:
    [ ] ResPrintList("Status of window:",lsOut)
    [ ] return lsOut
    3. Store this info as your database(I store it as a tab separated file with .xls extantion)
    [+] fVerifyWindowStatus(boolean bNewData optional, list of string lsListActual, window wWindow,string sEditionToTest optional)
    [ ] // verification of status every dialog box to previously created
    [ ] // if in any language you have expected difference you should create sLocaleSpecificFile manually
    [ ] // if this file exist base line is locale
    [+] if isNull (bNewData)
    [ ] bNewData=false
    [+] if isNull (sEditionToTest)
    [ ] sEditionToTest=sEdition
    [ ] string sBaseStatusList = "{sStatusListDir}\StatusData\{sEditionToTest}\{wWi ndow}\Status_list.xls"
    [ ] string sLocaleSpecificFile="{sStatusListDir}\StatusData\{ sEditionToTest}\{wWindow}\{csProductLanguage}_Stat us_list.xls"
    [-] if SYS_FileExists (sLocaleSpecificFile)
    [ ] sBaseStatusList = sLocaleSpecificFile
    [ ] print(sBaseStatusList)
    [+] if !SYS_FileExists (sBaseStatusList)
    [ ] bNewData=true
    [ ] list of string lsOUT
    [+] if bNewData
    [ ] Remove_A_File(sBaseStatusList)
    [ ] ListInsert (lsListActual, 1, "// {sBuildNumber} {sEdition} {csLanguage}")
    [ ] ListWrite(lsListActual,sBaseStatusList)
    [ ] print("Created sBaseStatusList = {sBaseStatusList}")
    [+] else
    [ ] list of string lsBaseStatusList=fListRead(sBaseStatusList)
    [ ] ResPrintList("lsBaseStatusList="{...}",lsBaseStatu sList)

    So first time I run testcase with this functions to create data , next time - to verify. I verify only ptoperties which I need only . The same idea for storing strings(captions) .
    Let me know if you need more details

    Viktor

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 9.38%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:10 AM.

Copyright BetaSoft Inc.