Quicker development/debugging/testing turnaround with customised PetraClient startup: Difference between revisions
No edit summary |
|||
Line 11: | Line 11: | ||
The 'AutoLogin' feature allows the specification of a username and password which is then used when the OpenPetra Client starts up. The OpenPetra Client automatically logs in with these credentials and presents the Main Menu screen. | The 'AutoLogin' feature allows the specification of a username and password which is then used when the OpenPetra Client starts up. The OpenPetra Client automatically logs in with these credentials and presents the Main Menu screen. | ||
''This means you don't have to type the credentials over and over again!'' | ''This means you don't have to type the credentials over and over again!'' | ||
Please note that this feature is disabled when the CheckBox 'Remeber the username' is ticked. | |||
=== Example === | === Example === | ||
Line 22: | Line 24: | ||
=== Temporary Suppression of Feature === | === Temporary Suppression of Feature === | ||
To temporarily suppress the execution of this feature although it is specified either as Command Line Argument or in the .config file or in both, press and keep the ''<ALT>'' key depressed immediately after starting the OpenPetra Client and before the login screen appears. | To temporarily suppress the execution of this feature although it is specified either as Command Line Argument or in the .config file or in both, press and keep the ''<ALT>'' key depressed immediately after starting the OpenPetra Client and before the login screen appears. | ||
== Startup Feature ''TestAction'' == | == Startup Feature ''TestAction'' == |
Revision as of 10:51, 19 July 2011
Overview of Startup Features
While developing/debugging/testing a certain function of OpenPetra, developers/testers often need to start PetraClient repeatedly, for example while introducing a new functionality or while fixing a Bug.
To make the turnaround of developing/debugging/testing cycles faster, OpenPetra can be configured to do things at startup for you, thereby saving a lot of time.
These startup features can be specified as Command Line Arguments or in the .config file, or both. If both are specified, the Command Line Arguments 'win', i.e override the features as specified in the .config file.
Startup Feature AutoLogin
The 'AutoLogin' feature allows the specification of a username and password which is then used when the OpenPetra Client starts up. The OpenPetra Client automatically logs in with these credentials and presents the Main Menu screen. This means you don't have to type the credentials over and over again!
Please note that this feature is disabled when the CheckBox 'Remeber the username' is ticked.
Example
Example for use as Command Line Argument:
-AutoLogin:demo -AutoLoginPasswd:demo
Example for use in the .config file:
<add key="AutoLogin" value="demo" /> <add key="AutoLoginPasswd" value="demo" />
Temporary Suppression of Feature
To temporarily suppress the execution of this feature although it is specified either as Command Line Argument or in the .config file or in both, press and keep the <ALT> key depressed immediately after starting the OpenPetra Client and before the login screen appears.
Startup Feature TestAction
The 'TestAction' feature allows the specification of a Screen and optionally of parameters for a screen. This screen is automatically launched when the Main Menu screen appears after the login. This means you don't have to go through the OpenPetra menu structure over and over again to launch the same screen that you are just working on!
Example
Example for use as Command Line Argument:
-TestAction:"Namespace=Ict.Petra.Client.MPartner.Gui,ActionOpenScreen=TFrmPartnerEdit,PartnerKey=43005002,ShowTabPage=petpDetails"
Example for use in the .config file:
<add key="TestAction" value="Namespace=Ict.Petra.Client.MPartner.Gui,ActionOpenScreen=TFrmPartnerEdit,PartnerKey=43005004,ShowTabPage=petpAddresses" />
Temporary Suppression of Feature
To temporarily suppress the execution of this feature although it is specified either as Command Line Argument or in the .config file or in both, press and keep the <CTRL> key depressed immediately after starting the OpenPetra Client and before the login screen appears.