SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Feb 2008
    Posts
    77
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Navigate to a common Folder to open a word doc

    Hi,

    Now,I need to navigate to a common folder and open a word doc (in a folder common to the 2 other new QTP users).My script runs fine and looks like this...
    ================================================== ======
    SystemUtil.Run "iexplore.exe", "www.ABC.com"
    Browser("ABC :: Home").Page("ABC :: Home").Sync
    Browser("ABC :: Home").Navigate "E:\QA_Shared\Automation\SM"
    wait 2
    Browser("ABC :: Home").WinListView("SysListView32").Activate "SM WORD DOC"
    ================================================== =====
    Others 2 new users have QA_Shared in Z AND X drives.
    Z:\QA_Shared\Automation\SM
    X:\QA_Shared\Automation\SM

    Any help?Thnx!!!

  2. #2
    Member
    Join Date
    Jul 2003
    Location
    Germany
    Posts
    458
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Navigate to a common Folder to open a word doc

    try to use UNC path names. When you open a windows explorer ("my computer") then you should see you network drives as something like:

    folderxyz on 'pc123'

    try

    Browser("ABC :: Home").Navigate "\\pc123\folderxyz\QA_Shared\Automation\SM"

  3. #3
    Member
    Join Date
    Oct 2003
    Location
    Norfolk, VA
    Posts
    360
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Navigate to a common Folder to open a word doc

    I think the best way would be to have all use the same share letter. We had a similar issue, and rather than try to solve the issue programmatically, we all have the same share (Q connected. I still have my original share drive (H to the same place as well, now we can share scripts without the missing resources issue.
    A good rule of thumb is to never measure with your thumb.

  4. #4
    Member
    Join Date
    Feb 2008
    Posts
    77
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Navigate to a common Folder to open a word doc

    We are using the same share drive now.

    Thnx!!!

  5. #5
    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: Navigate to a common Folder to open a word doc

    We too had this issue when scripts ran on onsite and offshore and our issue was a bit different as in we had different folder structure at both place. What we did was to use a Array of folder paths and script would check for the existence of the folder and use which ever exists.

 

 

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 01:45 PM.

Copyright BetaSoft Inc.