Hey nmrao
yeah - I'm still talking about the same thing - I'm getting boring - right? :)
So - yeah - I have a REST GET API where the query parameters on the request correspond to attributes of tables. This will be for a reference data service providing lots of different internal systems with referencedata when required.
So - say I have a table called 'PersonalDetails' with the following attributes: ID, firstname, lastname, country, phonenumber and multiple records populate this table - but for now lets use the following data
ID = 123456
firstname = rich
lastname = jones
country = uk
phonenumber = 07958 985 000
In the system - namespace is a grouping of tables and dataset is an alias for tables - the following GET URI
my GET URI --> http://help.azurewebsites.net/api/1/{namespace}/{dataset}?queryparm1=value&queryparm2=value
the RAW of the above would be as follows:
http://help.azurewebsites.net/api/1/biology/PersonalDetails?firstname=rich&lastname=jones
Now - cos I can't parameterize the QueryParm names (values I can parameterize, but not the names) with the OTB functionality - the only option left to me is to hardcode multiple REST requests in the Projects section of ReadyAPI! essentially hardcoding the QueryParameters. I have 1500 tests at the moment - thats a lot of requests in my project.
Hence the reason I'm trying to put something together that allows me to call the queryparms and values to build the query string of my GET request from say a Properties step.
For example - if I can query the table and extract the columns and a single record's values - I can build a Properties step containing all attributes and the values and then hopefully I can build the REST requests QueryParameters from the attributes and values set in the Properties step
(OR - I can just create a single properties file at the start and load in the table attributes and 1 record's values for later use)
I hope I've been clear - I know I tend to ramble a bit - but its to try and ensure I've been clear in my query.
Thanks for providing the URL - I have questions about this - but I'll ask in a separate post
Again thanks to all and Rao for helping me out so much! I even submitted a support call to SmartBear - but they don't support groovy coding so I know they're just gonna reject my support request - but I thought it was worth a shot!
richie