Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » How to use default value in a local data set
How to use default value in a local data set [message #1000251] Mon, 14 January 2013 11:05 Go to next message
Alexander Kolesov is currently offline Alexander KolesovFriend
Messages: 43
Registered: November 2012
Member
Hello,

Could you please advise how to use default value in a local data set.
Say, I have a keyword that fills some person record:
_keyword_fill_person

It takes several parameters:
=FirstName
=Second_Name
=Address
etc, the list can be big enough

All the parameters have default value

I want to test some place in the application that concerns field FirstName of the record from above. First I need to setup this data.
So I use keyword '_keyword_fill_person' and want to pass different parameter '=FirstName' expecting that all other parameters would take default value unless I specify them exactly. However, when I start creating set for parameter '=FirstName' I'm forced to enter all other parameters. Can I avoid that?

Thanks,
Alex
Re: How to use default value in a local data set [message #1000650 is a reply to message #1000251] Tue, 15 January 2013 07:06 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi,

The way that referenced (default) and local data works is on an all-or-nothing basis. That means that as soon as you change one parameter, the whole data set is considered "local" and is no longer affected by changes in the referenced test case. You can switch the data back to their referenced values in the "Data Source" combo box in the properties view.

Nevertheless, if you reference the Test Case with default values, then you should be able to change one value without having to reenter the other data - I can't quite read from your post whether that is what you are describing.

If I've misunderstood, let me know Smile

Best regards,
Alex
Re: How to use default value in a local data set [message #1000811 is a reply to message #1000650] Tue, 15 January 2013 13:10 Go to previous message
Alexander Kolesov is currently offline Alexander KolesovFriend
Messages: 43
Registered: November 2012
Member
Hi Alex,
I' better describe my expectations in pictures Smile

Here is defined test case with default values specified:
index.php/fa/12972/0/
I add it to test suite:
index.php/fa/12973/0/
Here are default values being set as expected:
index.php/fa/12974/0/
I need to call this case severeal times for various values of parameter FIRST_NAME.
So I define values for the parameter:
index.php/fa/12975/0/
Now I expect to have data set with values I entered for FIRST_VALUE and all other values propagated from default settings. However other values are empty:
index.php/fa/12976/0/

So, I need to manually enter missing values that is quite uncomfortable.
Eg: to repeat case with 10 parameters 10 times for only one of paraemters I will need to fill 81 more absolutelly unnesseccary for current scenario fields.

Thanks,
Alex.
  • Attachment: ref_case.PNG
    (Size: 13.17KB, Downloaded 552 times)
  • Attachment: test_suite.PNG
    (Size: 3.18KB, Downloaded 480 times)
  • Attachment: def_values.PNG
    (Size: 19.59KB, Downloaded 556 times)
  • Attachment: f_name.PNG
    (Size: 7.35KB, Downloaded 514 times)
  • Attachment: problem.PNG
    (Size: 9.21KB, Downloaded 528 times)

[Updated on: Tue, 15 January 2013 13:11]

Report message to a moderator

Previous Topic:Title: Problem in Tree Table (RCP) of a Property View (RCP)
Next Topic:Null pointer exception on keyword update
Goto Forum:
  


Current Time: Tue Oct 08 00:26:30 GMT 2024

Powered by FUDForum. Page generated in 0.03784 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top