Service Virtualization

 View Only
  • 1.  To include '+' in the request argument

    Posted Apr 12, 2022 05:44 AM
    Edited by Akshit koul Apr 12, 2022 11:49 AM
    Hi team

    We have a requirement where we have 2 scenarios in get request with value a and a+ . When we are testing from soap  and sending in the get request value=a+ , its getting treated as  a(whitespace) , which then the vse i believe is trimming and matching with the scenario of value =a . i have tried sending in %2b the unicode of '+' character in soap but it is getting treated as it is %2b only and not getting convereted to '+' character. Could you please advise how can we send the + as it is.

    Thanks
    Akshit


  • 2.  RE: To include '+' in the request argument

    Broadcom Employee
    Posted Apr 12, 2022 04:05 PM
    Hi Akshit,

    Not sure if I completely understand the requirements but below is one regex
    that should match your 3 values (and only those 3):

    a$|a\+$|a\+b$

    Haven't been able to test it specifically within DevTest itself, let us
    know if there's any issue.

    Cheers,


    Danny Saro

    Client Services Consultant

    Broadcom Software


    -------------------------------------------------

    --
    This electronic communication and the information and any files transmitted
    with it, or attached to it, are confidential and are intended solely for
    the use of the individual or entity to whom it is addressed and may contain
    information that is confidential, legally privileged, protected by privacy
    laws, or otherwise restricted from disclosure to anyone else. If you are
    not the intended recipient or the person responsible for delivering the
    e-mail to the intended recipient, you are hereby notified that any use,
    copying, distributing, dissemination, forwarding, printing, or copying of
    this e-mail is strictly prohibited. If you received this e-mail in error,
    please return the e-mail to the sender, delete it from your computer, and
    destroy any printed copy of it.




  • 3.  RE: To include '+' in the request argument

    Posted Apr 13, 2022 06:04 AM
    Hi @Danny Saro
    Thanks for the help.It works. Also is there a way to include whitespace. lets say if we have 2 scenarios a and a(whitespace).I tried a\s$ for latter , but the response is still getting fetched from the former(just the value a).
    Else can we include whitespace without the use of regular expression just the equate option like value= a(whitespace) and stopping the space from getting trimmed

    Regards
    Akshit​​


  • 4.  RE: To include '+' in the request argument

    Broadcom Employee
    Posted Apr 13, 2022 07:51 AM
    Hi Akshit,

    Yes, I think you are encountering an issue in the product with whitespace
    at the end of an argument when regex is the comparison operator. I can't
    get it to work either. You might want to create a support issue to get a
    confirmation from support and/or engineering.

    Using the other comparison operators there is no other way to equate
    whitespace to my knowledge, so the only option I see left is to create a
    match script to do the required matching.


    Cheers,

    Danny Saro

    Client Services Consultant

    Broadcom Software


    -------------------------------------------------

    --
    This electronic communication and the information and any files transmitted
    with it, or attached to it, are confidential and are intended solely for
    the use of the individual or entity to whom it is addressed and may contain
    information that is confidential, legally privileged, protected by privacy
    laws, or otherwise restricted from disclosure to anyone else. If you are
    not the intended recipient or the person responsible for delivering the
    e-mail to the intended recipient, you are hereby notified that any use,
    copying, distributing, dissemination, forwarding, printing, or copying of
    this e-mail is strictly prohibited. If you received this e-mail in error,
    please return the e-mail to the sender, delete it from your computer, and
    destroy any printed copy of it.




  • 5.  RE: To include '+' in the request argument

    Posted Apr 14, 2022 06:15 AM
    ok thanks Danny


  • 6.  RE: To include '+' in the request argument

    Posted Apr 15, 2022 02:22 AM
    Hi Akshit,

    Hope this worked for you, please let us know in case still not resolved.

    Thanks

    ------------------------------
    Regards,
    Vaibhav Jain
    Capgemini
    ------------------------------