Service Virtualization

 View Only
  • 1.  String .contains() method not worknig in Beanshell

    Posted Jun 12, 2020 07:22 AM
    I want to match the substring from output of the Listener to the values in excel.I tried using .contains method but the beanshell code throws null pointer exception for contains() method.Can anyone tell what is default datatype in Beanshell and how to match substring in beanshell.

    Thanks,
    Sunil


  • 2.  RE: String .contains() method not worknig in Beanshell
    Best Answer

    Broadcom Employee
    Posted Jun 12, 2020 07:27 AM
    HI Sunil
          Please check the code carefully. The reported exception indicates that the object on which the contains method was invoked is null. 

    --
    regards
    Sankar Natarajan