Contributions
Re: Set-up script works locally but throws an Script exception when running from pipeline - TestEngine
nmrao There is no command, we have a task called Run ReadyAPI test in Test Engine that we can use in the pipelines to run the tests, here is the documentation link from SmartBear Run ReadyAPI Tests in TestEngine from Azure DevOps | ReadyAPI Documentation (smartbear.com)21 days agoPlace ReadyAPI QuestionsReadyAPI Questions9Views0likes0CommentsRe: Set-up script works locally but throws an Script exception when running from pipeline - TestEngine
try to launchtestrunner from with in ReadyAPI tool and see if the same is the behavior - Nope it is working locally try to provide the absolute path of the token file? if that is not possible, then use project custom property for the token file and pass the file pathruntime? Refer-P argument - Is there a way to pass the -P argument from the Run ReadyAPI Projects in TestEngine? If both the above did not help, also try below change i.e., removerunner - This worked atleast the exception is gone but the Token is still not being replaced. This returns the path with backward slashes runner.project.getProject().path, wondering if this is causing any issues? nmrao23 days agoPlace ReadyAPI QuestionsReadyAPI Questions26Views0likes0CommentsRe: Set-up script works locally but throws an Script exception when running from pipeline - TestEngine
The setup script is at the Project level. Yes, they are. No, I couldn't find any of the log info output in the pipeline. nmrao28 days agoPlace ReadyAPI QuestionsReadyAPI Questions35Views0likes0CommentsSet-up script works locally but throws an Script exception when running from pipeline - TestEngine
Hello, I have a set-up script that reads an auth token from a file and replaces a Project property. This script work fine locally but throws an exception in Azure pipeline where I'm using ReadyAPI TestEngine to run the tests. The log message isn't helpful. Not sure where and why the exception is thrown, appreciate any help. def tokenFromProperties = runner.project.getPropertyValue("AuthToken") log.info("Current Token from suite properties ---- " + tokenFromProperties ) def projectPath = runner.project.getProject().path //log.info(projectPath) def filePath = projectPath + "/SignedJWT.txt" //log.info(filePath) def myFile = new File(filePath) def myScanner = new Scanner(myFile) def tokenFromFile = myScanner.nextLine() log.info("Token from the text file ---" + tokenFromFile) myScanner.close() //testrunner.testCase.testSuite.setPropertyValue("Token", "test") runner.project.setPropertyValue("AuthToken", tokenFromFile) def UpdatedTokenFromProperties = runner.project.getPropertyValue("AuthToken") log.info("Updated Token from suite properties --- " + UpdatedTokenFromProperties)30 days agoPlace ReadyAPI QuestionsReadyAPI Questions62Views0likes8CommentsTest suite fails with error Failing due to failed test step\njava.security.AccessControlException
We have recently updated to ReadyAPI 3.49 and noticed that our build pipeline keeps failing, the test pass with 100% success rate but I see there is suite level failure with errorFailingduetofailedteststep\njava.security.AccessControlException:accessdenied(\"java.util.PropertyPermission\"\"*\"\"read,write\") We rolled back to an older version and that fixed the issue.220Views0likes1CommentCI/CD Pipeline - Access Token from data source is not being replaced when the test runs in pipeline
Hello, I'm trying to run a test from Azure pipeline and noticed that the Bearer token from a data source is not being replaced with the right value, the test work locally. Few notes, Token is being generated and stored in a text file. Within the test added a test step to import the data source and referenced it in Access token section This is what I see in the pipeline in the request header11 months agoPlace ReadyAPI QuestionsReadyAPI Questions312Views0likes0Comments