
- Forum
- Testing
- Software Testing
- Help me abount write script in QTP 9.5!
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 ...
-
01-05-2009, 11:54 PM #1hangoc Guest
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
-
01-25-2009, 07:59 AM #2
Writing Script in QTP
Best way is to go through the help file of QTP accompanying the software.

Reply With Quote





