Forum Discussion

Sebastian_Vilst's avatar
Sebastian_Vilst
Contributor
16 years ago

Validation issue when properties are int or date

We're using a lot of project properties as variables in our test steps

When a property is used in an integer or data field
like this ${Properties#aNumber} the validator says it's the wrong datatype. It does this in both form and xml view.

The webservice call itself is fine, it's just the validation that fails

I assume it's because all properties are really strings and the validator expects the right datatype. I suggest extending the validator with a parseDat and a parseInt if it can't find the expected datatype

8 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    Thanks, this is a known issue. The problem is that the property-expansions are currently not expanded before validation, I'll improve this in the upcoming nightly build, let me know how it works for you.

    regards!

    /Ole
    eviware.com
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    ok.. there is an updated build available now. Property-Expansions are now expanded in values/messages before validating, but this might still give errors depending on if there are valid values available for expansion.. let me know if you still have issues..

    regards!

    /Ole
    eviware.com
  • Hi Ole,

    Just tried the 03-02 build and i still have errors. I can see that we now have line numbers and better error messages though.

    This is the request:
    project attached below instead
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    ok.. can you attach or mail me the project containing this request?

    regards,

    /Ole
    eviware.com
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    ok.. upcoming nightly build should validate this message ok.. let me know!

    regards,

    /Ole
    eviware.com