Micro Focus QTP (UFT) Forums
having problem with date set with SwfCalendar - 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: having problem with date set with SwfCalendar (/Thread-having-problem-with-date-set-with-SwfCalendar)



having problem with date set with SwfCalendar - vramu1 - 01-10-2008

I'm new to qtp and testing a inhouse .net application. I need to select a date dynamically from the Calendar (i.e., .Net box Calendar). Whenever date changes/triggers/firesup all the rest of the values in the screen automatically changes. I used the below code to set the date in the calendar. It is changing and I can see the 10/01/2008 in the field but it's not triggering/firing up means rest of the values are not changing.
SwfWindow("Form1").SwfCalendar("dateTimePicker1").SetDate "10-Jan-2008"
Do am I missing any other code after the above code? please help me.
Thanks heaps Regards Ram.


RE: having problem with date set with SwfCalendar - Ankur - 01-11-2008

If I get your question right, you mean while executing it without QTP your app is working fine, but running it through QTP it is not showing the required fields.
Does your application has a lot of controls? If yes, that might be the reason for the performance problem.
Change the active screen capture level to minimum.


RE: having problem with date set with SwfCalendar - vramu1 - 01-11-2008

Thanks Ankur,
Excellent forum & blog.
I found the problem. I'm testing this on ver8.2 and .Net8.2.
Today I tested the same on Ver9.2. Worked perfectly.
Thanks everybody.
Regards
Ram.