SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: possible??

  1. #1
    Senior Member
    Join Date
    Oct 2003
    Posts
    129
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    possible??

    Hi
    I have an edi file in a folder. we put the EDI file in an IN folder and it gets picked up from there and puts it in OUT folder. Do you think it is possible to automate this process like winrunner checks for the file in IN folder and then it checks if it got picked up from there and placed in OUT folder. If so how should i proceed?

    Thanks

  2. #2
    Member
    Join Date
    Mar 2004
    Location
    Israel
    Posts
    30
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: possible??

    If its a small file, you can read it with winrunner file* functions (see the help) and write it in other folder.
    If its a big file you better make some batch file that copy this file and run this batch file from winrunner using invoke function.

  3. #3
    Senior Member
    Join Date
    Oct 2003
    Posts
    129
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: possible??

    Please let me know what file functions do i need to use for this

    Thanks

  4. #4
    Moderator
    Join Date
    Mar 2002
    Location
    Tampa Bay
    Posts
    7,673
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: possible??

    Did you check the Help, as pcarlo suggested?

  5. #5
    Senior Member
    Join Date
    Oct 2003
    Posts
    129
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: possible??

    Yes I did. but i did'nt know what to use. Is there any function like file_exists in winrunner. Or is there any otherway where we can know if the file is in the IN folder.

    Thanks

  6. #6
    Senior Member
    Join Date
    Oct 2003
    Posts
    129
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: possible??

    Suppose if you have a folder in C:\ called C:\tests

    How can you find out if the folder tests exists in C drive

    Please let me know ASAP

  7. #7
    Senior Member
    Join Date
    May 2001
    Location
    Ankh-Morpork
    Posts
    2,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: possible??

    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">public function file_exists(in filePathName)
    # returns 0 (E_OK) if file exists &amp;&amp; is readable
    {
    auto rc;
    rc = file_open(filePathName, FO_MODE_READ);
    if(rc == E_OK)
    {
    file_close(filePathName);
    }
    return(rc);
    }</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">
    web site | [url=http://www.ebookworm.us/[/url]

    [i]...Sound trumpets! Every trumpet in the host! / Sixty thousand, on these words, sound, so high the mountains sound, and the valleys resound.&lt;/i] (The Song of Roland)

  8. #8
    Member
    Join Date
    Jul 2003
    Posts
    65
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: possible??

    helloo,

    Use the following cso functions (csoinit has file_exists function)

    csoinit
    cso2init
    cso3init
    csoxinit

    It has lot of routines written...

    Thanks.
    T E S T W O R M

  9. #9
    Senior Member
    Join Date
    May 2001
    Location
    Ankh-Morpork
    Posts
    2,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: possible??

    Originally posted by Testworm:
    helloo,

    Use the following cso functions (csoinit has file_exists function)

    csoinit
    cso2init
    cso3init
    csoxinit

    It has lot of routines written...

    Thanks.
    <font size="2" face="Verdana, Arial, Helvetica">Nah, real programmers don't re-use existing code: they write their own. I mean, we don't want projects to come in on time and under budget, do we? That would set a terrible example. [img]images/icons/smile.gif[/img]
    web site | [url=http://www.ebookworm.us/[/url]

    [i]...Sound trumpets! Every trumpet in the host! / Sixty thousand, on these words, sound, so high the mountains sound, and the valleys resound.&lt;/i] (The Song of Roland)

  10. #10
    Member
    Join Date
    Jul 2003
    Posts
    65
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: possible??

    Thats true,

    This reuse would really help you in effort reduction [img]images/icons/wink.gif[/img]
    T E S T W O R M

 

 
Page 1 of 2 12 LastLast

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.00%
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:26 PM.

Copyright BetaSoft Inc.