SURESHKUMAR.NET FORUMS
Registered Member Login:
Not a member? Register today!



Welcome to the SURESHKUMAR.NET FORUMS.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.




QTP Script - Decimal doubt

        

Reply
 
LinkBack Thread Tools Display Modes
Old 11-09-07, 05:16 PM   #1 (permalink)
Junior Member
 
Join Date: Aug 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3 dilna_js is on a distinguished road
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

dilna_js is offline Offline   Reply With Quote
Old 29-10-07, 01:26 PM   #2 (permalink)
Junior Member
 
Join Date: Sep 2006
Age: 25
Posts: 16
Thanks: 1
Thanked 20 Times in 6 Posts
Rep Power: 6 sudhanandareddy has a spectacular aura about sudhanandareddy has a spectacular aura about sudhanandareddy has a spectacular aura about
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
sudhanandareddy is offline Offline   Reply With Quote
Old 30-10-07, 01:29 PM   #3 (permalink)
Junior Member
 
Join Date: Aug 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3 dilna_js is on a distinguished road
Re: QTP Script - Decimal doubt

Thanks Nanda.. It worked :)
dilna_js is offline Offline   Reply With Quote
Old 30-10-07, 04:12 PM   #4 (permalink)
Senior Member
 
aforarun's Avatar
 
Join Date: Sep 2007
Location: Bangalore
Age: 27
Posts: 175
Thanks: 37
Thanked 147 Times in 42 Posts
Rep Power: 19 aforarun has a brilliant future aforarun has a brilliant future aforarun has a brilliant future aforarun has a brilliant future aforarun has a brilliant future aforarun has a brilliant future aforarun has a brilliant future aforarun has a brilliant future aforarun has a brilliant future aforarun has a brilliant future aforarun has a brilliant future
Re: QTP Script - Decimal doubt

Thanks nanda... weldone...:)
__________________
Arunsankar
Value has a Value-Only if its Value is Valued
aforarun is offline Offline   Reply With Quote
Reply

Tags
decimal , doubt , qtp , script


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT +6.5. The time now is 05:33 AM.

More Interview Questions Here...

Content Relevant URLs by vBSEO 3.3.2