All Downloads are FREE. Search and download functionalities are using the official Maven repository.

template.page.ftl Maven / Gradle / Ivy

Go to download

基于Selenium的自动化测试框架Phoenix,采用Java语言编写的。到目前为止,已经覆盖了WebUI自动化测试过程中需要的大部分功能封装。

The newest version!
package ${page.packageName};

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.suren.autotest.web.framework.core.ui.Button;
import org.suren.autotest.web.framework.core.ui.Text;
import org.suren.autotest.web.framework.core.ui.Selector;
import org.suren.autotest.web.framework.core.ui.FileUpload;
import org.suren.autotest.web.framework.core.ui.CheckBoxGroup;
import org.suren.autotest.web.framework.page.Page;

/**
 * @author suren
 * ${page.comment}
 */
@Component
public class ${page.name} extends Page {
<#list page.fields as field>
	/**
	 * ${field.comment}
	 */
	@Autowired
	private ${field.type} ${field.name};

	/**
	 * getter and setter methods zone
	 */
<#list page.fields as field>
	public ${field.type} ${field.getterMethod}()
	{
		return ${field.name};
	}
	public void ${field.setterMethod}(${field.type} ${field.name})
	{
		this.${field.name} = ${field.name};
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy