SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Senior Member
    Join Date
    Jun 2005
    Location
    India(Chennai)
    Posts
    103
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to Upload Images/files

    How to Upload files/images to CMS application by winrunner function
    I am using following function. But not much. More effective
    __________________________________________________
    # Sets the name of a file to open
    web_file_set("thumbfile","Sample.jpg");
    ## Activates Open File dialog box
    web_file_browse("thumbfile");
    # Choose file
    set_window ("Choose file", 12);

    button_press ("Open");
    __________________________________________________
    the problem is :

    I keeping my all files in common fileserver path. once if I open fileserver path. Winrunner use to take from here only .The browse option will go perfect.

    Sometime Iíll upload files from some other local drive. when Itís playing second time the script open same path and searching such file in local drive instead of search common file server path

    My requirement is :

    It should open in Common fileserver path and upload files or images from here only.

    give me solution

    thanks in advance
    Warmest Regards.,
    Senthil
    Chennai

  2. #2
    SQA Knight
    Join Date
    Jun 2002
    Location
    Cupertino, CA, USA
    Posts
    2,164
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Upload Images/files

    Forget the web_file_browse. Just use web_file_set , specifying the full path to the file you want to upload:

    fileserver_path = "\\\\MyFileServer\\MyImagesDirectory\\";
    web_file_set("thumbfile",fileserver_path & "Sample.jpg");
    button_press("submit");

 

 

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 11.54%
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 06:14 PM.

Copyright BetaSoft Inc.