SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Sep 2001
    Location
    colorado springs,CO,USA
    Posts
    69
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Unable to convert the recorded steps to Des Prog

    Hi Tarun,

    I am stuck here...

    I have tried converting it to Descriptive Programming the below steps but no luck. Can you please
    help me. I am enclosing you the recorded steps too in the zip file.

    Browser("Crystal Report Viewer").Dialog("Please Provide
    Information").Activate
    Browser("Crystal Report Viewer").Dialog("Please Provide
    Information").ActiveX("Crystal Report Prompt").WinCalendar("Range of values
    between:").SetDate "9-Apr-2007"
    Browser("Crystal Report Viewer").Dialog("Please Provide
    Information").WinButton("Finish").Click
    Browser("Crystal Report Viewer").Page("Crystal Report
    Viewer").ActiveX("Crystal Report Viewer").WinObject("ATL:6006E588").Click
    58,11
    Browser("Crystal Report Viewer").Dialog("Report Viewer
    Export").WinEdit("File name:").Set "test"
    Browser("Crystal Report Viewer").Dialog("Report Viewer
    Export").WinButton("Save").Click
    Browser("Crystal Report Viewer").Dialog("Report Viewer
    Export").WinButton("Yes").Click

    Thanks,

  2. #2
    Advanced Member
    Join Date
    Mar 2007
    Location
    Salt Lake City, UT, USA
    Posts
    606
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DP

    Wow, Tarun, you've hit the bigtime now. Getting questions directed to you personally.

    You should start charging for your consulting service...
    "The last 10% of any software project will take 90% of the budgeted time. The first 90% will take the other 90%"

  3. #3
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: DP

    Ket, Update the post subject line with something more meaningful.

    [ QUOTE ]

    Wow, Tarun, you've hit the bigtime now. Getting questions directed to you personally.

    You should start charging for your consulting service...


    [/ QUOTE ]
    I would prefer not to charge any one as of now [img]/images/graemlins/wink.gif[/img] ...but who knows whats next...

  4. #4
    Advanced Member
    Join Date
    Mar 2007
    Location
    Salt Lake City, UT, USA
    Posts
    606
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DP

    Ket Shah, the problem is that without seeing your application, it would be hard for us to tell you how to convert those to descriptive programming.

    The code you provided is clearly referencing the object repository. Within the object repository, each of those logical names has one or more description properties - you can see them by opening your object repository and looking at the specific object.

    But there is no way for any of us to know what those description properties are.

    For example, the last line of your code is:

    Browser("Crystal Report Viewer").Dialog("Report Viewer Export").WinButton("Yes").Click

    That WinButton might use "nativeclass" and "text" as description properties. The text is probably "Yes". The nativeclass might be something as simple as "Button". I'm just guessing here - only you can know for sure.

    So, if my guesses are right, the DP for that button would be:

    Browser("Crystal Report Viewer").Dialog("Report Viewer Export").WinButton("nativeclass:=Button", "text:=Yes").Click

    Note: that is only the DP for the button (and it might be wrong - I used the nativeclass of a button in my OR, but it's not a web application - no idea if your nativeclass would be the same). You might also want to do the DP for the browser and the dialog as well.

    I hope that gets you started.
    "The last 10% of any software project will take 90% of the budgeted time. The first 90% will take the other 90%"

  5. #5
    Member
    Join Date
    Mar 2007
    Location
    BPort, CT,
    Posts
    49
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DP

    To Blake,
    Ha..
    you are using two property/value pairs in DP. I am very new to DP..as a matter of fact used it very rarely only when the occassion demanded it and always used one property/value pair..ex... WinButton("text:=yes")

    Is it a better practice to use more than one? Thanks Blake [img]/images/graemlins/smile.gif[/img]

 

 

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 10.71%
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 10:37 AM.

Copyright BetaSoft Inc.