Forum Discussion

max0987's avatar
max0987
New Contributor
7 years ago
Solved

Steps in web middle of API testing

Hi, Can some one suggest, how to do certain activities after I run APIs. Activities such as opening a link and clicking a buttong and then read a text as output.  Can anyone have any idea to do this...
  • rraghvani's avatar
    3 years ago

    For example,

     

    function Test()
    {
        var oExec = WshShell.Exec("powershell.exe -Command \"C:\\Temp\\Book2.ps1\" -excelfile \"C:\\Temp\\Book2.xlsx\"");
        while (oExec.Status == 0) {
            aqUtils.Delay(1000);
        }
        while (!oExec.StdOut.AtEndOfStream) {
            Log.Message(oExec.StdOut.ReadLine());
        }
    }

     

     

  • ShahZaib's avatar
    3 years ago

    Thanks a lot this solves all my problems 

    Thank you once again for all the effort