BasicFuncOnCalc.java (bc99f727) BasicFuncOnCalc.java (ac2ddd9c)
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

--- 72 unchanged lines hidden (view full) ---

81 @Rule
82 public Logger log = Logger.getLogger(this);
83
84 @Rule
85 public TestName testname = new TestName();
86
87 private static DataSheet xmlResult;
88
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

--- 72 unchanged lines hidden (view full) ---

81 @Rule
82 public Logger log = Logger.getLogger(this);
83
84 @Rule
85 public TestName testname = new TestName();
86
87 private static DataSheet xmlResult;
88
89 private static int iterator = 100;
89 private static int iterator = 2;
90
91 private int i = 0;
92
93 /**
94 * @throws java.lang.Exception
95 */
96 @BeforeClass
97 public static void beforeClass() throws Exception {
90
91 private int i = 0;
92
93 /**
94 * @throws java.lang.Exception
95 */
96 @BeforeClass
97 public static void beforeClass() throws Exception {
98 xmlResult = new DataSheet(getFile("output/svt.xml"), true);
99 xmlResult.addRow("BasicFuncOnCalc", "Method", "Iterator", "Consumed Time(MS)", "Memory(VSZ)", "Memory(RSS)", "Handles(Windows Only)");
98 xmlResult = new DataSheet(getFile("output/svt.xml"));
99 xmlResult.addRow("Data", "Method", "No", "Consumed Time(MS)", "Memory(VSZ)", "Memory(RSS)", "Handles(Windows Only)");
100 }
101
102 @AfterClass
103 public static void afterClass() throws Exception {
104 app.stop();
105 }
106
107 @Before

--- 381 unchanged lines hidden (view full) ---

489 private void closeWithoutSaveSC() {
490 calc.menuItem("File->Close").select();
491 activeMsgBox.no();
492 sleep(2);
493 }
494
495 private void addRecord(int i, long start, long end) {
496 HashMap<String, Object> perf = aoo.getPerfData();
100 }
101
102 @AfterClass
103 public static void afterClass() throws Exception {
104 app.stop();
105 }
106
107 @Before

--- 381 unchanged lines hidden (view full) ---

489 private void closeWithoutSaveSC() {
490 calc.menuItem("File->Close").select();
491 activeMsgBox.no();
492 sleep(2);
493 }
494
495 private void addRecord(int i, long start, long end) {
496 HashMap<String, Object> perf = aoo.getPerfData();
497 xmlResult.addRow("BasicFuncOnCalc",testname.getMethodName(), i, (end - start),
497 xmlResult.addRow("Data",testname.getMethodName(), i, (end - start),
498 perf.get("vsz"), perf.get("rss"), perf.get("handles"));
499 }
500}
498 perf.get("vsz"), perf.get("rss"), perf.get("handles"));
499 }
500}