Conversion.java (329fd865) | Conversion.java (9edf8282) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 73 unchanged lines hidden (view full) --- 82 83 private static int counter = 0; 84 85 @BeforeClass 86 public static void beforeClass() throws Exception { 87 aoo.setUnoUrl(OpenOffice.DEFAULT_UNO_URL); 88 aoo.addArgs("-invisible", "-conversionmode", "-hidemenu"); 89 app = new UnoApp(aoo); | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 73 unchanged lines hidden (view full) --- 82 83 private static int counter = 0; 84 85 @BeforeClass 86 public static void beforeClass() throws Exception { 87 aoo.setUnoUrl(OpenOffice.DEFAULT_UNO_URL); 88 aoo.addArgs("-invisible", "-conversionmode", "-hidemenu"); 89 app = new UnoApp(aoo); |
90 result = new DataSheet(getFile("output/pvt_uno_conversion.xml"), "conversion"); 91 result.addRow("File","Scenario","File Size","Time Consumed After Closing","Time Consumed After Saving","Time Consumed After Loading"); | 90 result = new DataSheet(getFile("output/pvt_uno_conversion.xml")); 91 result.addRow("data", "File","Scenario","File Size","Time Consumed After Closing","Time Consumed After Saving","Time Consumed After Loading"); |
92 } 93 94 @AfterClass 95 public static void afterClass() throws Exception { 96 app.close(); 97 } 98 99 private String sourcePath = null; --- 31 unchanged lines hidden (view full) --- 131 String pathRepos = new File(repos).getCanonicalPath().replace("\\", "/") + "/"; 132 sourceFileId = pathSource.replace(pathRepos, ""); 133 log.info("Start [File: " + sourceFileId + "] [Size: " + (sourceFile.length() / 1024) + "KB] [Scenario: " + scenario + "]"); 134 app.start(); 135 } 136 137 @After 138 public void after() throws Exception{ | 92 } 93 94 @AfterClass 95 public static void afterClass() throws Exception { 96 app.close(); 97 } 98 99 private String sourcePath = null; --- 31 unchanged lines hidden (view full) --- 131 String pathRepos = new File(repos).getCanonicalPath().replace("\\", "/") + "/"; 132 sourceFileId = pathSource.replace(pathRepos, ""); 133 log.info("Start [File: " + sourceFileId + "] [Size: " + (sourceFile.length() / 1024) + "KB] [Scenario: " + scenario + "]"); 134 app.start(); 135 } 136 137 @After 138 public void after() throws Exception{ |
139 result.addRow(sourceFileId, scenario, sourceFile.length(), closeTime, saveTime, loadTime); | 139 result.addRow("data", sourceFileId, scenario, sourceFile.length(), closeTime, saveTime, loadTime); |
140 log.info("Result [After Closing: " + closeTime + "] [After Saving: " + saveTime + "] [After Loading: " + loadTime + "]"); 141 if (closeTime < 0) { 142 app.close(); 143 } else if ("file".equalsIgnoreCase(clean) && counter % repeat == 0) { 144 app.close(); 145 } 146 } 147 --- 28 unchanged lines hidden --- | 140 log.info("Result [After Closing: " + closeTime + "] [After Saving: " + saveTime + "] [After Loading: " + loadTime + "]"); 141 if (closeTime < 0) { 142 app.close(); 143 } else if ("file".equalsIgnoreCase(clean) && counter % repeat == 0) { 144 app.close(); 145 } 146 } 147 --- 28 unchanged lines hidden --- |