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
    May 2005
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    testcomplete tick-box issue ?

    Hello

    has anyone encountered the following issue?

    I have a gui where the screen for creating and deleting users is the same screen. To delete a user, you just tick a box beside the username and click remove user.
    When I record this using testcomplete, test complete associates a tag for example "selected__4" to it.
    This causes it to delete whatever user is in the fourth position in the list. Which means it will delete anyone and also fail if only 3 users exist. How do i get it to delete by user name ?

    any help would be great
    thanks
    Elaine

  2. #2
    Member
    Join Date
    Apr 2005
    Location
    Montreal, Canada
    Posts
    72
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: testcomplete tick-box issue ?

    Hello,

    In order to help you, one would need to know what kind of component you are using.

    From a general standpoint, you would need to get all the items of your list, find the username you are looking for, select that user in the list and click delete.
    To find the methods of your list, you could use the 'Object properties' tool. You might find a method that allows the deletion of an element by providing the display string.

    Regards
    Simon Glet

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

    Re: testcomplete tick-box issue ?

    Hi Simon,

    thanks for your response. My GUI is written in PHP and launched by a browser.
    In the object properties tool the 'method' element is empty.

    Each user name appears to be handled separately so i am unsure how to treat them as a list ?

    thanks
    Elaine

    function GSP_CI2()
    {
    var p, w, window;
    p = Sys["Process"]("iexplore");
    w = p["Window"]("IEFrame", "http://192.168.0.160 - x_Netledge Configuration - Microsoft Internet Explorer");
    w["Activate"]();
    window = w["Page"]("*")["ToURL"]("http://192.168.0.160/f_index.php");
    window["frames"]["visibile"]["frames"]["bottoni"]["document"]["all"]["Utenti_bis_r2_c1"]["Click"](88, 27);
    //Please wait until download completes: "http://192.168.0.160/left.html#"
    window["Wait"]();
    Sys["Keys"]("simtel[Tab]che6grullo");
    p["Window"]("IEFrame", "http://192.168.0.160 - Autenticazione - Microsoft Internet Explorer")["Window"]("Internet Explorer_Server")["document"]["all"]["Submit"]["Click"](83, 20);
    //Please wait until download completes: "http://192.168.0.160/login.php?op=chk&area=UTENTI"
    window["Wait"]();
    //Please wait until download completes: "http://192.168.0.160/utenti/main.html"
    window["Wait"]();
    //Please wait until download completes: "http://192.168.0.160/utenti/left.php"
    window["Wait"]();
    //Please wait until download completes: "http://192.168.0.160/utenti/UTEMGR.html"
    window["Wait"]();
    window["frames"]["visibile"]["frames"]["bottoni"]["document"]["all"]["ordinari_r2_c1"]["Click"](91, 17);
    //Please wait until download completes: "http://192.168.0.160/utenti/left.php#"
    window["Wait"]();
    //Please wait until download completes: "http://192.168.0.160/utenti/utenti.php?op=vista&adm=0"
    window["Wait"]();
    window["frames"]["visibile"]["frames"]["principale"]["document"]["all"]["inserisci"]["Click"]();
    //Please wait until download completes: "http://192.168.0.160/utenti/nuovo_ute.php"
    window["Wait"]();
    window["frames"]["visibile"]["frames"]["principale"]["document"]["all"]["user"]["Click"](13, 3);
    Sys["Keys"]("test99[Tab]test99[Tab]0.0.0.");
    window["frames"]["visibile"]["frames"]["principale"]["document"]["all"]["inserici"]["Click"]();
    //Please wait until download completes: "http://192.168.0.160/utenti/utenti.php?op=vista"
    window["Wait"]();
    window["frames"]["visibile"]["frames"]["principale"]["document"]["all"]["selected___3"]["Click"](true);
    window["frames"]["visibile"]["frames"]["principale"]["document"]["all"]["cancella"]["Click"]();
    p["Window"]("#32770", "Microsoft Internet Explorer")["Window"]("Button", "OK")["Click"]();
    //Please wait until download completes: "http://192.168.0.160/utenti/utenti.php?op=can"
    window["Wait"]();
    window["frames"]["visibile"]["frames"]["bottoni"]["document"]["all"]["exit"]["Click"](56, 33);
    //Please wait until download completes: "http://192.168.0.160/utenti/left.php#"
    window["Wait"]();
    //Please wait until download completes: "http://192.168.0.160/left.html"
    window["Wait"]();
    //Please wait until download completes: "http://192.168.0.160/conf_index.html"
    window["Wait"]();
    }

  4. #4
    Member
    Join Date
    Apr 2005
    Location
    Montreal, Canada
    Posts
    72
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: testcomplete tick-box issue ?

    Hi Elaine,

    As I use TC on a stand alone dotNet application and only have a standard license, I am in no position to help you. Sorry about that.

    Hopefully with the information you provided ,someone working on a similar application will be able to answer your question.

    Regards
    Simon Glet

  5. #5
    Senior Member
    Join Date
    Oct 2004
    Location
    Las Vegas
    Posts
    473
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: testcomplete tick-box issue ?

    Hi Elaine,

    Our support team has already replied to your e-mail. Here is a copy of their answer:

    You need to implement the needed functionality manually in your TestComplete script. I recommend that you use the following scenario:

    - Investigate the HTML element that displays the "elaine5" text in TestComplete's Object Browser. You can use the Finder Tool to capture the object on the page.
    - Investigate the check box HTML element in the Object Browser.

    In your TestComplete script:
    - Use the Page.Find method to find the HTML element containing the "elaine5" text.
    - If the needed HTML element is found, read one of its properties that will help you find the needed check box (index or Y-coordinates).
    - Use the Page.Find or Sys.ObjectFromPoint method to find the needed check box by one of its properties or coordinates.
    <font size="2" face="Verdana, Arial, Helvetica">Cheers,
    Atanas

 

 

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 08:06 PM.

Copyright BetaSoft Inc.