SPONSORS:






User Tag List

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

    Using TP with Custom controls

    Hi,

    I'm planning to automate the testing of an application which is developed in .net and C#. The developers used custom controls for the application. When i tried to test a record using Visual Test, TP is unable to recognize some parts of the application. Below i have added on step which TP recorded.

    "Select cell at row Unknown colum 2"

    The main problem is it recording using the x,y coordinates.

    I have included testscript below.


    ' Attach to Application=EXPLORER.EXE
    ' Caption='Program Manager'
    ProgramManagerWindow("Application=EXPLORER.EXE Caption='Program Manager'").Attach
    ListView("Index=1").DoubleClick 121, 611

    ' Attach to Application=xyz.EXE
    ' Name=LogonForm
    DotNETForm("Application=xyz.EXE Name=LogonForm").Attach
    DotNETEditBox("Name=tbUserName").Type "demo{Tab}"
    DotNETEditBox("Name=tbPassword").Type "demo{Return}"

    ' Attach to Application=xyz.EXE
    ' Name=abc
    DotNETForm("Application=xyz.EXE Name=abc").Attach
    DotNETScrollBar("Parent.Name=def").Click 11, 12
    DotNETScrollBar("Parent.Name=def").Click 9, 277
    DotNETDataGridView("Name=def").Click 43, 183

    I dont know how to configure TP so that my application can be recorded.
    Please help me out..

  2. #2
    Senior Member
    Join Date
    May 2010
    Location
    TN , IND
    Posts
    157
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Using TP with Custom controls

    First check this out !!

    Tools - > Options - > Record . Set Raw Record as " No " .


    But In any case even if Tp doesn't have the Raw Record , some times it records the coordinates as X, Y ... I m not sure abt the reason. But try that out .

    Any reason why you go with Visual Test but not Test Script ?



    ************************************************

    Arun
    Using Testpartner 6.3
    Evaluating Quick Test Professional 10.0
    Automating BI and Business Decisions Application

    ************************************************

  3. #3
    Senior Member
    Join Date
    Jan 2006
    Location
    Bengaluru
    Posts
    494
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Using TP with Custom controls

    You can automate those custom controls using Application native methods. You can call application native methods in your TP scripts to act on these controls. But, those methods need to be exposed via COM.

    Speak to application developers and get the information.
    Suraj

 

 

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.34%
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 04:16 AM.

Copyright BetaSoft Inc.