Test Drives 试驾之旅
2.1 Print10Test 打印10次测试
2.1.1 Situation 情况
This is a simple test equivalent to the perennial 'Hello World' program found in many tutorials.
The goal is to count from 0 to 9 and print the result to the screen.
这是一个简单的测试,与常见的在许多向导中的"Hello World"程序等价。目的在于
从0到9计数,并且打印结果到屏幕上去。
2.1.2 Preparation预备
2.1.2.1 Overview 概述
1) If the PowerFolder Server has not been started, start it now.
2) Log into the PowerFolder Console
3) Undeploy all scripts and web pages
4) Deploy the following script and web pages.
1) 假如PowerFolder服务器没有启动,那么启动它。
2) 登录进入PowerFolder控制台
3) 卸载所有脚本和Web页面
4) 发布下面的脚本和Web页面
Script:
- Print10Times
脚本:
Print10Times
Web Pages:
- StartPrint10Times
Web页面
- StartPrint10Times
2.1.2.2 How-To 怎样做
- Starting the PowerFolder Server. If you configured environment variable 'Java_HOME'
during installation, just double-click 'run_with_tomcat.bat' in Windows EXPlorer. Otherwise,
open a command console and make sure the environment variable 'JAVA_HOME' is set to base
Directory of the Java installation. Start the PowerFolder server by going to the directory then go
to the 'jboss' subdirectory then again go to the 'bin' subdirectory. Run program
'run_with_tomcat.bat'.
启动PowerFolder服务器。假如你在安装时配置了环境变量JAVA_HOME,在文件夹中双
击run_with_tomcat.bat。否则,打开一个命令行控制台,确认环境变量JAVA_HOME被设
置到Java安装的根目录。要启动PowerFolder服务器,移动到jboss子目录,再移动到
bin子目录。运行程序run_with_tomcat.bat。如下图。
- Logging into the PowerFolder Console. Open a web browser and go to the address
'http://localhost:8080/powerfolder/login'. Enter 'admin' for the user name and passWord, then
press 'Login'.
登录进入PowerFolder控制台。打开一个浏览器,移动到地址
'http://localhost:8080/powerfolder/login'.输入admin作为用户名和口令,按下
Login.
- Undeploying scripts and web pages. To undeploy scripts, from the PowerFolder Console open
'Administer' then open 'Scripts'. Check the boxes next to the scripts you want to undeploy under
the section 'Deployed Scripts' then click 'Remove Checked Scripts'. To undeploy web pages,
from the PowerFolder Console open 'Administer' then open 'Web Pages'. Check the boxes next
to the web pages you want to undeploy under the section 'Deployed Web Pages' then click
'Remove Checked Web Pages'.
卸载所有脚本和页面。为了卸载脚本,从PowerFolder控制台打开Administer,然后