Contributions
- 5.3KViews0likes0Comments
Re: Re: TestRunner - Unable To avoid running Disabled Step
I am running SOAPUI 3.0. Let me make it more precise I have following structure.. - TestSuite1 (disabled) - TestCase1 - TestSuite2 (enabled) - TestCase 2 when project is run, testsuite1 get executed too... and I get reports generated for it.. Thanks1.1KViews0likes0CommentsRe: Re: TestRunner - Unable To avoid running Disabled Step
It will not be possible for me to attach my project file here as of now.. Can you please try the same on any of the projects that you might have in your workspace. Just disable few steps and try running the project using TestRunner. You will notice that the disables step also gets executed. Please let me know if you donot observed the above mentioned behavior. thanks Gurpreet1.1KViews0likes0Comments- 1.1KViews0likes0Comments
Re: TestRunner - Unable To avoid running Disabled Step
Hi, I am trying to run my TestSuite using TestRunner tool from command line using command "" My one of the TestCase has a couple of disabled TestSteps which I want to avoid running. Hence I have disabled them. But when I run the TestCase using TestRunner as mentioned above, all the TestSteps get executed. Which causes my Test to fail. Shouldn't the disabled testcases be exempted from running. Please let me know if there is away we can achieve the same. Note: I cannot remove the disabled teststep from my testcase as it is a very important part of it. Thanks Gurpreet1.9KViews0likes6Comments- 1.1KViews0likes0Comments
Re: HOW TO CREATE dynamically newTestSuite, newTestCase and new TestStep in project
Hey awesome script.. thanks Is there a way I can supress the UI boxes that emerge. ie. the box where we need to select operation to invoke for request.. I need to do that too using my groovy script. Is there a way.773Views0likes0CommentsRe: Property Transfer Using Groovy
Yes Nebojsa, I want to automate the stuff as much as possible. My request have quite a large amount attributes(40-50). Hence to create property transfer for all of them is a tedious task. So I am being lazy and tryin to automate that part too. I hope I am being reasonable. thanks5.3KViews0likes0CommentsRe: groovy script code for data driven testing
Hi Gaurav, I am using the script below for the same. Also find the kind of excel i am using attached. Thanks // JAVA CLASSES import java.io.File; import com.eviware.soapui.support.*; import java.util.*; import jxl.*; import java.lang.*; // VARIABLE TO HOLD THE DATA SHEET NAME // sDataSheetName = "header-inputs.xls" // TO CREATE VARIABLES TO HOLD THE RESQUEST VALUES def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ); def request = groovyUtils.getXmlHolder("deployCampaign_test#Request"); // DECLARING VARIABLES FOR GLOBAL PROPERTIES def projectdir = context.expand('${#Global#PATH}'); Workbook workbook = Workbook.getWorkbook(new File("E:/xl-input/inputs.xls")); Sheet sheet = workbook.getSheet("Input"); rowcount = sheet.getRows(); colcount = sheet.getColumns(); // TO GET THE TEST CASE NAME def testCase = testRunner.getTestCase(); Name = testCase.getName(); // CHECK WHETHER THE TESTCASE NAMES MATCH for (tc_row in 1..rowcount) { Cell a1 = sheet.getCell(0,tc_row); String s1 = a1.getContents(); // UISupport.showInfoMessage("${s1}") if ( Name == s1 ) { current_row = tc_row; break; } } // TO CHECK FOR THE HEADER TAGS for (tc_column in 2..colcount-1) { Cell a2= sheet.getCell(tc_column-1,0); String s2 = a2.getContents(); //UISupport.showInfoMessage("${s2}") if (s2 != "" ) { Cell a3= sheet.getCell(tc_column-1,current_row); String s3 = a3.getContents(); //UISupport.showInfoMessage("${s3}") tag = s3; //SETS INPUT VALUES IN CORRESPONDING NODE request.setNodeValue("//icom:" + s2, "${tag}"); request.updateProperty(); } }15 years agoPlace ReadyAPI QuestionsReadyAPI Questions6.6KViews0likes0Comments