La conversion PDF échoue lors de l'exécution du test sur CI. J'utilise la bibliothèque GhostscriptsSharp pour la conversion.TeamCity: GhostscriptSharp: Une tentative de chargement d'un programme avec un format incorrect a été effectuée. (Exception de HRESULT: 0x8007000B)
Je ne suis pas face à ce problème lors de l'exécution de mon test local, le fichier PDF est converti en images correctement.
J'ai recherche sur Internet pour trouver une solution mais jusqu'à présent, tout ce que j'ai trouvé m'a pas aidé à trouver une solution.
Une tentative de chargement d'un programme avec un format incorrect a été effectuée. (Exception de HRESULT: 0x8007000B)
System.BadImageFormatException: Une tentative a été faite pour charger un programme avec un format incorrect. (Exception de HRESULT: 0x8007000B) à GhostscriptSharp.GhostscriptWrapper.CreateAPIInstance (IntPtr & pinstance, IntPtr caller_handle) à GhostscriptSharp.GhostscriptWrapper.CallAPI (String [] args) à GhostscriptSharp.GhostscriptWrapper.GeneratePageThumbs (String InputPath, String OutputPath, Int32 firstPage, Int32 lastPage, largeur Int32, hauteur Int32) à Framework.Utils.FileUtils.ConvertPdfToImages (Chaîne pdfPath, Chaîne imagesPath, Int32 pageCount) dans c: \ TeamCity \ buildAgent \ travail \ 8e7aa88e702dfaf7 \ Framework \ Utils \ FileUtils.cs: ligne 90 à StepDefinitions.General.Search.SearchTableSteps.ThenImagesAreCorrectInDownloadedDocumentFromSearchGrid (table Table) dans c: \ TeamCity \ buildAgent \ travail \ 8e7aa88e702dfaf7 \ StepDefinitions \ General \ Search \ SearchTableSteps.cs: ligne 282 à TechT alk.SpecFlow.Bindings.BindingInvoker.InvokeBinding (IBinding liaison, IContextManager ContextManager, objet [] arguments, ITestTracer testTracer, TimeSpan & durée) à TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.ExecuteStepMatch (correspondance BindingMatch, objet [] arguments) à TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.ExecuteStep (stepInstance stepInstance) à TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.OnAfterLastStep() à Features.Clerk.Version_2.Clerk_QuickDocFeature.ScenarioCleanup() dans c: \ TeamCity \ BuildAgent \ work \ 8e7aa88e702dfaf7 \ Features \ Clerk \ version_2 \ ClerkQuickDoc.feature.cs: ligne 0 à Features.Clerk.Version_2.Clerk_QuickDocFeature.Clerk_DownloadRedactedDocument() dans c: \ TeamCity \ buildAgent \ work \ 8e7aa88e702dfaf7 \ Caractéristiques \ Clerk \ version_2 \ ClerkQuickDoc.feature: ligne 28 à TechTalk.SpecRun.Framework.TaskExecutors.StaticOrInstanceMethodExecutor.ExecuteInternal (ITestThreadExecutionContext testThreadExecutionContext) dans c: \ TeamCity \ BuildAgent \ work \ 1ace6ed01d0a43bb \ TechTalk.SpecRun.Framework.Interfaces \ TaskExecutors \ StaticOrInstanceMethodExecutor.cs: ligne 40 à TechTalk. SpecRun.Framework.TestAssemblyExecutor.ExecuteTestNodeTask (testNode testNode, tâche ITaskExecutor, TraceEventType eventType) dans c: \ TeamCity \ BuildAgent \ work \ 1ace6ed01d0a43bb \ TechTalk.SpecRun.Framework.Executor \ TestAssemblyExecutor.cs: ligne 215
Sans les étapes/le code correspondant responsable du message d'erreur, il sera difficile de vous aider avec votre problème. –