Contributions
How do I plug in log4j framework for custom codegen modules
I am trying to create a custom codegenerator in java using swagger-codegen 3.0.21 version.I see that it uses org.sl4j-api/ext/simple version 1.7.12. However, I need to use log4j-api-2.10.0 to integrate it with my existing source code. I tried including 'org.slf4j:slf4j-log4j121.7.12' 'org.apache.logging.log4j:log4j-slf4j-impl:2.10.0' // bridge but I am not getting the log files generated. I am using lo4j2.json (a json based configuration file) and I am certain that it works directly with log4j2 as it is being used in my other projects. How can I make this work ? I want to generate logging files from log4j framework. Appreciate any response. Thanks.584Views0likes1CommentCan I define a custom attributes as part of CodegenParameter
I am trying to define a custom code generator for my area by extending the DefaultCodegen and implementing the CodegenConfig interface. I have a custom rest-api client that I have customised to the needs of my product and I am trying to generate mycustom-api-client code for which, I need to define some special parameters, ideally CodegenParameter so that I can perform some conditional logic in my code-generator implementation. How can I add more attributes/parameters to CodegenParameter or any CodegenModelType ? or can I extend the CodegenParameter ?Report Generation through Command Line
Hi, I am trying to generate a custom report through command line using the following :: "C:\Program Files\SmartBear\soapUI-Pro-4.5.0\bin\loadtestrunner.bat" -e"http://xxxxxxx" -s"Web_Services_Automation" -r -n"1" -fD:\Web_Services\SoapUITests -FPDF -Rmy_report -I "D:\\WS_BuildAutomation\\WebServices_Project.xml" where "my_report" is the customized report template that I have made. When I run the test suite using the SoapUI Launch Test Runner, it completes successfully & generates my reports. But when I trigger it through command line, I get the following errors on the prompt ---- net.sf.jasperreports.engine.design.JRValidationException: Report design not valid : 1. Parameter not found : TestSuiteTestCaseResults 2. Parameter not found : TestSuiteTestCaseResults 3. Parameter not found : TestSuiteMetrics 4. Parameter not found : TestSuiteTestCases at net.sf.jasperreports.engine.design.JRAbstractCompiler.verifyDesign(JRAbstractCompiler.java:258) at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:140) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:215) at com.eviware.soapui.reporting.engine.jasper.GenerateJasperReport.generateJasperReport(SourceFile:318) at com.eviware.soapui.reporting.engine.jasper.JasperReportEngine$GeneratableJasperReport.generate(SourceFile:123) at com.eviware.soapui.SoapUIProLoadTestRunner.runWsdlLoadTest(SourceFile:119) at com.eviware.soapui.tools.SoapUILoadTestRunner.runTestCase(SoapUILoadTestRunner.java:360) at com.eviware.soapui.tools.SoapUILoadTestRunner.runSuite(SoapUILoadTestRunner.java:332) at com.eviware.soapui.tools.SoapUILoadTestRunner.runRunner(SoapUILoadTestRunner.java:266) at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:158) at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:89) at com.eviware.soapui.SoapUIProLoadTestRunner.main(SourceFile:46) So what additional steps, if any, do I need to perform in order to run this through command line. Could anyone please provide some help on the same. Thanks, Rohan Palkar911Views0likes0CommentsAdding Item to Report Metric
Hi, I have a test Suite property called 'Validation_Result' which is set using groovy scripts when the test case is run. In my customized report I am using the following - <dataSourceExpression>$P{TestSuiteMetrics}</dataSourceExpression> <subreportExpression class="java.lang.String">"subreport:MetricsReport"</subreportExpression> Now I want to add this parameter 'Validation_Result' to the above Metric Parameters which shows the assertion count, failed assertion count etc. so that it could be displayed as following - Assertion count = xx Failed Assertion count = yy Validation Result = zz I used the following in the report script of the test suite, but I am not sure if it's correct - report.addMetric( "Data Validation Result", testSuite.getProperty( "Validation_Result")) I thought of adding this parameter to the reporting parameter, but again as I could see it, it would be displayed separately & not as part of the metric statistics... Could anyone please guide me as to how could it be achieved. Thanks, Rohan Palkar771Views0likes0CommentsCustomizing Reports through SoapUI
Hi, I am new to the reporting concepts used in SoapUI. So needed some help in customizing the reports. I went through the support topics mentioned on the website but couldn't figure out how to modify the particular subreports. I generated subreport 'MetricsReport'. Here I can see that there are 3 sections - Overview, TestCase Summary, Base Metrics. Now I wanted to skip the 'Test Case Summary' section & just have the other two in my report. I checked the main & the sub-report but the only thing that I could see was that this was probably governed by the field 'category' which was mentioned like $F{category}. If I understand this correct & that this is an in-built field parameter used by SoapUI, could I modify it. And if not, is there any workaround for the same. Thanks, Rohan Palkar751Views0likes0CommentsCustomizing Reports through SoapUI
Hi, I am new to the reporting concepts used in SoapUI. So needed some help in customizing the reports. I went through the support topics mentioned on the website but couldn't figure out how to modify the particular subreports. I generated subreport 'MetricsReport'. Here I can see that there are 3 sections - Overview, TestCase Summary, Base Metrics. Now I wanted to skip the 'Test Case Summary' section & just have the other two in my report. I checked the main & the sub-report but the only thing that I could see was that this was probably governed by the field 'category' which was mentioned like $F{category}. If I understand this correct & that this is an in-built field parameter used by SoapUI, could I modify it. And if not, is there any workaround for the same. Thanks, Rohan Palkar12 years agoPlace ReadyAPI QuestionsReadyAPI Questions1KViews0likes0Comments