cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Record UI Script from logon to exit

Highlighted

Record UI Script from logon to exit

I tried the following



D:\ptc\ilink34\proiclient\bin\ilink.bat -- -r test.java



It produces a test.java file but it never even get's to the login portion of
the script, it just stops at the application manager. The command I use to
launch the script is



D:\ptc\ilink34\proiclient\bin\ilink.bat -- -p test.class





Below is the sample test.java file, this is on a test system, so password is
just default INTRALINK/INTRALINK



// Version: Intralink v.3.4.M020 (2005110-I6.0.0.210)

// Start Macro Recording

import com.ptc.intralink.client.script.*;

import com.ptc.intralink.script.*;



public class test extends ILIntralinkScript {

ILIntralinkScriptInterface IL =
(ILIntralinkScriptInterface)getScriptInterface();



private void run0 () throws Exception {

IL.openWindow( "Login", "PTC Training User", null ); // recorded step: 1

IL.setLoginParameter( "INTRALINK_USER", "INTRALINK" ); // recorded step:
2

IL.setLoginParameter( "INTRALINK_PASSWD", "INTRALINK" ); // recorded
step: 3

IL.ok( ); // recorded step: 4

IL.createWorkspace( "test_ws", " ); // recorded step: 5

IL.openWindow( "Workspace", "test_ws", null ); // recorded step: 6

IL.selectTree( "FTWS", "test_ws" ); // recorded step: 7

IL.setCurrentViewer( "WSObjects" ); // recorded step: 8

IL.closeWindow( ); // recorded step: 9

IL.exit( ); // recorded step: 10

} // End of run0



public void run () throws Exception {

run0 (); // recorded

} // End of function



} // End Macro Recording



1 REPLY 1

RE: Record UI Script from logon to exit



This is what I have used for several versions:

String loginname = "INTRALINK";
String password = "INTRALINK";

IL.openWindow( "Login", loginname, password );
IL.ok( );


Marc




In Reply to:

I tried the following



D:\ptc\ilink34\proiclient\bin\ilink.bat -- -r test.java



It produces a test.java file but it never even get's to the login portion of
the script, it just stops at the application manager. The command I use to
launch the script is



D:\ptc\ilink34\proiclient\bin\ilink.bat -- -p test.class





Below is the sample test.java file, this is on a test system, so password is
just default INTRALINK/INTRALINK



// Version: Intralink v.3.4.M020 (2005110-I6.0.0.210)

// Start Macro Recording

import com.ptc.intralink.client.script.*;

import com.ptc.intralink.script.*;



public class test extends ILIntralinkScript {

ILIntralinkScriptInterface IL =
(ILIntralinkScriptInterface)getScriptInterface();



private void run0 () throws Exception {

IL.openWindow( "Login", "PTC Training User", null ); // recorded step: 1

IL.setLoginParameter( "INTRALINK_USER", "INTRALINK" ); // recorded step:
2

IL.setLoginParameter( "INTRALINK_PASSWD", "INTRALINK" ); // recorded
step: 3

IL.ok( ); // recorded step: 4

IL.createWorkspace( "test_ws", " ); // recorded step: 5

IL.openWindow( "Workspace", "test_ws", null ); // recorded step: 6

IL.selectTree( "FTWS", "test_ws" ); // recorded step: 7

IL.setCurrentViewer( "WSObjects" ); // recorded step: 8

IL.closeWindow( ); // recorded step: 9

IL.exit( ); // recorded step: 10

} // End of run0



public void run () throws Exception {

run0 (); // recorded

} // End of function



} // End Macro Recording