RESET Writable datasource

jngojngojngojngo Posts: 37

Is there a way to reset the writable datasource through scripting.

Comments

  • benken_parasoftbenken_parasoft Posts: 649 ✭✭✭

    No. The Writable data source is reset automatically before executing the tst file. The Writable is also reset during the test run depending on the "Reset frequency" option, which controls whether the data source is always reset before writes.

  • jngojngojngojngo Posts: 37

    Here's what i writable datasource configuration looks like. If I change this to standard mode. I couldn't pull out the value from context.getValue("datasourcename" , "column") . I am not sure what I am doing wrong here. Here's the image of my writable datasource.

  • benken_parasoftbenken_parasoft Posts: 649 ✭✭✭
    edited December 2018

    If I change this to standard mode. I couldn't pull out the value

    If you select "Set-Up test mode" then only set-up tests can append to it. If you select "Standard test mode" then only a standard test can append. The option affects what can append, and does not affect what can read from it.

  • jngojngojngojngo Posts: 37

    The writable datasource is inside the project folder. The first .tst file is an initial step to write to the writabledatasource (that works fine). However, on the second .tst file. I tried to call the the writable datasource using script. It's complaining no datasource name found. My goal is to setup a value that can be shared among all .tst file.

Sign In or Register to comment.