06-17-2009, 05:11 PM
Hi
I am trying to set the Start Date in my application (.net thick client) but the script ends up setting the end date. Please see the attachment1.
Qtp detects both the StartDate and End Date as separate object on adding it to object repository. view attachment2. View the script below
**************************************
Original Script
*********************************************************
I even tried renaming the object in the object repository. view attachment3 and 4
Every time the script for startdate is populating the end date calendar control (not as expected should populate start date) and again the script for end date is also rewriting the End date (as expected)
I also tried commenting the End Date script and even removing the EndDate object from the object repository but still the script populates teh end date.
***************************************************
MOdified Script
***************************************************
Any suggestions please
I am trying to set the Start Date in my application (.net thick client) but the script ends up setting the end date. Please see the attachment1.
Qtp detects both the StartDate and End Date as separate object on adding it to object repository. view attachment2. View the script below
**************************************
Original Script
Code:
SwfWindow("Finish Line Timing System").SwfWindow("Meetings (Editing)").SwfCalendar("dtpMeetingStartDate").SetDate "2-Apr-2009"
SwfWindow("Finish Line Timing System").SwfWindow("Meetings (Editing)").SwfCalendar("dtpMeetingEndDate").SetDate "11-Apr-2009"
*********************************************************
I even tried renaming the object in the object repository. view attachment3 and 4
Every time the script for startdate is populating the end date calendar control (not as expected should populate start date) and again the script for end date is also rewriting the End date (as expected)
I also tried commenting the End Date script and even removing the EndDate object from the object repository but still the script populates teh end date.
***************************************************
MOdified Script
Code:
SwfWindow("Finish Line Timing System").SwfWindow("Meetings").SwfCalendar("cldStartDate").SetDate "20-May-2009"
'SwfWindow("Finish Line Timing System").SwfWindow("Meetings").SwfCalendar("dtpMeetingEndDate").SetDate "20-May-2009"
Any suggestions please