Forum Discussion

mchiang's avatar
mchiang
New Contributor
9 years ago
Solved

Convert curl request to SoapUI Request

I'm currently trying to convert a working curl command to a valid SoapUI test case but am having some issues. I am trying to attach a json file and the server also requires authorisation. I'm able to...
  • anhhao_nguyentr's avatar
    13 years ago
    Hi Siobhan!

    Please check again your mapping item, you can find item's menthods by Method tab in Advanced view to make sure that the methods are avaiable.

    Hope this code can help you:



    /**Looking for a filter name in Filter Name dropdownlist*/

    function Verify_Filter_Name_Exist_In_List(filter_name)

    {

      try

      {    

        var Obj=Aliases["pageInventoryDetailReport"]["list_Filter_Name"];//list_FIlter_Name appears after user clicked on combobox

        var i;

        if(!Obj["VisibleOnScreen"])

        {

          Aliases["pageInventoryDetailReport"]["cb_Filter_Name"]["Click"]();// cb_Filter_Name is a combo box

        }   

        for(i=0;i<Obj["wItemCount"];i++)

        {

          if(Obj["wItem"](i)==filter_name)

          {

            return true;

          }     

        }

        return false;

      }catch(ex)

      {

        Messageshow=ex["description"];

        return false;

      }

    }