Monday, January 30, 2017

Best Editor for working with Log files and Regex support

Best Editor for working with Log files and Regex support 


Best Editor for working with Log files -Editpad Lite or Pro
Download https://www.editpadlite.com/

Online Regex Testing site :
http://regexr.com/
http://www.regexe.com/
http://myregexp.com/

RegEx Cheat sheet
https://www.cheatography.com/davechild/cheat-sheets/regular-expressions/

Common Examples:

* Ah* matches "Ahhhhh" or "A"

? Ah? matches "Al" or "Ah"

+ Ah+ matches "Ah" or "Ahhh" but not "A"

\ Hungry\? matches "Hungry?"

. do.* matches "dog", "door", "dot", etc.

( ) See example for |

[ ] [cbf]ar matches "car", "bar", or "far"
[0-9]+ matches any positive integer
[a-zA-Z] matches ascii letters a-z (uppercase and lower case)
[^0-9] matches any character not 0-9.

| (Mon)|(Tues)day matches "Monday" or "Tuesday"

{ } [0-9]{3} matches "315" but not "31"
[0-9]{2,4} matches "12", "123", and "1234"
[0-9]{2,} matches "1234567..."

^ ^http matches strings that begin with http, such as a url.
[^0-9] matches any character not 0-9.

$ ing$ matches "exciting" but not "ingenious"

Monday, January 9, 2017

SOAP UI: Dynamically Change the Reponse/method in the Test Step

Dynamically Change the Response/Method in the Test Step

To Dynamically change the  response / method in the Test step , user needs to replace the URL in the scratch pad itself with the variables .

In the below example , I'm grabbing the id value from properties file(counter) in the response.For that I have first modified the scratch pad Resource ,this gets reflected in the test step and can be used further.


SOAP UI : Property Transfer

Property Transfer


Property Transfer : Used to search values from any test step and transfer it to another step.
Note : widely used to transfer value from Request to Property step (Ref example below)

In the below example :
  1. Create_product (Rest Request) - Contains the id value of the product created.
  2. Property Transfer - Tries to grab the id from above step (select the file to be searched using drop down and use JSON path finder http://jsonpath.com/ to traverse to the required string.
  3. Click on play in the Property transfer to validate the result
  4.  Select the target file in the drop down below
  5. Again play to evaluate the same