alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

JMeter example source code file (ReportPage.java)

This example JMeter source code file (ReportPage.java) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - JMeter tags/keywords

abstracttestelement, io, report_page_css, report_page_css, report_page_footer, report_page_header, report_page_index, report_page_index, report_page_intro, report_page_title, reportpage, reportpage, serializable, string, string

The JMeter ReportPage.java source code

/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
package org.apache.jmeter.testelement;

import java.io.Serializable;
import org.apache.jmeter.testelement.AbstractTestElement;
//import org.apache.jorphan.logging.LoggingManager;
//import org.apache.log.Logger;

/**
 * ReportPage
 *
 */
public class ReportPage extends AbstractTestElement implements Serializable {
    private static final long serialVersionUID = 240L;

//    private static final Logger log = LoggingManager.getLoggerForClass();

    public static final String REPORT_PAGE_TITLE = "ReportPage.title";
    public static final String REPORT_PAGE_INDEX = "ReportPage.index";
    public static final String REPORT_PAGE_CSS = "ReportPage.css";
    public static final String REPORT_PAGE_HEADER = "ReportPage.header";
    public static final String REPORT_PAGE_FOOTER = "ReportPage.footer";
    public static final String REPORT_PAGE_INTRO = "ReportPage.intro";

    /**
     * No-arg constructor.
     */
    public ReportPage() {
    }

    public static ReportPage createReportPage(String name) {
        ReportPage page = new ReportPage();
        return page;
    }

    public String getTitle() {
        return getPropertyAsString(REPORT_PAGE_TITLE);
    }

    public void setTitle(String title) {
        setProperty(REPORT_PAGE_TITLE,title);
    }

    public boolean getIndex() {
        return getPropertyAsBoolean(REPORT_PAGE_INDEX);
    }

    public void setIndex(String makeIndex) {
        setProperty(REPORT_PAGE_INDEX,makeIndex);
    }

    public String getCSS() {
        return getPropertyAsString(REPORT_PAGE_CSS);
    }

    public void setCSS(String css) {
        setProperty(REPORT_PAGE_CSS,css);
    }

    public String getHeaderURL() {
        return getPropertyAsString(REPORT_PAGE_HEADER);
    }

    public void setHeaderURL(String url) {
        setProperty(REPORT_PAGE_HEADER,url);
    }

    public String getFooterURL() {
        return getPropertyAsString(REPORT_PAGE_FOOTER);
    }

    public void setFooterURL(String url) {
        setProperty(REPORT_PAGE_FOOTER,url);
    }

    public String getIntroduction() {
        return getPropertyAsString(REPORT_PAGE_INTRO);
    }

    public void setIntroduction(String intro) {
        setProperty(REPORT_PAGE_INTRO,intro);
    }

}

Other JMeter examples (source code examples)

Here is a short list of links related to this JMeter ReportPage.java source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.