Forum Discussion

apuna12's avatar
apuna12
Occasional Contributor
5 years ago
Solved

qsh error when creating test cycle with API

Hello all,   I am trying to create a testing cycle through an API   (currently Postman).   This is what I am doing     I am not using Authorization tab at all.   As a JWT generat...
  • nastester's avatar
    4 years ago

    I was able to solve this issue with this script: 

     

    function Setup() {
      
    //Run bat file from TestedApps
      var app = TestedApps.Items(0);
      app.Run();
      
      Delay(5000);
      Sys.Refresh();
      //Map console object
      var p = NameMapping.Sys.cmd.wndConsoleWindowClass;
      
      while (p.Exists) {
    //while bat is open, keep test running. Looks for text within the console window
        var IsOpen = p.WaitProperty("wText", "*Deleting dashboard records*", 1000);
        if (IsOpen == false)
        break;
        Aliases.cmd.RefreshMappingInfo();
      }
    }