SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Jan 2009
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    ODT.Data Index/variable/name Input - Reading/Log

    Hopefully somebody can help me with this:

    Example full name: ODT.Data.TestOrders.ReleaseTest.Files.Items[2].Value[4].Items[5].Value[3].etc;

    From what I gather this is:
    TestOrders - Groups
    Releasetest - (Variable?)
    Files - Name
    Items[] - Array
    Value[] - Array

    What i'd like to do is for example:

    ODT.Data.TestOrders.Releasetest.Files[aFileNr].Items[Itemnr].Value[Paramnr]

    and then fill it in with a:
    function getValue( FileNr, Itemnr, Paramnr : String):String;
    ...
    strWaarde := ODT.Data.TestOrders.ReleaseTest.Files[aFileNr].Items[Itemnr].Value[Paramnr];
    ...
    myValue := getValue(1, 2, 3);
    Log.message(myValue);

    to end up with
    ODT.Data.TestOrders.ReleaseTest.Files[1].Items[2].Value[3];
    (Having to replace Files[1] with a more literal name so; Files1 is no problem, just haven't been able to do it myself)

    Filling in Items and Value has worked fine but I'm stuck on replacing the Files bit (and if it's possible to do the same with ReleaseTest and TestOrders for even more flexibility that would be great)

  2. #2
    Moderator tristaanogre's Avatar
    Join Date
    Mar 2006
    Location
    Pennsylvania, USA
    Posts
    1,792
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: ODT.Data Index/variable/name Input - Reading/Log

    I think you will find using the "Evaluate" function useful. Check out the help file on that and see if it helps.
    -Robert Martin
    Automated Testing Evangelists
    TestComplete "expert"
    Definition expert - noun - Unknown drip under pressure

  3. #3
    Junior Member
    Join Date
    Jan 2009
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: ODT.Data Index/variable/name Input - Reading/Log

    Thank you for your answer, I read the Evaluate function but am none the wiser. Especially as I can't even run a procedure with a Evaluate function in it (Evaluate('5 + 5') for example)

    Could you maybe show me an example of how to use it in my previous example code?

  4. #4
    Junior Member
    Join Date
    Jan 2009
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: ODT.Data Index/variable/name Input - Reading/Log

    Btw, I managed to figure out the Evaluate statement. Thanks for your help. Appreciate it

  5. #5
    Moderator tristaanogre's Avatar
    Join Date
    Mar 2006
    Location
    Pennsylvania, USA
    Posts
    1,792
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: ODT.Data Index/variable/name Input - Reading/Log

    Glad you got it figured out. I was away from my office yesterday so didn't get back to your post.
    -Robert Martin
    Automated Testing Evangelists
    TestComplete "expert"
    Definition expert - noun - Unknown drip under pressure

 

 

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 11.54%
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 06:41 AM.

Copyright BetaSoft Inc.