Exforsys
+ Reply to Thread
Results 1 to 2 of 2

Help me abount write script in QTP 9.5!

This is a discussion on Help me abount write script in QTP 9.5! within the Software Testing forums, part of the Testing category; I have just use the tool test Quick test pro. I wrote a script the test automatic for form login ...

  1. #1
    hangoc Guest

    Thumbs down Help me abount write script in QTP 9.5!

    I have just use the tool test Quick test pro.
    I wrote a script the test automatic for form login but I don't know why ocurr err that I don't resove.
    Pls help me. Thank you vey much.
    This code I wrote:
    1. in the file library.qfl
    Function check_max_length(textValue, maxLength)
    If textValue>=maxLenght Then
    Reporter.ReportEvent micFail, "Number Of List Items", "The item count in the list should be 15, not "
    'Reporter.ReportEvent micFail,"Hay nhap text nho hon"
    else
    Reporter.ReportEvent micPass,"dl vua nhap da ok"
    End If
    End Function
    2. in tab Expert View
    I called again that function
    Browser("IOSS - Administrator system").Page("IOSS - Administrator system").WebEdit("username").Set DataTable("user", dtGlobalSheet)
    Browser("IOSS - Administrator system").Page("IOSS - Administrator system").WebEdit("password").SetSecure DataTable("pass", dtGlobalSheet)
    Browser("IOSS - Administrator system").Page("IOSS - Administrator system").WebButton("Submit").Click

    user = DataTable("user",dtGlobalSheet)
    pass = DataTable("pass",dtGlobalSheet)
    call check_max_length(user,25)
    call check_max_length(pass,50)
    ====================================================
    Plsease help me


  2. #2
    yogindernath's Avatar
    yogindernath is offline Junior Member Array
    Join Date
    Dec 2008
    Answers
    1

    Writing Script in QTP

    Best way is to go through the help file of QTP accompanying the software.


Latest Article

Network Security Risk Assessment and Measurement

Read More...