Results 1 to 4 of 4
  1. #1

    How to read .ini file

    User (MMcNaughton@STSSystems.com.nospam) posted:

    There's a library called IniApi at the Rational Users site, if you are

  2. #2

    Re: How to read .ini file

    User Gustavo Rojas (grojas@microsoft.com.nospam) posted:

    The APIs you'll need are GetPrivateProfileString and
    WritePrivateProfileString. Information about them is found here:

    You put the declaration of your APIs in an .sbl file, just as they
    appear on the web site and then use them as you would any function. They
    are not very difficult to use.

    Gustavo Rojas
    Microsoft Great Plains Business Solutions
    Software Test Engineer
    Solomon Platform Services Group

  3. #3

    Re: How to read .ini file

    User Tom Ba (tombasay@hotmail.com.nospam) posted:

    This from Rational conf sqa faq sheet.
    It's in the archives.
    It's at rationalusers.
    It's everywhere.

    Q) How do I work with INI files?
    A) In SQA, start a new Test procedure and type the following:
    Declare Function WritePrivateProfileString Lib "kernel32" Alias _
    "WritePrivateProfileStringA" (ByVal lpApplicationName As String, _
    ByVal lpKeyName As Any, ByVal lpString As Any, ByVal _
    lpFileName As String) As Long
    Declare Function GetPrivateProfileString Lib "kernel32" Alias _
    "GetPrivateProfileStringA" (ByVal lpApplicationName As String, _
    ByVal lpKeyName As Any, ByVal lpDefault As String, _
    ByVal lpReturnedString As String, ByVal nSize As Long, _
    ByVal lpFileName As String) As Long

    Sub Main
    Dim Result As Integer
    Dim ReturnString As String
    Dim S As Long
    ReturnString = String(50, chr$(0))
    S = WritePrivateProfileString ("HISTORY", "MyKey", "Some text @: " & _
    str$(Format(now,"hh:mm:ss")), "SQA32.INI")
    msgbox "I wrote to the SQA32.INI, HISTORY section, Key MyKey. Check it out"
    S = GetPrivateProfileString ("HISTORY", "MyKey", "String not found", _
    ReturnString, Len(ReturnString) + 1, "SQA32.INI")
    MSgbox "Here is what I wrote: " + Returnstring
    End Sub

    ----Original Message Follows----
    From: srinivas ankatha <srinivas_ankatha@yahoo.com>
    Reply-To: "SQA Suite Team Test Users" <sqa-suite-users@lyris.dundee.net>
    To: "SQA Suite Team Test Users" <sqa-suite-users@lyris.dundee.net>
    Subject: How to read .ini file
    Date: Mon, 29 Apr 2002 22:43:41 -0700 (PDT)


    Can u send me the code of how to ini file.
    A.srinivasa rao
    Comp-u-learn tech india ltd
    __________________________________________________ _______________
    MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx


  4. #4

    Re: How to read .ini file

    AutoITX is a COM component that has methods for processing ini files.

    GUI automation is GUI automation. It is not testing.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 03:46 PM.

Copyright BetaSoft Inc.