Пример #1
0
        public void TestCommons_Setup(string automationConfigs)
        {
            AutomatedLogger.Log("Entering the Common Setup method");

            //Read the Test Configs (including the ones in app.config)
            TestConfigs.Init(automationConfigs);
            ApplicationConfigs.ReadConfigs(TestConfigs.PathOfCurrentContext);

            //Start a new Browser : Initialize
            ActiveBrowser = new AutomatedBrowser(TestConfigs.Browser, isGridEnabled: false);

            //Open Website in the browser started by Selenium
            if (!string.IsNullOrEmpty(TestConfigs.Url))
            {
                AutomatedActions.NavigationActions.NavigateToUrl(TestConfigs.Url);

                // Login
                //WindowsLogin();
                AutomatedActions.WindowActions.Maximize();
            }



            AutomatedLogger.Log("Exiting Common Setup method");
        }//end method Common Setup
Пример #2
0
    // Use this for initialization
    void Start()
    {
        //message = text.GetComponent<Text>();
        Env = new ApplicationConfigs();

        // Twitter設定
        Twity.Oauth.consumerKey       = Env.CONSUMER_KEY;
        Twity.Oauth.consumerSecret    = Env.CONSUMER_SECRET;
        Twity.Oauth.accessToken       = Env.ACCESS_TOKEN;
        Twity.Oauth.accessTokenSecret = Env.ACCESS_TOKEN_SECRET;
    }
Пример #3
0
 //コンストラクタ
 public Model()
 {
     _value = new ReactiveProperty <string>();
     Env    = new ApplicationConfigs();
 }
Пример #4
0
 // Use this for initialization
 void Start()
 {
     Env = new ApplicationConfigs();
 }