Forum Discussion

alibaba82's avatar
alibaba82
Super Contributor
17 years ago

Bugs with 2.01 Beta (External scripts not working)

Hello,
I have an external script which looks something like this.

void CreateUser(testRunner)
{
String Email = "sdfsdsfsefas@dsfdasf.com";
def props = testRunner.testCase.getTestStepByName("Properties");
if (props.getProperty("Email") == null)
props.addProperty("Email");
props.setPropertyValue("Email",Email);
}

This functions as expected in 1.7.6 but in the beta release this function does not work.

Ali

4 Replies

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Ali,

    hmm.. can you give any details on the error message?

    sorry for the inconvenience..

    regards!

    /Ole
    eviware.com
  • alibaba82's avatar
    alibaba82
    Super Contributor
    The function is working in the sense that it is creates the properties step if they dont already exist. However,
    props.setPropertyValue("Email",Email);
    does not set the values in the property step.

    This is only happening in the 2.01 beta. It does not happen in 1.7.6


    Ali
  • omatzura's avatar
    omatzura
    Super Contributor
    thanks!

    should I send you a fixed jar?

    regards!

    /Ole
    eviware.com