SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 8 of 8
  1. #1
    Junior Member
    Join Date
    Jul 2006
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Working with Javascript (newbie)

    Hello.

    I am trying to convince my company to purchase TestComplete, and have been charged with the responsibility of scripting (I am the sole member of the Software Testing dept.!).

    I have a good grasp of Flash Actionscript, so I have opted to code in JavaScript as it is reportedly very similar.

    I have started with recording to familiarize myself with the format & layout, and am getting better at reading the hierarchy & finding objects.

    I can't, however, recognize the grid or it's contents as objects.

    The grid is a contacts list with names, numbers, etc (and part of a compiled Delphi program), which leads to an edit dialog when double clicked. This is- in essence- what I would like TC to do for me.

    At the moment I can only dictate the x & y coordinates to be pressed (which is prone to error)

    I appreciate I am new, but I have been steadily working through the tutorials and have searched these forums for answers.

    Is there a specific javascript API I need to learn for TC? I can't find methods like Click or Exists in the JS Object Table.

    I greatly appreciate any & all help.

    Regards,
    Sean

  2. #2
    Senior Member
    Join Date
    Apr 2006
    Location
    ked up until rehabilitated
    Posts
    515
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Working with Javascript (newbie)

    The first issue that stands out is that the object browser is not recognizing your Delphi program. When you view the program in the Object Browser, does it have the yellow scales on the right side? That represents an "open" project, and will allow you to reference objects instead of just coordinates.

    Once TC can view your product as open, you will have access to much more of your product.

    Also, is the grid from a third party tool? That might not be in the set of grids supported by TC.

    That would be the two areas I would look at first.

    Good Luck!
    Aaron Fager
    Software Test Engineer

    If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization.

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

    Re: Working with Javascript (newbie)

    No- the scales are not there. I can't understand why.

    I have gone through the same set-up with the 'orders.exe' example.

    With the example I get the scales icon, but not with our program.

    Thanks for your response CC, can anyone advise me further?

  4. #4
    Senior Member
    Join Date
    Apr 2006
    Location
    ked up until rehabilitated
    Posts
    515
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Working with Javascript (newbie)

    based on your response, your developers will need to do a couple of things to the product to get it compiled as Open.

    Please see the details in the TC4 help, under "Open Applications", and under that "Adding public information to Delphi and C++Builder Open Applications"

    I hope this helps,
    Aaron Fager
    Software Test Engineer

    If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization.

  5. #5
    Junior Member
    Join Date
    Jul 2006
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Working with Javascript (newbie)

    Thank you again CC.

    It turns out that the grid is indeed created in an different tool. Excellent spot.

    This is a real shame- I feel TC is a magnificent product with real power and at a great price. The support is also excellent.

    Unless the load testing support is especially good I may not push for our company to invest in it [img]images/icons/frown.gif[/img]

  6. #6
    Senior Member
    Join Date
    Aug 2001
    Posts
    529
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Working with Javascript (newbie)

    Hi Sean,

    I would like to note that information on how it is possible to work with grids from TestComplete can be found in the 'Working With Grids' help topic. You may find there links to sample projects demonstrating working with different grids.
    Eric Holton
    Microsoft Corp.

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

    Re: Working with Javascript (newbie)

    Thank you eholton. I had noted those.

    Unfortunately I am a not-so great programmer working in a small window. I simply do not have enough time or low-end access to the system's development.

    Great product though- and great people in this forum. Thanks one and all.

  8. #8
    Junior Member
    Join Date
    Jul 2006
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Working with Javascript (newbie)

    I am pleased to announce that our company will be investing in TestComplete.

    The company CEO has decided it will investigate possible fixes at a soft dev level.

    I must thank you all again for your help.

    Regards!

 

 

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 02:12 PM.

Copyright BetaSoft Inc.