Contributions
Re: Execute tests based on different tags
I want to run tests which have tags either X OR Z , but the command which I was using can run only those tests which have tags both X AND Z : cmd.exe /C testrunner.bat -r -j "-fC:/Reports" "-RProject Report" "-Edefault" "-TTestCase X,Y" "C:\Dummy.xml" in that way my purpose won't solve. I got one solution to run tests that have tags either X OR Z by running the project two times: testrunner.bat -r "-RProject Report" -EDefault "-TTestCase X" ".......\XYZ\xyz.xml" testrunner.bat -r "-RProject Report" -EDefault "-TTestCase Y" ".......\XYZ\xyz.xml" The disadvantage of this :- the report which is generated for 1st project (having tags X) is overwrite by the 2nd project(having tag Y). By which we will not get total count of both tests.7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1KViews0likes0CommentsExecute tests based on different tags
I want to run all tests which belong to multiple tags from command line. For example I want to run tests which have tag X and Z. So I used below command: cmd.exe /C testrunner.bat -r -j "-fC:/Reports" "-RProject Report" "-Edefault" "-TTestCase X,Y" "C:\Dummy.xml" TagX Test1 Test2 Test3 TagY Test4 Test5 Test6 TagZ Test7 Test8 Test9 But running above command give me failure and show no test executed. can anyone please help me to run tests of different tags altogether?7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.1KViews0likes2Comments- 7 years agoPlace ReadyAPI QuestionsReadyAPI Questions6.1KViews0likes0Comments
Re: How to read JSON data from file and use it in request body ?
For your information, I tried with Json file in File Wait step and it worked!! Only curious to know how we can do that through Data source. I will get help from documentation link you Radford shared.7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes0CommentsRe: How to read JSON data from file and use it in request body ?
RadfordIt worked when I run the whole test case. File Wait is basically copying the whole data from file wherever needed and I am thankful that I learned it from both of you. Can you please guide me how we can do it using JSON data source as that is what I also somewhere needed in my test cases?7 years agoPlace ReadyAPI QuestionsReadyAPI Questions12KViews0likes2CommentsRe: How to read JSON data from file and use it in request body ?
I did the points which you both mentioned, but couldn't get the file data in request body.Steps I followed: 1) Added 'File Wait' step(Refer attached screenshot File_WaitStep) 2) Browse the file which I want to load in request body i.e. ...\...\TestData.json 3) In Request body of the api step, called the get data i.e. ${File Wait#fileContent} ((Refer attached screenshot 'RestApiStep') 4) Play the step 5) Didn't get request body in api call (Refer attached screenshot RawDataRequest) Please guide me!!7 years agoPlace ReadyAPI QuestionsReadyAPI Questions12KViews0likes4CommentsHow to read JSON data from file and use it in request body ?
I have one JSON file which contains following data: { "registrationKey": "sadnskjadsdkfj", "firstName": "Renuka", "lastName": "Saini", "email": "reom@gmail.com", "phone": "1234567890", "notes": "testing", "isvApiKey": "87779" } This data I need to put in one of the api's request body. Can anybody help be how to load this data using data source 'JSON'?Solved7 years agoPlace ReadyAPI QuestionsReadyAPI Questions12KViews0likes10Comments