使用 Websphere Portal 脚本界面需要什么?
我的问题
在过去的几周里,我不得不多次更改 Websphere Portal 中的一些配置设置。现在变得很无聊,我想用一个小脚本来代替自己。
我需要访问管理页面部分并进入/激活一些内容节点。
- 登录
- 导航到管理页面
- 搜索唯一名称
- 单击激活/*停用*链接
- 确认对话框
- 注销
我想编写此脚本 我为此创建了一个 Selenium脚本
,但这仍然涉及打开 Firefox,将 Selenium 脚本加载到 Selenium IDE 中,提供密码(因为当我将其保存到脚本中时我感觉很脏)并在所有 3 个集群上运行它。
我读到了有关 Portal 脚本的内容,我想尝试一下。但不幸的是,我的计算机上只安装了 Websphere 应用程序服务器,因此只有 wsadmin.bat/sh 可供我使用。
运行 Websphere Portal 脚本需要什么?
我需要使用一个脚本 wpscript.bat/sh 。我必须在本地计算机上安装Websphere Portal吗?有我可以使用的最小设置吗?我可以只复制一些 JAR 并继续吗?
My Problem
I had to change some config settings in Websphere Portal several times over the last few weeks. It gets boring now and I want to replace myself with a little script.
I need access to the section Manage pages and in/activate some content nodes.
- log in
- navigate to Manage pages
- search for a unique name
- click the Activate/*Inactivate* link
- confirm the dialog
- log out
I want to script this task
I created a Selenium script for this, but this still involves opening Firefox, loading the Selenium script into the Selenium IDE, provide the password (because I feel dirty when I save it into the script) and run it on all 3 clusters.
I read about Portal scripting and I want to try that. But unfortunatly I only have Websphere Application server installed on my machine and therefore only wsadmin.bat/sh is available for me.
What do I need to run Websphere Portal scripts?
There is a script wpscript.bat/sh that I need to use. Do I have to install Websphere Portal on my local machine? Is there a minimal setup that I can use? Can I just copy some JARs and go on?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
XMLAccess 正是您所寻找的。 XMLAccess 是Portal Server 附带的一个命令行工具。它允许您连接到本地或远程门户服务器并执行部署 portlet、添加/删除页面、设置参数、激活/停用页面等任务。XMLAccess
使用基于 XML 的文件来管理任务。
在哪里?
查看'PORTAL_INSTALL_DIR/Portal Server/bin目录'
如何启动XMLAccess?
请参考IBM Portal InfoCenter 了解详细说明。
XMLAccess XML 文件是什么样的?
您的门户安装中有一些示例。查看
PORTAL_INSTALL_DIR/Portal Server/doc/xml-samples
。XMLAccess is what you are looking for. XMLAccess is a command line tool which comes with the Portal Server. It allows you to connect to a local or remote portal server and execute tasks like deploy portlets, add / remove pages, set parameters, activate / inactivate pages, etc.
XMLAccess uses XML based files to administrate tasks.
Where is it?
Look in the 'PORTAL_INSTALL_DIR/Portal Server/bin directory'
How to start XMLAccess?
Please refer the IBM Portal InfoCenter for detailed description.
How does a XMLAccess XML file looks like?
There are examples in your portal installation. Look at
PORTAL_INSTALL_DIR/Portal Server/doc/xml-samples
.