Problem with a setup in config file in Advanced training Assignment no. 1


#1

Hi
I dont understand how to setup config.xlsx file in this lesson.

Where should I fill the fields “username” and “password” in config file?
And how to extract this values into framework ?


#2

username and password is stored in Orchestrator when you create the asset in Orchestrator.
To extract this values into framework, invoke “Framework\GetAppCredentials.xaml” and for input parameter in_Credential pass in the asset name you created in orchestrator. And this will return as parameter out_username and out_password which is the retrieved username and password from the asset you created in orchestrator.


#3

Thank you!
But what should i specify in “value” in GetAppCredentials ? Name of Asset “System1_Credential” doesnt match.


#4

Can you answer me?


#5

Value would be the asset name you specified in config file. e.g. in_config(“assetname”).toString
Hope this helps. thanks.


#6

Error


#7

You should get credentials from Assets in the orchestrator not from the config file in this particular scenario


#8

Thanks Prankurjoshi, I am also facing the same problem with in_config(assetname). It shows the compiler error and in_config has to be declared…but why is that not supposed to get credential from config file.


#9

you can get credentials from the Config file as well but fetching them from Orchestrator would be more secure