Question
Tech Mahindra Ltd
CA
Last activity: 6 Nov 2018 20:02 EST
Setting the Value for StartPage
I have configured the sample web application to login and i have set the value in StartPage and working fine.how can i set the StartPage value through configuration.
Please provide the steps to do the same.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Tech Mahindra Ltd
CA
I am able to Login as specified in the configuration file.You are correct as per the screen shot but property is not Configuration File, it is Configuration option which shows list of configuration we have created.
Thanks for your help
Pegasystems Inc.
US
Are you asking,
1. how to set a value for the StartPage through a Configuration Item in your project?
2. how to set the StartPage through automation?
3. how to set the StartPage through some other file? (if so, please elaborate on this)
Tech Mahindra Ltd
CA
Can you please explain for below
1. how to set a value for the StartPage through a Configuration Item in your project?
Pegasystems Inc.
US
- Add your configuration item to your project.
- Go to your Adapter Properties
- Find StartPage and Right-Click the StartPage Property.
- In the Context Menu, there is an option to "Configure..."
- Choose this option and set the value and select the Configuration item you want the value associated with.
Boom. Done. Repeat for all configurations that you want.
Tech Mahindra Ltd
CA
Thanks for the reply. I have already figured out all the above points but my question is where and how to refer those configuration files. after all the above configurations and when i run the application showing blank page as it is not able to identify which configuration file to use at run time.
Pegasystems Inc.
US
Ah ok, you must go to the Project Properties and there is a property under Application called Configuration File. Select the item that you want under this property.
Tech Mahindra Ltd
CA
Hey ..thanks for the reply but i am not able to find the property..could you please provide sample screen shot.
Pegasystems Inc.
US
Right-Click the Project in the Solution Explorer and choose Properties and you should see the window shown in the screenshot.
Tech Mahindra Ltd
CA
Hi..seems some confusion here.when i open my configuration file i can see interation.xml as i am using in the application.my goal is to use startPage value from the configuration file and some where in the automation i need to refer the configuration file which i have created. Please see the steps and screen shots of application.
1. Created configuration file (DEV.os) with sample url.
2. Referred the Dev.os on the StartPage under properties.
3. Created automation to login into the application
when i debug the application showing blank page.
Note: when i set the StartPage value directly in the properties instead of configuration then it is working fine and able to Login.
Accepted Solution
Tech Mahindra Ltd
CA
I am able to Login as specified in the configuration file.You are correct as per the screen shot but property is not Configuration File, it is Configuration option which shows list of configuration we have created.
Thanks for your help