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,然后
新聞熱點
疑難解答