Ejemplo n.º 1
0
        // Start Session and Close Session prepare/finalize the log file
        public void StartSession()
        {
            FlickrAddon.GetUniqueKey(10);
            Logger.record("[StartSession]: Session configuration starting", "Session", "info");

            startingTime    = DateTime.Now;                                                                   // The time the session started is used for many things, like knowing the session file name
            sessionFile     = startingTime.ToString("yyyyMMdd_HHmmss") + "_" + FlickrAddon.hashcode + ".csv"; //HASCODE VARIABLE ADDED__________<-------######
            sessionFileFull = workingDir + sessionFile;                                                       // All files should be written to a working directory -- be it current or not.
            SaveToSessionNotes(columnHeaders + "\n");                                                         // Headers of the notes table


            UpdateNotes("(Rapid Reporter version)", System.Windows.Forms.Application.ProductVersion);

            //TWITTERR!!!!
            // Writing hash code to log file.
            UpdateNotes("Hash Code", FlickrAddon.hashcode);

            // Writing the Twitter account name to log file if Twitter is enabled.
            if (TwitterAddon.ScreenName != null)
            {
                UpdateNotes("Twitter Account", TwitterAddon.ScreenName);
            }

            UpdateNotes("Session Reporter", tester);
            UpdateNotes("Hashcode", FlickrAddon.hashcode);  //HASCODE VARIABLE ADDED__________<-------#######
            UpdateNotes("Session Charter", charter);


            //TWITTER!!!!!
            // Writing Twitter Link to log file if Twitter is enabled.
            if (TwitterAddon.twitter)
            {
                UpdateNotes("Twitter Link", "https://twitter.com/#!/search?q=%23" + FlickrAddon.hashcode);
            }
        }
Ejemplo n.º 2
0
        // Start Session and Close Session prepare/finalize the log file
        public void StartSession()
        {
            FlickrAddon.GetUniqueKey(10);
            Logger.record("[StartSession]: Session configuration starting", "Session", "info");

            startingTime    = DateTime.Now;                                                                   // The time the session started is used for many things, like knowing the session file name
            sessionFile     = startingTime.ToString("yyyyMMdd_HHmmss") + "_" + FlickrAddon.hashcode + ".csv"; //HASCODE VARIABLE ADDED__________<-------######
            sessionFileFull = workingDir + sessionFile;                                                       // All files should be written to a working directory -- be it current or not.
            SaveToSessionNotes(columnHeaders + "\n");                                                         // Headers of the notes table
            UpdateNotes("(Rapid Reporter version)", System.Windows.Forms.Application.ProductVersion);
            UpdateNotes("Session Reporter", tester);
            UpdateNotes("Hashcode", FlickrAddon.hashcode);  //HASCODE VARIABLE ADDED__________<-------#######
            UpdateNotes("Session Charter", charter);
        }
Ejemplo n.º 3
0
 public void TestMethod1()
 {
     m_flickrAddon = new FlickrAddon();
     m_session = new Session();
 }