QTP functionalities. - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: QTP functionalities. (/Thread-QTP-functionalities) |
QTP functionalities. - suma.k - 06-26-2009 Hi, I am suma. I hav a query in QTP as below. For particular field can hav no. of conditions like., ex: First Name conditions :
For this how to write coding, that QTP has to display appropriate message automatically? (ex: Through datatable parameterization if we pass "ra" and "ram" then for "ra" it has to display "Enter min 3 char and max 10 char" and for "ram" has to display "Entered First Name is valid") Hope i'l get solution for this query. Thankyou in advance, Please help out Thanks Suma.K RE: QTP functionalities. - QTPian - 07-02-2009 Hi, Please look into the following URL, https://www.learnqtp.com/forums/Thread-Need-help-on-how-to-validate-a-web-application-form-using-QTP Thanks, RE: QTP functionalities. - basanth27 - 07-02-2009 Suma - I am not sure how you would be expecting a complete code base for your requirement. Normally on a forum you can expect a quick hint or a part of the code or resolved issues from your code. Plus, you would need to supply enough information in terms of the application & the QTP version you use. I will show you an simple example for one of the scenarios you listed.("Enter min 3 char and max 10 char") 1. Calculate the length of the string you are passing. if len(firstname) > 2 And len(firstname)<=10 Then Reporter.reporterevent micpass, "First Name", "Entered First Name is valid" Else Reporter.Reporterevent micfail, "First Name", "Enter min 3 char and max 10 char" End if Hope this helps. Let me know if you need anything else. |