SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Apr 2006
    Posts
    277
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    DataPooling or Customizing for uploading Files

    I want to upload different files for different Virtual Users by doing dataPooling or Customizing values.
    Can any one tell me which values is to be customised i.e whether the path of the file to be uploaded or just the file name.
    Thanks

  2. #2
    Advanced Member
    Join Date
    Jan 2004
    Location
    UK
    Posts
    817
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DataPooling or Customizing for uploading Files

    The customisation is entirely up to how or what data you need in your test. Also you can not upload a file without having a path to it.... even if your path is relative
    I like what i know and I know what i like

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

    Re: DataPooling or Customizing for uploading Files

    My problem is that when I datapool the File name or Path in WebPageSubmitBin function all the inner contents in function are pooled off. The test is passed but the uploaded file doesn't reach destination. I m trying with turboupload Website to send the file as sample application.
    I have even tried by the Passing Path in a variable and the datapooling the variable, but it doesn't work as the file is upload but exact file with contents r not send.
    I m sending the script. Plz if anyone has the solution then do reply.

    //----------------------------------------------------------------------
    // Recorded 05/31/2007 by SilkPerformer Recorder v7.4.0.2776
    //----------------------------------------------------------------------

    benchmark SilkPerformerRecorder

    use "WebAPI.bdh"

    dcluser
    user
    VUser
    transactions
    TInit : begin;
    TMain : 1;

    var

    dclrand

    dcltrans
    transaction TInit
    begin
    WebSetBrowser(WEB_BROWSER_MSIE6);
    WebModifyHttpHeader("Accept-Language", "en-us");
    //WebSetUserBehavior(WEB_USERBEHAVIOR_FIRST_TIME);
    //WebSetDocumentCache(true, WEB_CACHE_CHECK_SESSION);
    end TInit;

    transaction TMain
    var
    begin
    WebCookieSet(
    "ANON_ID=aRmseFNTnoQtQ1QEiFdUPS2VvOTrr7UUYjVrbKMae oTK370sjr1pMl2tvg3UQG3EJZcWEbD0SvIPF3kqb0DEF; domain=.tribalfusion.com;"
    " path=/j.ad; expires=Wed, 31 May 2017 10:45:46 GMT", "http://a.tribalfusion.com/j.ad", 2);
    WebPageAddUrl("http://a.tribalfusion.com/j.ad", J_AD001);
    WebPageAddUrl("http://www.google-analytics.com/__utm.gif", UTM_GIF002);
    WebCookieSet(
    "__utma=4914870.1265649891.1180593705.1180593705.1 180595457.2; domain=.turboupload.com; path=/; expires=Wed, 31 May 2017 "
    "10:45:43 GMT", "http://www.turboupload.com/");
    WebCookieSet(
    "__utmz=4914870.1180593705.1.1.utmccn=(direct)|utm csr=(direct)|utmcmd=(none); domain=.turboupload.com; path=/; expires=We"
    "d, 31 May 2017 10:45:43 GMT", "http://www.turboupload.com/");
    WebPageUrl("http://www.turboupload.com/", "TurboUpload.com - Free file hosting service, backup your files");

    WebCookieSet(
    "m6=d104239:1:0:0:1180595372|59368:1:116975:0:1180 593620|; domain=.fastclick.net; path=/; expires=Sat, 02 Jun 2007 10:44:"
    "21 GMT", "http://media.fastclick.net/w/get.media", 2);
    WebCookieSet(
    "vt=3765:59368:116975:24978:0:1180593620|; domain=.fastclick.net; path=/; expires=Sat, 30 Jun 2007 10:44:21 GMT",
    "http://media.fastclick.net/w/get.media", 2);
    WebCookieSet(
    "pluto=0f13ddf4-1657-4a4a-80cb-59bfa91e374f; domain=.fastclick.net; path=/; expires=Sat, 30 May 2009 10:44:21 GMT",
    "http://media.fastclick.net/w/get.media", 2);
    ThinkTime(3.6);
    WebPageUrl("http://d.turboupload.com/fastclick300x250.html", "fastclick300x250.html");

    // Redirecting -> (redirection) Could Not Connect
    WebCookieSet(
    "uid=uid=d0dc65a0-0f41-11dc-a552-0050455d41c2&_hmacv=1&_salt=2161726754&amp ;_keyid=k1&_hmac=f4a9c6f0cc03dd628b6a5f1b3c7bc 1645"
    "ae9b3f8; domain=.yieldmanager.com; path=/; expires=Sat, 30 Jun 2007 10:44:25 GMT", "http://ad.yieldmanager.com/imp");
    WebCookieSet("vuday1=hspd)N:5jW(av=(; domain=.yieldmanager.com; path=/; expires=Fri, 01 Jun 2007 00:00:00 GMT",
    "http://ad.yieldmanager.com/imp");
    WebCookieSet("ih="b!!!!#!!0T[!!!!#9XEvg"; domain=.yieldmanager.com; path=/; expires=Sat, 30 May 2009 10:44:25 GMT",
    "http://ad.yieldmanager.com/imp");
    ThinkTime(2.3);
    WebPageUrl("http://adserving.cpxinteractive.com/imp", "imp", IMP003);

    ThinkTime(57.5);
    MeasureStart("a123");

    WebPageBack(2);

    WebCookieSet(
    "__utma=4914870.1265649891.1180593705.1180595457.1 180608347.3; domain=.turboupload.com; path=/; expires=Wed, 31 May 2017 "
    "10:46:51 GMT", "http://s8.turboupload.com/upload.tu");
    WebCookieSet("__utmb=4914870; domain=.turboupload.com; path=/; expires=Wed, 31 May 2017 10:46:51 GMT",
    "http://s8.turboupload.com/upload.tu");
    WebCookieSet("__utmc=4914870; domain=.turboupload.com; path=/; expires=Wed, 31 May 2017 10:46:51 GMT",
    "http://s8.turboupload.com/upload.tu");
    WebPageSubmitBin("Upload File", "-----------------------------7d72262e140614\r\n"
    "Content-Disposition: form-data; name="filetoupload"; filename="D:\\Kick.txt"\r\n"
    "Content-Type: text/plain\r\n"
    "\r\n"
    "Kick12\r\n"
    "football\r\n"
    "-----------------------------7d72262e140614\r\n"
    "Content-Disposition: form-data; name="to"\r\n"
    "\r\n"
    "xxxp@gmail.com\r\n"
    "-----------------------------7d72262e140614\r\n"
    "Content-Disposition: form-data; name="from"\r\n"
    "\r\n"
    "XXXX@operamail.com\r\n"
    "-----------------------------7d72262e140614\r\n"
    "Content-Disposition: form-data; name="description"\r\n"
    "\r\n"
    "xcsfsd\r\n"
    "-----------------------------7d72262e140614\r\n"
    "Content-Disposition: form-data; name="terms"\r\n"
    "\r\n"
    "checkbox\r\n"
    "-----------------------------7d72262e140614\r\n"
    "Content-Disposition: form-data; name="Submit"\r\n"
    "\r\n"
    "Upload File\r\n"
    "-----------------------------7d72262e140614--\r\n", STRING_COMPLETE,
    "multipart/form-data; boundary=---------------------------7d72262e140614",
    "TurboUpload.com - Share your files with your friends, free file hosting"); // Form 1
    MeasureStop("a123");

    end TMain;

    dclform
    J_AD001:
    "site" := "TurboUpload",
    "adSpace" := "ROS",
    "size" := "300x250",
    "noAd" := "1",
    "requestID" := "16398214300.2124480073175073";

    UTM_GIF002 <ENCODE_ESCAPE> :
    "utmwv" := "1",
    "utmn" := "1883479802",
    "utmcs" := "iso-8859-1",
    "utmsr" := "1024x768",
    "utmsc" := "32-bit",
    "utmul" := "en-us",
    "utmje" := "1",
    "utmfl" := "9.0",
    "utmdt" := "TurboUpload.com - Free file hosting service, backup your files",
    "utmhn" := "www.turboupload.com",
    "utmr" := "-",
    "utmp" := "/",
    "utmac" := "UA-508314-3",
    "utmcc" := "__utma=4914870.1265649891.1180593705.1180595457.1 180608347.3;+__utmb=4914870;+__utmc=491487"
    "0;+__utmz=4914870.1180593705.1.1.utmccn=(direct)| utmcsr=(direct)|utmcmd=(none);+" <
    ENCODE_URICOMPONENT> ;

    IMP003:
    "z" := "2",
    "Z" := "300x250",
    "e" := "8658",
    "I" := "8658",
    "S" := "24978",
    "t" := "3";
    Last edited by Gyami; 11-17-2016 at 01:13 AM.
    Thanks

  4. #4
    Advanced Member
    Join Date
    Jan 2004
    Location
    UK
    Posts
    817
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DataPooling or Customizing for uploading Files

    Have you tried removing the 'upload' statement i.e.

    "http://s8.turboupload.com/upload.tu");
    WebCookieSet("__utmc=4914870; domain=.turboupload.com; path=/; expires=Wed, 31 May 2017 10:46:51 GMT",

    WebPageSubmitBin("Upload File", "-----------------------------7d72262e140614\r\n"
    "Content-Disposition: form-data; name=\"filetoupload\"; filename=\"D:\\Kick.txt\"\r\n"
    "Content-Type: text/plain\r\n"
    "\r\n"
    "Kick12\r\n"
    "football\r\n"
    "-----------------------------7d72262e140614\r\n"
    "Content-Disposition: form-data; name=\"to\"\r\n"

    Just an idea but your question is excellent. Have you tried the Borland site(forum)? If not post your mail there and hopefully they might be able to help you with a solution.
    I like what i know and I know what i like

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

    Re: DataPooling or Customizing for uploading Files

    No Sorry. It is not working.I have even tried by replacing "WebPageSubmitBin" by "WebPageFileUpload" Function.It runs fine but on datapooling the exact file is not send.
    Also on datapooling the path in dclform. The value is not datapoolled in the dclform. But it is shown datapool in Tint transaction.
    I m sending u the customized script.


    Transaction TSuccess
    Begin
    WebPageFileUpload("http://www.turboupload.com",FILE_UPLOAD_FORM);
    end TSuccess;

    transaction TShutdown
    begin
    FileUnload(Path1);
    end TShutdown;



    dclform
    FILE_UPLOAD_FORM:
    "to" := "xx@gmail.com",
    "from" := "yy@operamail.com",
    "description" := "fsfasf",
    "terms" := "checkbox",
    "Submit" := "Upload File",



    "filename" :="filetoupload;""D:\\adv unintaller.txt;plain/text";
    Thanks

  6. #6
    Advanced Member
    Join Date
    Jan 2004
    Location
    UK
    Posts
    817
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DataPooling or Customizing for uploading Files

    Have you tried using the 'LoadGlobal' command for your file upload?
    I like what i know and I know what i like

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

    Re: DataPooling or Customizing for uploading Files

    LoadGlobal command is not present in the help file.
    let me know from where did u get the command.
    Thanks

  8. #8
    Advanced Member
    Join Date
    Jan 2004
    Location
    UK
    Posts
    817
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DataPooling or Customizing for uploading Files

    Try changing the '.txt' extension to your upload file to csv. That way you can use the 'FileCSVLoadGlobal' function.

    HTH
    I like what i know and I know what i like

  9. #9
    Member
    Join Date
    Apr 2006
    Posts
    277
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DataPooling or Customizing for uploading Files

    Plz note that i want to upload a text file on website and not CSV file. I want a solution for it and to do it for multiple users with different files.
    Thanks

  10. #10
    Advanced Member
    Join Date
    Jan 2004
    Location
    UK
    Posts
    817
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DataPooling or Customizing for uploading Files

    Could it be TurboUpload itself causing the problem? I am not very knowledgeable about this website, only that it's in beta mode....??? Am not too sure if this will help but this might have some influence on why you are having problems with it.....

    http://www.scriptsearch.com/details/4825.html

    HTH
    I like what i know and I know what i like

 

 

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 08:31 AM.

Copyright BetaSoft Inc.