Exemplo n.º 1
0
        public void initialize()
        {
            log("Runstamp [" + testRunStamp + "]");

            tGeneralRecord        = new modelSpiderTestGeneralRecord(testRunStamp, job);
            tGeneralRecord.parent = this;

            foreach (ISpiderEvaluatorBase evalBase in spiderList)
            {
                log("Assigning [" + evalBase.name + "] to [" + instanceID + "]");

                var tRecord = children.Add(evalBase);
                tRecord.parent       = this;
                tRecord.instanceID   = evalBase.name;
                tRecord.testRunStamp = testRunStamp;
                // evalBase.language = imbLanguageFramework.imbLanguageFrameworkManager.serbian.basic;

                tRecord.inititialize();
            }

            // log("Sample entries selected [" + sample.Count() + "] from [" + sample.usedGroups.Join(",") + "]");


            logBuilder.close();


            recordStart(testRunStamp, name);

            startChildRecord(spiderList.First(), spiderList.First().name);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes the specified a flags.
        /// </summary>
        /// <param name="aFlags">a flags.</param>
        /// <param name="macroScript">The macro script.</param>
        public void initialize(analyticJobRunFlags aFlags, analyticMacroBase macroScript)
        {
            log("Analytic macro script [" + GetType().Name + "] initialization started");
            log("Runstamp [" + testRunStamp + "]");

            logBuilder.open("tag", "Job initialization", "the system initial self-configuration");

            //imbSemanticEngine.imbSemanticEngineManager.cacheManagerForContentTreeBuilder.cacheLoadDisabled = (!aFlags.HasFlag(analyticJobRunFlags.enable_WebStructureCache));
            //imbSemanticEngine.imbSemanticEngineManager.cacheManagerForContentPage.cacheLoadDisabled = (!aFlags.HasFlag(analyticJobRunFlags.enable_NLPCache));
            //imbSemanticEngine.imbSemanticEngineManager.cacheManagerForHtmlContentPage.cacheLoadDisabled = (!aFlags.HasFlag(analyticJobRunFlags.enable_WebCache));

            checkList aFlagCheckList = new checkList(aFlags);

            //if (!sample.Any())
            //{
            //    sample = sciProject.getSamples(job.sampleTags, sampleTakeLimit, testRunStamp, sampleBlockOrdinalNumber); //sciProject.mainWebProfiler.webSiteProfiles.Where<webSiteProfile>(x => x.groupTags.Contains(job.sampleGroup.groupTag)).Take(sampleTakeLimit);// wpGroups.selectGroup(wpGroups.primarySample, terminal, profiler.webSiteProfiles, runstamp, "", false);
            //    log(sample.logMessage);
            //}

            //sample = new webSiteProfileSample(wbp, sciProject.mainWebProfiler, sciProject.mainWebProfiler.webSiteProfiles);
            //sample.usedGroups.Add(job.sampleGroup.groupTag);
            //sample.usedStamp = testRunStamp;
            //sample.usedSettings = sciProject.mainWebProfiler.sampler;
            if (!spiderList.Any())
            {
                spiderList = macroScript.helpMethodBuildSpiders(job, sciProject);
            }

            tGeneralRecord        = new modelSpiderTestGeneralRecord(testRunStamp, job);
            tGeneralRecord.parent = this;

            foreach (ISpiderEvaluatorBase evalBase in spiderList)
            {
                log("Assigning [" + evalBase.name + "] to [" + instanceID + "]");

                var tRecord = children.Add(evalBase);
                tRecord.parent       = this;
                tRecord.instanceID   = evalBase.name;
                tRecord.testRunStamp = testRunStamp;
                // evalBase.language = imbLanguageFramework.imbLanguageFrameworkManager.serbian.basic;

                tRecord.inititialize(aFlags, macroScript);
            }

            //   log("Sample entries selected [" + sample.Count() + "] from [" + sample.usedGroups.Join(",") + "]");


            logBuilder.close();


            recordStart(testRunStamp, sciProject.name);

            startChildRecord(spiderList.First(), spiderList.First().name);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Initializes the soft: sets sample collection (but still don't create wRecords), sets tRecord, and starts
        /// </summary>
        /// <param name="insample">The insample.</param>
        public void initializeSoft(List <webSiteProfile> insample)
        {
            log("Analytic job record [" + GetType().Name + "] initialization started");
            log("Runstamp [" + testRunStamp + "]");

            sample = insample;

            //   log("Sample entries selected [" + sample.Count() + "] from [" + sample.usedGroups.Join(",") + "]");

            modelSpiderTestRecord tRecord = children.First().Value;

            tGeneralRecord        = new modelSpiderTestGeneralRecord(testRunStamp, job);
            tGeneralRecord.parent = this;


            recordStart(testRunStamp, name);

            startChildRecord(tRecord.instance, tRecord.instance.name);
        }