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

Ranorex Spy, Recorder, and Studio.
varun
Posts: 110
Joined: Mon Jul 23, 2012 5:52 am

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

Post by varun » Mon Jul 23, 2012 6:11 am

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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

Post by Support Team » Mon Jul 23, 2012 1:04 pm

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
.
Image

varun
Posts: 110
Joined: Mon Jul 23, 2012 5:52 am

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

Post by varun » Tue Jul 24, 2012 5:45 am

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.
Attachments
Calendar.rxsnp
Calendar_Element
(187.97 KiB) Downloaded 255 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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

Post by Support Team » Tue Jul 24, 2012 9:56 am

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
.
Image

varun
Posts: 110
Joined: Mon Jul 23, 2012 5:52 am

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

Post by varun » Tue Jul 24, 2012 12:33 pm

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.

luigi.rosito
Posts: 1
Joined: Tue Jan 22, 2013 4:48 pm

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

Post by luigi.rosito » Tue Jan 22, 2013 4:50 pm

Hi,
I have the same problem.
How did you solve it?

Best regards
Luigi

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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

Post by Support Team » Fri Jan 25, 2013 3:23 pm

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
.
Image

mayank9292
Posts: 6
Joined: Fri Sep 12, 2014 4:26 pm

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

Post by mayank9292 » Fri Sep 12, 2014 4:29 pm

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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

Post by Support Team » Mon Sep 15, 2014 3:27 pm

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
.
Image