anand7892Occasional ContributorJoined 8 years ago10 Posts2 LikesLikes received1 SolutionView All Badges
ContributionsMost RecentMost LikesSolutionsRe: 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, Anand Re: Running complete project with different set of data HimanshuTayal I want to run all my test suite with set of data : Firstly execute all test suites with first set of data and when all suites execution got completed, then start executing all 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 reply Running 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, Anand running 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. Re: Adding a request Header in all rest request in different Suites Thanks I was expecting this kind of help. Re: 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: Run Groovy 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) } } } } Re: 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: Run Groovy 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) } } } } Re: Adding a request Header in all rest request in different Suites rao It would be better if you can give me steps to follow Adding 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 Thanks SolvedRe: How to add addtional HTTP header to all the Rest Requests 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 Thanks