我想创建一个子报告(report1_subreport3.jrxml从主报告()report1.jrxml使用iReport的设计师(可以使用),空数据源).主报表详细信息区段包含静态文本("主报表"),子报表元素和子报表在其对应的详细信息区域中包含静态文本("子报表")
但是,单击主报表的预览选项卡仅显示静态文本"主报表" 不显示子报表的静态文本("子报表").
我还浏览了http://community.jaspersoft.com/questions/524978/empty-subreport-xml-datasource-ireport这个链接,但仍然面临着这个问题.
下面是report1.jrxml
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="report1" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="20036b98-ef64-4dea-8345-b89bcd8f2671">
<property name="ireport.zoom" value="1.0"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="68"/>
<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA["D:\\soapReport\\jasperReport\\"]]></defaultValueExpression>
</parameter>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="79" splitType="Stretch"/>
</title>
<pageHeader>
<band height="35" splitType="Stretch"/>
</pageHeader>
<columnHeader>
<band height="61" splitType="Stretch"/>
</columnHeader>
<detail>
<band height="125" splitType="Stretch">
<staticText> …Run Code Online (Sandbox Code Playgroud) 始终建议在DesiredCapabilities中设置firefox配置文件,并将其传递到集线器正在运行的线路.如下
DesiredCapabilities caps = DesiredCapabilities.firefox();
FirefoxProfile profile=new FirefoxProfile(new File("Local Path to firefox profile folder"));
caps.setCapability(FirefoxDriver.PROFILE, profile);
URL url = new URL("http://localhost:4444/wd/hub");
WebDriver driver= new RemoteWebDriver(url,caps );
Run Code Online (Sandbox Code Playgroud)
但是,对于每个硒测试案例,将大量的87-90 mb配置文件信息通过http发送到集线器,从而减慢了测试用例的执行速度.
我尝试"Dwebdriver.firefox.profile=E:\\Firefox_Profile_Location":"",在json节点配置文件中使用属性配置网格节点,如下所示.
{
"configuration":
{
.//Other Settings
.//Other Settings
.//Other Settings
"Dwebdriver.firefox.profile=E:\\Firefox_Profile_Location":"",
"maxSession":7,
"registerCycle":5000,
"register":true
},
"capabilities":
[
{"browserName":"firefox",
"seleniumProtocol":"WebDriver",
"maxInstances":5,
"platform":"VISTA"
}
]
}
Run Code Online (Sandbox Code Playgroud)
但运行上述配置会导致错误.
WebDriverException:未找到系统属性"webdriver.firefox.profile"中命名的Firefox配置文件"E:\ Firefox_Profile_Location"
高级感谢有关如何从节点端配置firefox配置文件的任何帮助.
我在使用XML作为数据源在报表摘要面板中创建表组件时遇到问题,最终报表仅显示空白行.
下面是我的名为ProjectXML.xml的 xml数据源
<testsuites>
<testsuite name="testsuite1"/>
<testsuite name="testsuite2"/>
<testsuite name="testsuite3"/>
</testsuites>
Run Code Online (Sandbox Code Playgroud)
下面是我的名为report12.jrxml的.jrxml文件
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="report12" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="bb749013-793e-4a97-a43a-08d89a11ce20">
<property name="ireport.zoom" value="1.0"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<style name="table">
<box>
<pen lineWidth="1.0" lineColor="#3300CC"/>
</box>
</style>
<style name="table_TH" mode="Opaque" backcolor="#F0F8FF">
<box>
<pen lineWidth="0.5" lineColor="#3300CC"/>
</box>
</style>
<style name="table_CH" mode="Opaque" backcolor="#BFE1FF">
<box>
<pen lineWidth="0.5" lineColor="#3300CC"/>
</box>
</style>
<style name="table_TD" mode="Opaque" backcolor="#FFFFFF">
<box> …Run Code Online (Sandbox Code Playgroud) 我无法通过 eclipse 导出向导创建普通的 jar(不可运行/不可执行),它只创建 jar 文件但依赖的 jar 没有导出,导致在从其他类调用导出的 jar 的方法时出错,请帮助
尝试了下面提到的解决方案
https://www.chromium.org/administrators/turning-off-auto-updates - 但不成功。
尝试了提到的解决方案来删除“更新”文件夹,但无法在下图指定的位置找到它
automation google-chrome updates chromium google-chrome-devtools
在执行soap请求测试步骤(在测试套件 - >测试用例下)之后通过testRunner.runTestStepByName(" Soap Request Name ")执行SoapUI
在soap请求执行testRunner.getStatus()返回RUNNING状态之后等待10秒.下面是groovy脚本(在同一测试套件下 - >测试用例)
import groovy.sql.Sql;
import com.eviware.soapui.model.testsuite.TestRunner.Status
testRunner.runTestStepByName("GetCitiesByCountry - Request 1")
sleep(10000)
log.info( "...${testRunner.getStatus()}...")
while ( testRunner.getStatus() == Status.RUNNING ) {
log.info(testRunner.getStatus())
}
Run Code Online (Sandbox Code Playgroud)
输出如下
Wed Apr 17 21:06:22 IST 2013:INFO:RUNNING
Wed Apr 17 21:06:22 IST 2013:INFO:RUNNING
Wed Apr 17 21:06:22 IST 2013:INFO:RUNNING
Wed Apr 17 21:06:22 IST 2013:INFO:RUNNING
Wed Apr 17 21:06:22 IST 2013:INFO:RUNNING
Wed Apr 17 21:06:22 IST 2013:INFO:RUNNING
.
.
continuing for infinite time...
Run Code Online (Sandbox Code Playgroud)
理想情况下, …