Example #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;
 }
Example #2
0
 public InvalidMolProcessingFixture(OsdrWebTestHarness harness)
 {
     FileId = harness.ProcessRecordsFile(harness.JohnId.ToString(), "ringcount_0.mol", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }
     }).Result;
 }
Example #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);
        }
Example #4
0
 public PredictPropertiesValidCaseFixture(OsdrWebTestHarness harness)
 {
     FolderId = harness.PredictProperties(harness.JohnId.ToString(), "combined lysomotrophic.sdf", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }
     }).Result;
 }
Example #5
0
 public InvalidCifProcessingImageGenerationFixture(OsdrWebTestHarness harness)
 {
     FileId = harness.ProcessRecordsFile(harness.JohnId.ToString(), "InvalidImageGeneration.cif", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }
     }).Result;
 }
Example #6
0
 public UploadPngFixture(OsdrWebTestHarness harness)
 {
     FileId = harness.ProcessFile(harness.JohnId.ToString(), "Chemical-diagram.png", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }
     }).Result;
 }
Example #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;
 }
Example #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;
 }
Example #10
0
 public InvalidSdfProcessingFixture(OsdrWebTestHarness harness)
 {
     FileId = harness.ProcessRecordsFile(harness.JohnId.ToString(), "test_solubility.sdf", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }
     }).Result;
 }
Example #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;
 }
Example #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;
 }
Example #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;
 }
Example #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;
 }
Example #15
0
 public ValidSdfProcessingFixture(OsdrWebTestHarness harness)
 {
     FileId = harness.ProcessRecordsFile(harness.JohnId.ToString(), "drugbank_10_records.sdf", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }
     }).Result;
 }
Example #16
0
 public UploadGifFixture(OsdrWebTestHarness harness)
 {
     FileId = harness.ProcessFile(harness.JohnId.ToString(), "2018-02-14.gif", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }
     }).Result;
 }
Example #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;
 }
Example #19
0
 public InvalidJdxProcessingFixture(OsdrWebTestHarness harness)
 {
     FileId = harness.ProcessRecordsFile(harness.JohnId.ToString(), "13Csample.jdx", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }
     }).Result;
 }
Example #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;
 }
Example #22
0
 public ValidCdxProcessingFixture(OsdrWebTestHarness harness)
 {
     FileId = harness.ProcessRecordsFile(harness.JohnId.ToString(), "125_11Mos.cdx", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }
     }).Result;
 }
Example #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;
 }
Example #24
0
 public UploadGzFixture(OsdrWebTestHarness harness)
 {
     FileId = harness.ProcessFile(harness.JohnId.ToString(), "IMG_0109.gz", new Dictionary <string, object>()
     {
         { "parentId", harness.JohnId }
     }).Result;
 }
 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;
 }
Example #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;
 }
Example #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;
 }
Example #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);
        }
Example #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);
        }