distributedlife

passionate about everything

Shorthand Methods in HP Service Test Published by Ryan Boucher @ 11:55 pm

lr_save_string and lr_eval_string get used a lot in my day to day service testing. So much so that I got sick of typing them and added two defines to my library.


#define lr_get lr_eval_string
#define lr_set lr_save_string

As well as being less to type it also reduces the line length helping readability for longer lines.


void ConfigureMethod (const char* Method)
{
    lr_set (Method, "Method") ;

    lr_set (lr_get ("{Method}Response"), "Response");
    lr_set (lr_get ("{Method}"), "HPResponse");
    lr_set (lr_get ("{Method}Result"), "Result");
}
My Mug Ryan Boucher is a Software Inquisitor and is passionate about it. You can find a whole raft of articles and anecdotes about software testing and other topics he gets excited about.
Tags , , , , , , ,