Page 1 of 1

Can't select date using Calendar in Data Driven Testing.

Posted: Mon Jul 23, 2012 6:11 am
by varun
Hi Support,

We have date field in our application in which date can only be selected from calendar icon along it. Record and Play is working fine for calendar. But data driven not working when try to enter date through calendar as it's mentioned in Excel file(if use excel as Db.).
Please provide me with complete guide and help-full details that how calendar can be used to select date as per dates mentioned in excel file.
Also let me know how can we do condition base automation testing through Ranorex, like if field a = "1" then run "call 1" part of data driven testing, if field a = "2" then run "call 2" part of data driven testing & so on.

Many Thanks,
Varun Sharma.

Re: Can't select date using Calendar in Data Driven Testing.

Posted: Mon Jul 23, 2012 1:04 pm
by Support Team
Hi,

Here a link to the UserGuide:
http://www.ranorex.com/support/user-guide-20.html
Also let me know how can we do condition base automation testing through Ranorex, like if field a = "1" then run "call 1" part of data driven testing, if field a = "2" then run "call 2" part of data driven testing & so on.
Yes, you can do this quite easy. Just wrap your calls into if-statements, e.g.
if(a=1){
MyTestSuit.Recording1.Start();
}
elseif(a=2){
MyTestSuit.Recording2.Start();
}
//and so on
You should be able to set the date of your calender via SetAttributeValue. For more detailed information please send a snapshot of the calendar element.

How to make a snapshot:
http://www.ranorex.com/support/user-gui ... files.html

Kind Regards,
Larissa
Ranorex Support Team

Re: Can't select date using Calendar in Data Driven Testing.

Posted: Tue Jul 24, 2012 5:45 am
by varun
Hi Larissa,

Thanks for your kind guidance!
I am already going through Ranorex user-guide, but afraid that my problem has no solution in this guide book.
As required, PFA the snapshot for Calendar element. Also let me now the detailed way to use this calendar to enter dates from excel file for data driven testing.
Also many thanks for your support on Condition base automation through Ranorex, currently working on this and will let you know in case any hurdle.

WR,
Varun.

Re: Can't select date using Calendar in Data Driven Testing.

Posted: Tue Jul 24, 2012 9:56 am
by Support Team
Hi Varun,

Thanks for the snapshot, I already take a look at it.
My question to you is now if you really want to perform clicks on your calendar using the data in your excel file?
This might be quite tricky if you for example want to select a month which is not the actual one.

I'm quite sure that the date can also be set manually (e.g. with setAttributeValue and the data from your excel data connector). Depending on what you want to test, this would be a good alternative solution.
To provide you more guidance about setting the value I'll need a little bit more information. Maybe you can send me a snapshot not just from the Calendar element but from the Body, where the Text-boxes of the "Start Date" and "End Date" are contained. Optimally you would give us access to your application.



Kind regards,
Larissa
Ranorex Support Team

Re: Can't select date using Calendar in Data Driven Testing.

Posted: Tue Jul 24, 2012 12:33 pm
by varun
Hi Larissa,

You are right that Date can be set manually but my concern was to include Calendar element in automation process. By the way many thanks for your guidance. 8)
Will catch you if face any problem in executing condition base automation process.

WR,
Varun.

Re: Can't select date using Calendar in Data Driven Testing.

Posted: Tue Jan 22, 2013 4:50 pm
by luigi.rosito
Hi,
I have the same problem.
How did you solve it?

Best regards
Luigi

Re: Can't select date using Calendar in Data Driven Testing.

Posted: Fri Jan 25, 2013 3:23 pm
by Support Team
Hello Luigi,

Can you please send us a Ranorex Snapshot file from your application and explain what exactly you are trying to do.
Thank you!

Regards,
Bernhard

Re: Can't select date using Calendar in Data Driven Testing.

Posted: Fri Sep 12, 2014 4:29 pm
by mayank9292
i am too facing this problem. i have to pick up the date from excel file and then accordingly click on the same date from the calender. Please help.

Re: Can't select date using Calendar in Data Driven Testing.

Posted: Mon Sep 15, 2014 3:27 pm
by Support Team
Hello mayank9292,

Unfortunately, we cannot analyze your issue without additional information. May I ask you to explain the issue in more detail?
  • • How do you “pick up” the date from Excel (DataConnector, Name of Excel Sheet, etc.)
Please provide a Ranorex Snapshot file of your calendar. Information on how to create a snapshot can be found here.

Thanks,
Robert