Esempio n. 1
0
 public ValidJdxProcessingFixture(OsdrWebTestHarness harness)
 {
     FileId = harness.ProcessRecordsFile(harness.JohnId.ToString(), "2-Methyl-1-Propanol.jdx", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }
     }).Result;
 }
Esempio n. 2
0
 public InvalidMolProcessingFixture(OsdrWebTestHarness harness)
 {
     FileId = harness.ProcessRecordsFile(harness.JohnId.ToString(), "ringcount_0.mol", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }
     }).Result;
 }
Esempio n. 3
0
        public DeleteEntityCategoryFixture(OsdrWebTestHarness harness)
        {
            var categories = new List <TreeNode>()
            {
                new TreeNode("Category Root", new List <TreeNode>()
                {
                    new TreeNode("My Test Category"),
                    new TreeNode("Projects Two")
                })
            };

            var response = harness.JohnApi.PostData("api/categorytrees/tree", categories).Result;

            var content = response.Content.ReadAsStringAsync().Result;

            RootCategoryId = Guid.Parse(content);

            harness.WaitWhileCategoryTreePersisted(RootCategoryId);

            BlobId = harness.JohnBlobStorageClient.AddResource(harness.JohnId.ToString(), "Chemical-diagram.png", new Dictionary <string, object>()
            {
                { "parentId", harness.JohnId }
            }).Result;

            FileId = harness.WaitWhileFileProcessed(BlobId);
        }
Esempio n. 4
0
 public PredictPropertiesValidCaseFixture(OsdrWebTestHarness harness)
 {
     FolderId = harness.PredictProperties(harness.JohnId.ToString(), "combined lysomotrophic.sdf", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }
     }).Result;
 }
Esempio n. 5
0
 public InvalidCifProcessingImageGenerationFixture(OsdrWebTestHarness harness)
 {
     FileId = harness.ProcessRecordsFile(harness.JohnId.ToString(), "InvalidImageGeneration.cif", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }
     }).Result;
 }
Esempio n. 6
0
 public UploadPngFixture(OsdrWebTestHarness harness)
 {
     FileId = harness.ProcessFile(harness.JohnId.ToString(), "Chemical-diagram.png", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }
     }).Result;
 }
Esempio n. 7
0
 public UploadValidCsvFixture(OsdrWebTestHarness harness)
 {
     FileId = harness.ProcessFile(harness.JohnId.ToString(), "FocusSynthesis_InStock.csv", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }
     }).Result;
 }
 public TrainOneModelAndFailDuringTheReportGenerationFixture(OsdrWebTestHarness harness)
 {
     FolderId = harness.TrainModel(harness.JohnId.ToString(), "drugbank_10_records.sdf", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }, { "case", "train one model and fail during the report generation" }
     }).Result;
 }
Esempio n. 9
0
 public AddEntityCategories(OsdrWebTestHarness harness, ITestOutputHelper output, AddEntityCategoriesFixture fixture) : base(harness, output)
 {
     CategoryId = fixture.CategoryId;
     BlobId     = fixture.BlobId;
     FileId     = fixture.FileId;
     FileNodeId = fixture.FileNodeId;
 }
Esempio n. 10
0
 public InvalidSdfProcessingFixture(OsdrWebTestHarness harness)
 {
     FileId = harness.ProcessRecordsFile(harness.JohnId.ToString(), "test_solubility.sdf", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }
     }).Result;
 }
Esempio n. 11
0
 public UploadJpgFixture(OsdrWebTestHarness harness)
 {
     FileId = harness.ProcessFile(harness.JohnId.ToString(), "computer-humor-computer-science.jpg", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }
     }).Result;
 }
Esempio n. 12
0
 public TrainOneValidModelReverseEventsFixture(OsdrWebTestHarness harness)
 {
     FolderId = harness.TrainModel(harness.JohnId.ToString(), "combined lysomotrophic.sdf", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }, { "case", "valid one model (reverse events order)" }
     }).Result;
 }
Esempio n. 13
0
 public TrainOneModelAndFailBeforeTrainingFixture(OsdrWebTestHarness harness)
 {
     FolderId = harness.TrainModel(harness.JohnId.ToString(), "drugbank_10_records.sdf", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }, { "case", "fail before starting training" }
     }).Result;
 }
Esempio n. 14
0
 public UploadValidPdfFixture(OsdrWebTestHarness harness)
 {
     FileId = harness.ProcessFile(harness.JohnId.ToString(), "Abdelaziz A Full_manuscript.pdf", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }
     }).Result;
 }
Esempio n. 15
0
 public ValidSdfProcessingFixture(OsdrWebTestHarness harness)
 {
     FileId = harness.ProcessRecordsFile(harness.JohnId.ToString(), "drugbank_10_records.sdf", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }
     }).Result;
 }
Esempio n. 16
0
 public UploadGifFixture(OsdrWebTestHarness harness)
 {
     FileId = harness.ProcessFile(harness.JohnId.ToString(), "2018-02-14.gif", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }
     }).Result;
 }
Esempio n. 17
0
 public InvalidCifProcessingFixture(OsdrWebTestHarness harness)
 {
     FileId = harness.ProcessRecordsFile(harness.JohnId.ToString(), "1100110_modified.cif", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }
     }).Result;
 }
 public UploadValidDocFixture(OsdrWebTestHarness harness)
 {
     FileId = harness.ProcessFile(harness.JohnId.ToString(), "Developing Standard Approaches for Curating Small Molecule Pharmaceuticals_Jan18_2013.doc", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }
     }).Result;
 }
Esempio n. 19
0
 public InvalidJdxProcessingFixture(OsdrWebTestHarness harness)
 {
     FileId = harness.ProcessRecordsFile(harness.JohnId.ToString(), "13Csample.jdx", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }
     }).Result;
 }
Esempio n. 20
0
 public SingleStructurePredictionsFixture(OsdrWebTestHarness harness)
 {
     FolderId = harness.PredictProperties(harness.JohnId.ToString(), "combined lysomotrophic.sdf", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }, { "case", "valid one model with success optimization" }
     }).Result;
 }
 public TrainOneValidModelWithSuccessOptimizationFixture(OsdrWebTestHarness harness)
 {
     FolderId = harness.TrainModel(harness.JohnId.ToString(), "combined lysomotrophic.sdf", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }, { "case", "valid one model with success optimization" }
     }).Result;
 }
Esempio n. 22
0
 public ValidCdxProcessingFixture(OsdrWebTestHarness harness)
 {
     FileId = harness.ProcessRecordsFile(harness.JohnId.ToString(), "125_11Mos.cdx", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }
     }).Result;
 }
Esempio n. 23
0
 public TrainOneValidModelWithFailedOptimization(OsdrWebTestHarness fixture, ITestOutputHelper output) : base(fixture, output)
 {
     FolderId = TrainModel(JohnId.ToString(), "combined lysomotrophic.sdf", new Dictionary <string, object>()
     {
         { "parentId", JohnId }, { "case", "train model with failed optimization" }
     }, true).Result;
 }
Esempio n. 24
0
 public UploadGzFixture(OsdrWebTestHarness harness)
 {
     FileId = harness.ProcessFile(harness.JohnId.ToString(), "IMG_0109.gz", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }
     }).Result;
 }
Esempio n. 25
0
 public TrainOneValidModelWithDelays(OsdrWebTestHarness fixture, ITestOutputHelper output)
     : base(fixture, output)
 {
     FolderId = TrainModel(JohnId.ToString(), "combined lysomotrophic.sdf", new Dictionary <string, object>()
     {
         { "parentId", JohnId }, { "case", "valid one model (with delays)" }
     }).Result;
 }
Esempio n. 26
0
 public TrainOneModelAndFailDuringTheTraining(OsdrWebTestHarness fixture, ITestOutputHelper output)
     : base(fixture, output)
 {
     FolderId = TrainModel(JohnId.ToString(), "drugbank_10_records.sdf", new Dictionary <string, object>()
     {
         { "parentId", JohnId }, { "case", "train one model and fail during the training" }
     }).Result;
 }
Esempio n. 27
0
 public PredictPropertiesInvalidCase(OsdrWebTestHarness fixture, ITestOutputHelper output)
     : base(fixture, output)
 {
     FolderId = PredictProperties("invalid case", "combined lysomotrophic.sdf", new Dictionary <string, object>()
     {
         { "parentId", JohnId }
     }).Result;
 }
Esempio n. 28
0
        public ValidSdfProcessingFixture(OsdrWebTestHarness harness)
        {
            BlobId = harness.JohnBlobStorageClient.AddResource(harness.JohnId.ToString(), "drugbank_10_records.sdf", new Dictionary <string, object>()
            {
                { "parentId", harness.JohnId }
            }).Result;

            FileId = harness.WaitWhileRecordsFileProcessed(BlobId);
        }
        public InvalidRxnProcessingFixture(OsdrWebTestHarness harness)
        {
            BlobId = harness.JohnBlobStorageClient.AddResource(harness.JohnId.ToString(), "empty.rxn", new Dictionary <string, object>()
            {
                { "parentId", harness.JohnId }
            }).Result;

            FileId = harness.WaitWhileRecordsFileProcessed(BlobId);
        }
Esempio n. 30
0
        public DeleteFolder(OsdrWebTestHarness fixture, ITestOutputHelper output) : base(fixture, output)
        {
            var response       = JohnApi.CreateFolderEntity(JohnId, "new folder").Result;
            var folderLocation = response.Headers.Location.ToString();

            _folderId = Guid.Parse(folderLocation.Substring(folderLocation.LastIndexOf("/") + 1));

            Harness.WaitWhileFolderCreated(_folderId);
        }