Contributions
Re: Running complete project with different set of data
richie Pleae find my answers inline You state you have 3 test suites - Login, TestSuite1, TestSuite2 - is that right? Right You have different users exercising the 3 different test suites....is that right? Right You want each of your users to exercise all 3 test suites - sequentially? Sequentially or parallel , both work for me Does a user need to exercise the Login test suite first? yes How is the user details saved? what consists user data? (i.e. is it just username? username/password? user/password/additional creds?) There are lots of parameter specific to user that will be used in subsequenet test suites. Are you asking how to set this up? - the approaches to datasources? how to pass the user details to the steps? Yes, i am asking how can i set this up Is it REST? SOAP? REST The title of your post is "Running complete project with different set of data" - does this mean you actually have >.1 project (.wsdl, .wadl, whatever) and you have a set of users that you want to use to exercise >1 project? I have 1 project and want to execute all my test suites , firstly for user1 and then for user2 and so on.. Let me know if you have any other questions. Thanks for your reply. Thanks, Anand6 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.8KViews0likes1CommentRe: Running complete project with different set of data
HimanshuTayal I want to run all my test suite with set of data : Firstly executeall test suites with first set of data and when all suites execution got completed, then startexecutingall test suites with second set of data and so on I know parametirization but not sure how to apply them for above scenario Thanks for reply6 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.8KViews0likes0CommentsRunning complete project with different set of data
There are n test suites in my project. 1. Login 2. Test suite1 3. Test suite 2 . . . Test Suite n Above test cases are user dependent and for every user we have different set of data. I want to run above all test case with different users i.e.with different set of data. Run All test suite for first user and then run all test suite for second user and so on.. Any leads will be appreciated. Thanks, Anand6 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.8KViews0likes6Commentsrunning test suits parallel and then sequential
Hi, I have complex project for API automation. I want to run few test suites in sequential, few in parallel order in one command. There are few test suites which are pre-requisites for other test suites that should run before any test suite. Please check attached screenshot and i am using SOAP UI Pro version. Please let me know for any additional information. Thanks in advance.7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews0likes1CommentRe: Adding a request Header in all rest request in different Suites
nmrao You could have given me more precise solution to save my time but seems like you are here to refer to only urls of SOAPUI So i wasted my few hours and find a better solution: Here is more precise solution to this: Problem: I wanted to add a header with name "Authorization" and value "${#project#token}"(stored at project level)' Solution: RunGroovy script and it will solve your problem. import com.eviware.soapui.impl.wsdl.teststeps.* import com.eviware.soapui.support.types.StringToStringMap def project = context.testCase.testSuite.project def token = "\${"+"#"+"Project"+"#"+"token}" log.info(token) def valueOf = { key -> testSuite.getPropertyValue( key ) } project.testSuiteList.each{ testSuite -> testSuite.testCaseList.each { testCase -> testCase.testStepList.each { testStep -> if( testStep instanceof WsdlTestRequestStep || testStep instanceof RestTestRequestStep ) { def headers = new StringToStringMap() headers.put("Authorization",token) log.info("Setting HTTP headers ${headers} in test case ${testCase.label}") testStep.testRequest.setRequestHeaders(headers) } } } }7 years agoPlace ReadyAPI QuestionsReadyAPI Questions7KViews2likes4CommentsRe: Using Groovy to set a HTTP header value
Here is more precise solution to this: Problem: I wanted to add a header with name "Authorization" and value "${#project#token}"(stored at project level)' Solution: RunGroovy script and it will solve your problem. i import com.eviware.soapui.impl.wsdl.teststeps.* import com.eviware.soapui.support.types.StringToStringMap def project = context.testCase.testSuite.project def token = "\${"+"#"+"Project"+"#"+"token}" ${#project#token} log.info(token) def valueOf = { key -> testSuite.getPropertyValue( key ) } project.testSuiteList.each{ testSuite -> testSuite.testCaseList.each { testCase -> testCase.testStepList.each { testStep -> if( testStep instanceof WsdlTestRequestStep || testStep instanceof RestTestRequestStep ) { def headers = new StringToStringMap() headers.put("Authorization",token) log.info("Setting HTTP headers ${headers} in test case ${testCase.label}") testStep.testRequest.setRequestHeaders(headers) } } } }22KViews0likes0CommentsAdding a request Header in all rest request in different Suites
I want to add a header in all the rest Request in my project The value that i need to put in the header is getting generated by login API. I am using Pro Version Can you suggest me steps to follow ThanksSolved7 years agoPlace ReadyAPI QuestionsReadyAPI Questions7.2KViews0likes9Comments