Forum Discussion

Tuan's avatar
Tuan
New Contributor
8 years ago

Algorithm OR

Hey Guys! can you help me this.

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ba="http://www.smartturn.com/services/OccamService/ba" xmlns:occ="http://www.smartturn.com/services/occamtypes">
<soapenv:Header/>
<soapenv:Body>
<ba:lookUpBusinessAffiliates>
<ba:inCredential>
<occ:UserId>TuanNguyen@Div.com</occ:UserId>
<!--You have a CHOICE of the next 2 items at this level-->
<occ:Password>Ndtu7!</occ:Password>
</ba:inCredential>
<!--Optional:-->
<ba:inCriteria>
<!--Zero or more repetitions:-->
<occ:criterions>
<!--Optional:-->
<occ:negate>false</occ:negate>
<occ:propertyName>companyName</occ:propertyName>
<occ:operator>equal</occ:operator>
<occ:stringValue>107</occ:stringValue>
</occ:criterions>

<occ:criterions>
<!--Optional:-->
<occ:negate>false</occ:negate>
<occ:propertyName>companyCode</occ:propertyName>
<occ:operator>equal</occ:operator>
<occ:stringValue>107BA</occ:stringValue>
</occ:criterions>
</ba:inCriteria>
</ba:lookUpBusinessAffiliates>
</soapenv:Body>
</soapenv:Envelope>

 

with the code above, I am looking to algorithmically 'And'.I want to search by 'Or' algorithm from the above code should I do

Thank all so much!

4 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    Sorry to say, but the question is not clear at all.
    • Tuan's avatar
      Tuan
      New Contributor

      The above code I'm searching by company name and company code
      now I want to search by company name or company code should i do

    • Tuan's avatar
      Tuan
      New Contributor
      • nmrao's avatar
        nmrao
        Champion Level 3
        Tuan, do you mean to assert if the the marked response values are matching with the request values?

        Then you need to use Script Assertion.