Forum Discussion

mooods's avatar
mooods
New Contributor
13 years ago

Test Steps varibale Attributs

Hello

is it posible to change a Attribute in voplist every Test Step?

In my Test-Request, I have a attribute for begin ="2011-10-02T06:00:00+02:00" and end="2011-10-02T08:00:00+02:00", now i want add 1 hour to both Attributs on every Test step. How can i make a Attribute variable?

MoooDs

3 Replies

  • SiKing's avatar
    SiKing
    Community Hero
    Something like:
    ${=String.format("%tFT%tT+02:00", new Date(), new Date())}

    You will probably have to modify the Date(int milis) to suit your needs.
  • mooods's avatar
    mooods
    New Contributor
    THX

    now i have "end" and "begin" as Properties. How can i add 2 hours every Test.Step. The date have not has to be the real date. Important is only the Formate "yyyy-mm-ddThh:mm:ss+02:00"

    greetz MoooDs