cerberustesting / cerberus-core

The Open Source Test Automation Platform.
https://cerberus-testing.com
GNU General Public License v3.0
324 stars 101 forks source link

Variable property on execution #1401

Open TsunaDev opened 7 years ago

TsunaDev commented 7 years ago

I'd like to know if it is possible to launch a test with a variable property.

In my case, I'd like to be able to launch a test from another interface (with a wget for example) with a variable date.

Regards, Tsuna.

bcivel commented 7 years ago

Hello @TsunaDev Did you notice that you could use system variable as described in the documentation chapter 5.5.5. Variables

Could that fit your needs? If not, could you explain a bit your need? Thanks

TsunaDev commented 7 years ago

Hello @bcivel , Yes, I noticed it

I'm working with a database. I want to create a plateform where the user can choose a date and it will compute the tests with this date as a property. So I was wondering if that was possible to have a property that's defined at the moment of the execution.

For example : RunTestCase?Test=Examples&TestCase=0004A&[...]&myproperty=26

bcivel commented 7 years ago

If in your case, you use : name:myproperty type:text value:%SYS_TODAY-dd%

when the property will be calculated, it will use the current date.

Do I misunderstand the need?

TsunaDev commented 7 years ago

It could be any date not just current one

TsunaDev commented 7 years ago

I could use another example than dates :

Again, from an external plateform, I'd like the user to be able to choose the account he's testing on, rather than changing the properties username and password from the App, he'd just be able to choose the account name and the password from the plateform and with some formatting from my plateform it would run : RunTestCase?Test=Connection&TestCase=0004A&[...]&username=user&password=pass

bcivel commented 7 years ago

Hello @TsunaDev OK I understand the need. I just wanted to make sure if it was possible or not to unlock you quickly by few tricks.

Anyway, what you propose is very interresting, we keep it open and put it in the road map. We'll keep you aware of the resolution.

Thanks Benoit

SeniorCanard commented 6 years ago

Hello, UP, this enhancement will be usefull in so many ways. Is it still on the road map ?

vertigo17 commented 6 years ago

Sure it is.