SPONSORS:






User Tag List

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

    how to update ini file during plan execution

    Hi,

    In my plan there are two test cases, one is create new user account and and another on login with new user credintials.

    So i am using userdetais.ini file to store the newly created information.

    During second testcase execution, i am reading the userdetails.ini and will try login by using the same... however i failed to get the new user details as the .ini hasn't saved with new information.

    .ini file is getting updated only once the complete plan executed.

    I've verified after completion of testcase.. i haven't seen the new user information in .ini file.... but its got updated with new user inforamtion once the plans execution got over.

    Kindly let me know how to retrieve the updated information within in the plan execution.

    Regards
    Vamsi

  2. #2
    Member
    Join Date
    Aug 2007
    Posts
    107
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: how to update ini file during plan execution

    How you are reading the ini files?, I am wondering about the mode of the file while opening the file.

    if you are not successful then try to write a vbscript to read the file, search for FileHandling concepts in VBscript.

    Thanks,
    Santhosh

  3. #3
    Senior Member
    Join Date
    Jun 1999
    Location
    Fremont, CA, USA
    Posts
    355
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: how to update ini file during plan execution

    You need to make sure you close the file after writing the value out to it.

    {code}
    [ ] hIniFile = IniFileOpen (sIniFile)
    [ ] IniFileSetValue (hIniFile, sSection, sVariable, "{sValue}")
    [ ] IniFileClose (hIniFile)
    {code}

 

 

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 07:21 AM.

Copyright BetaSoft Inc.