![]() |
|
![]() |
| LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Junior Member Join Date: Aug 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3 | QTP Script - Decimal doubt Hi, In a web application, in an Input box, if i enter 11, on tab out the value will get changed as 11.00.How to test this condition using Data table using Data table and Script.I'm new to QTP.Please help Thanks in Advance |
| | |
| | #2 (permalink) |
| Junior Member Join Date: Sep 2006 Age: 25
Posts: 16
Thanks: 1
Thanked 20 Times in 6 Posts
Rep Power: 6 | Re: QTP Script - Decimal doubt Hi.. we can use FormatNumber Function Here. For ur Scenario... nanda = 11 window("XXXX").WinEdit("edit box").set nanda window("XXXX").winedit("edit box").type micTab get_value = window("XXXX").winedit("edit box").getROProperty("text") if get_value = FormatNumber(nanda,2) then msgbox "it is working fine" else msgbox "it is not working" end if This will work. If any queries regarding this do mail @ nanda.dreddy@gmail.com With Regards.. Nanda |
| | |
| | #3 (permalink) |
| Junior Member Join Date: Aug 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3 | Re: QTP Script - Decimal doubt Thanks Nanda.. It worked :) |
| | |
| | #4 (permalink) |
| Senior Member Join Date: Sep 2007 Location: Bangalore Age: 27
Posts: 175
Thanks: 37
Thanked 147 Times in 42 Posts
Rep Power: 19 | Re: QTP Script - Decimal doubt Thanks nanda... weldone...:)
__________________ Arunsankar Value has a Value-Only if its Value is Valued |
| | |
![]() |
| Tags |
| decimal , doubt , qtp , script |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| interview Q&A asked in winrunner | Spoorthi | Testing Tools & QA | 80 | 22-11-08 11:48 PM |
| Some Loadrunner FAQs | kiran2710 | Testing Tools & QA | 1 | 25-10-08 12:42 AM |
| Eximiuus Technologies:Hiring Java Script & Flash Devlopers | aravind_82 | Fresher Jobs | 0 | 03-11-06 03:45 AM |
| tsl script for wrong password | uspatil79 | Testing Tools & QA | 1 | 08-10-06 07:26 PM |
| doubt in java script | priya2k6 | JAVA Technologies | 2 | 17-08-06 09:43 AM |
| More Interview Questions Here... |