Forum Discussion

shantha_mh's avatar
shantha_mh
Occasional Contributor
4 years ago
Solved

How to write property value in setup script for test Suite? SOLVED

Hi, This is one of the previously resolved issue for CXin a frequent contributor. Please assist me in the similar kind of error I am encountered for the following script I have developed.   def pr...
  • richie's avatar
    4 years ago
    Hey shantha_mh,

    Whats the question? I couldnt actually see what the issue is. Are you saying you have a working script and you want to edit it to do something else?
    You also have import declarations mid script which ive never seen before. Normally import decs are defined at the top of the script to ensure theyre available throughout the script.

    Ta

    Rich
  • ChrisA's avatar
    ChrisA
    4 years ago

    Hi,

     

    It looks like you're trying to script the adding of authorisation to your test steps.  You can do this from the Environments UI and the authorisation is then applied to each step calling that endpoint.

     

    I'm just curious why you might want to script when the core app does this very well already.