how to change test step name when save test results
Hi, I'm trying to save test result into a file with following scripts. def pName = context.currentStep.testCase.testSuite.project.name //get project name def pDate = new Date().format( 'yyyyMMdd' )//get current date def sDate = pDate.toString()//convert date to string def pTestSuite = context.currentStep.testCase.testSuite.name//get TestSuite name def pTestCase = context.currentStep.testCase.name//get TestCase name def filePath = 'E:/Data/Dean Ding/CRD files/CRD_results_test/'+pName+'_'+sDate+'/'+pTestSuite+'/'+pTestCase+'/'//compose the folder path File file = new File(filePath) if (!file.exists()) file.mkdirs()//create the destination folder fos = new FileOutputStream(filePath+ testStepResult.testStep.label + '.txt', true) pw = new PrintWriter( fos ) testStepResult.writeTo( pw ) pw.close() fos.close() but as my test step name contains symbols like : , " such special symbols which not accepted when create txt file due to naming convention, as there are more than 1000 cases it will take such long time to change my test step name,I found script to replace those symbols but don't know how to make it change when use above script to save test results. It will be much appreciated if anyone can provide the scripts.193Views0likes2CommentsBroken links in test results HTML generated by testrunner.bat
There are broken links in the HTML test results generated by testrunner.bat In Windows, using ReadyAPI version 3.48 How to reproduce: 1 - Create a project that has a period in its name (e.g. Project1.0) 2 - Run the tests through the commandline, using testrunner.bat with the flags -A -r -j -I -f <output file> "-RJUnit-Style HTML Report" -FXML <project file> 3 - Open the index.html on a browser There are broken links in the HTML (they can also be seen directly in the "frame" html files that have been generated in the test results output directory). The reason they are broken is that the period "." character in the project name (and corresponding directory now created in the test results directory) has been replaced with a "/".167Views1like1CommentSetting log level in ReadyAPI and TestRunner
Is there an official way to change the log level when running tests with ReadyAPI and TestRunner? The ReadyAPI docs on groovy scripts only mention using `log.info` to write output from scripts. I would love to be able to use `log.debug`, so that when running locally people can set their ReadyAPI instance to log debug logs but when running with TestRunner in CI we would limit logs to info only.Solved182Views0likes1CommentCustom Reports in the composite file structure, or must be in /bin?
Hello, I converted one of my ReadyAPI projects to composite format, and I noticed there was a "reports" subfolder. There's a big set of custom reports I've been using (jasper and other xml configuration files) that I've had to move into the different \bin report folder structures in the smartbear installation folder when setting up on a new computer. Is there a way when I import the composite project that ReadyAPI can use the reports in the composite folder structure? Or do I have to move everything into the /bin folder when I install on a new machine? I tried populating the report folders of the composite project but I didn't seem to have the option in ReadyAPI to use those custom reports.112Views0likes0CommentsReadyAPI test for Azure DevOps doesn't output log information on the fly
ReadyAPI test for Azure DevOps doesn't output log information on the fly, we have to wait minutes to get information We are trying two approaches to see which one fits our needs. Initially we had a CMD step with the following to execute our test: -f$(Common.TestResultsDirectory) "-RJUnit-Style HTML Report" -FXML "-ECI-Pipeline" "-TTestSuite Integration" "-TTestCase Integration" $(Build.SourcesDirectory) -email $(ReadyAPI.User) -password $(ReadyAPI.Pass) Then we tried the ReadyAPI step from Azure Marketplace but it's too long to start sending log information, is this expected? How long it should take for that step to give log information?240Views0likes2CommentsHow to store Azure pipeline ReadyAPI test results into a network shared path?
I created a pipeline to run ReadyAPI tests.I have used ReadyAPI test for Azure Devops extension andPublish Test Results step in my pipeline and configured the test results path to local path. If i use local path i can see the generated test results. But if i configure the network path in both the extensions, then the result is not generated in the network path. I am able to successfully open the network path in the Agent in which the pipeline tests are running. Still i dont see any files generated. How to properly configure network path for Test Results in the ReadyAPI Test for Azure Devops extension ?202Views0likes1Comment[ReadyAPI v3.47] Detailed Allure report
Hello, I am looking for any kind of support/technical documentation regarding how to generate detailed Allure report and how to pass the detailed information regarding the requests and responses. Note: I have already generated the Allure report using the GitHub actions, but I expect that this Allure report should contains much more detailed information: run: | allure generate "${{ env.tests-directory }}/target/surefire-reports/" Thank you!292Views0likes0CommentsAutomatic cancellation of a test case run
I encountered a problem with readyAPI, if I try to run a complete testcase I cannot do this, the run operation is automatically canceled, but if I try to run a step-by-step testcase it works. What could be the problem that cause this? I mention that I started having this problem after setting up more environments to run tests. Thank you!851Views0likes5CommentsTestEngine API to get the transaction details returns 404 - Intermittent Issue
We are running the Ready API tests in TestEngine and generating the report in JSON format. The JSON report doesn't returns the test's request and response. So we are using the CURL to get the details of failed tests's request and response using below TestEngine API. We use the details of failed transaction to debug a test and fix accordingly. As mentioned in the TestEngine documnetation (https://support.smartbear.com/testengine/docs/tutorial/get-result.html) we are using the TestEngine API to get the transaction details,below curl is been executed as a part of automation bash script to get the transaction details curl -u username:password http://localhost:8080/api/v1/testjobs/<testJobId>/transactions/<transactionId> Sometimes the above TestEngine API call returns 404 response as below (this is intermittent issue). But after sometime, the same above API works fine and returns the transaction details {"code":404,"message":"No transaction log found for testjobId: <testJobId> and transactionId: <transactionId>"} Help us in fixing this intermittent issue341Views0likes2Comments