Contributions
Re: I can't run a Test using Azure Devops Pipeline
This project of mine is now even simpler, it only has one function that I opened in notepad, and even so I can't make the pipeline run this single test The project I created is in this link https://drive.google.com/file/d/1e0PnP-0KKr_9BlNs3Rye5tt9A4YaYuzf/view?usp=sharing195Views0likes0CommentsI can't run a Test using Azure Devops Pipeline
I'm trying to run a test through the Azure Devops pipeline using TestExecute The Pipeline is communicating with the Agent because when executing the Pipeline, TestComplete/TestExecute is opened but after a few seconds it is closed without executing any test Here is the Pipeline code I created: trigger: - master pool: name: TesteAutomatizado steps: - task: VisualStudioTestPlatformInstaller@1 inputs: packageFeedSelector: 'nugetOrg' versionSelector: 'latestPreRelease' - task: InstallTestCompleteAdapter@1 inputs: accessKey: '**' logsLevel: '0' searchMode: ExecutionPlan - task: VSTest@3 inputs: testSelector: 'testAssemblies' testAssemblyVer2: '**\Azure.pjs' searchFolder: '$(System.DefaultWorkingDirectory)' testFiltercriteria : 'Name=TestNotepad' vsTestVersion: 'toolsInstaller' The error is occurring in VSTest To facilitate support, I created a project with just one test where the user opened the notepad and typed a text I'm uploading the project to the Driver at the following link: https://drive.google.com/file/d/1e0PnP-0KKr_9BlNs3Rye5tt9A4YaYuzf/view?usp=sharing In this example I am using a trial license to validate if it works, if it works I will buy a PRO license If anyone can make it work, send me the pipeline code and a video showing how it works, so I can compare and try to solve my Pipeline301Views0likes5CommentsRe: Error when executing Devops pipeline
Is there a way to change the version of the TestCompleteAdapter? The Version that is in Devops is 1.15054.12 I wanted to test with an older version I went back to the version of testComplete, now I wanted to test with an old version of TestCompleteAdapter216Views1like0CommentsRe: Error when executing Devops pipeline
I work at the same company as André, we are trying to make the Pipeline run the Tests through testExecut but so far we have not been able to run the tests through the pipeline. I'm looking at the link you sent but so far it hasn't resolved I didn't find any example on the internet of someone using searchFolder: '$(System.DefaultWorkingDirectory)' without this default value What path do I have to pass to the searchFolder?408Views0likes0CommentsRe: Error when executing Devops pipeline
On the machine I am testing, both TestComplete and TestExecute are installed, but neither of them were executed nor did they provide a log. I even tried to remove the test filter, but the Pipeline continues to run and nothing is executed. trigger: - master pool: name: TesteAutomatizado steps: - task: VisualStudioTestPlatformInstaller@1 inputs: packageFeedSelector: 'nugetOrg' versionSelector: 'latestPreRelease' - task: InstallTestCompleteAdapter@1 inputs: accessKey: 'eaf3b7e0-269d-4855-babb-6b61226f0f2d' logsLevel: '0' - task: VSTest@3 inputs: testSelector: 'testAssemblies' testAssemblyVer2: 'C:\agent\_work\1\s\TestComplete\BusinessAutomacao\BusinessAutomacao.pjs' searchFolder: 'C:\agent\_work\1\s\TestComplete\BusinessAutomacao\' vsTestVersion: 'toolsInstaller'403Views0likes0CommentsRe: Error when executing Devops pipeline
In the testComplete manual, it only gives an example of a value for searchFolder, which is the default value I made the following change to the YAML code - task: VSTest@3 inputs: testSelector: 'testAssemblies' testAssemblyVer2: 'C:\agent\_work\1\s\TestComplete\BusinessAutomacao\BusinessAutomacao.pjs' searchFolder: 'C:\agent\_work\1\s\TestComplete\BusinessAutomacao\' testFiltercriteria: 'Project=BusinessCSAutomacao' vsTestVersion: 'toolsInstaller' Now with this code, the Pipeline did not give an error, but it also did not run any tests I also don't know which path to put in the searchFolder because the manual only gives an example of the default path and with the default path an error occurs464Views1like2CommentsRe: Error when executing Devops pipeline
##[error]Failed to get a list of tests from the "C:\agent\_work\1\s\TestComplete\BusinessAutomacao\BusinessAutomacao.pjs" file due to the following error: Unable to connect to TestExecute: TestExecute could not start within the timeout. ##[error]Unable to connect to TestComplete: TestComplete exited with unknown code 0.482Views1like0CommentsProblems connecting to ADODB using Javascript and Firebird
I'm trying to connect to a FireBird database using getActiveXObject("ADODB.Connection") in Java Script, but the function is not returning the result of the query function executeQuery(){ var withHeader = null if (withHeader == null){ withHeader = false; } //Variáveis de conexão var connection = getActiveXObject("ADODB.Connection"); connection.CommandTimeout = 2400; var stringConnection = "DRIVER=Firebird/InterBase(r) driver;DBNAME=C:\\Resulth\\Banco\\RESULTH.FB;UID=sysdba;PWD=masterkey;DIALECT=3;"; var rs = getActiveXObject("ADODB.Recordset"); var result = new Array(); var i = 0; for (i = 0; i <= 5; i++) { try { connection.Open(stringConnection); rs.Open("select cidade, estado, codmunicipio from cidades where codcidade = '00001'", connection); } catch (e) { Log.Message(e); } if (connection.State == 1) { Log.Message("Query executada com sucesso!", "select cidade, estado, codmunicipio from cidades where codcidade = '00001'"); break; } else if (connection.State == 0) { Log.Message("Query não foi executada com sucesso!", "select cidade, estado, codmunicipio from cidades where codcidade = '00001'"); Delay(3000); } } if(connection.State == 0){ Log.Error('Não foi possivel executar a query'); } try{ if (rs.eof){ resultado = null; } else{ while(!rs.eof){ result[i] = new Array(); if (withHeader){ if (i == 0){ for (var j = 0; j < rs.fields.Count; j++){ result[i][j] = rs.fields(j).name; } }else{ for (var j = 0; j < rs.fields.Count; j++){ result[i][j] = rs.fields(j).value; } rs.MoveNext(); } }else{ for (var j = 0; j < rs.fields.Count; j++){ result[i][j] = rs.fields(j).value; } rs.MoveNext(); } i++; } } } catch(e){ result= null; } connection.close; return result; } function returnResultQuery(){ var a; a = executeQuery(); Delay(1); } Here's an image of the result This same code works in JScript if I use "new ActiveXObject("ADODB.Connection");" Here's the result in JScript I need to run this code in Java Script395Views0likes1Comment