Contributions
ZQL queries in cloud no longer support labels or summary?
Recently migrated from Jira Server to Jira Cloud, have started trying to get our old ZAPI api calls working in cloud, have managed to get JWT generated and able to send/receive API calls, but am finding that ZQL queries no longer let you search by label or test name? My use case is we used to do a ZQL query providing cyclename and label, which would return us the execution id of the test with the associated label (e.g Test_Script_001), and then we would update the Test Execution Id to pass/fail/WIP etc. But now it seems only thing I can do is retrieve all tests in a cycle/folder, but not narrow the search down anymore than that, and if the cycle and folder contains lots of tests, unless you're limiting your max results, the request takes a good 10 - 20 seconds to retrieve the information. I'm struggling to think of a way to quickly update test results via api calls in Squad Cloud, especially when running api calls, where each test only takes a few seconds and as such waiting 10 seconds for each mass retrieval of tests within a cycle to get execution id would make the tests take 3 x- 4x longer to execute if waiting to update its status. Can anyone think of a better approach of how to do this? Very disappointed that Squad Cloud seems to be a lot more limited compared to the old Jira server plugin.21Views1like1CommentAnyone gotten ExtentReports 5 with spark reporter working via java bridge?
Trying to get Extent reports working, have java bridge pointing towards AdoptOpen JDK 11: And my class path as follows: And then the following code: function TestProc() { var path = "c:\\temp\\reporter.html"; var file = JavaClasses.java_io.File.newInstance(path); var extentReports = JavaClasses.com_aventstack_extentreports.ExtentReports; var status = JavaClasses.com_aventstack_extentreports.Status; var report = extentReports.newInstance(); var spark = JavaClasses.com_aventstack_extentreports_reporter.ExtentSparkReporter; spark = spark.newInstance(file); report.attachReporter_2(spark); var Test1 = report.createTest("Sample Test"); var node = Test1.createNode("Sample Node"); node.log(status.PASS, "Sample step description"); report.flush(); } Its finding the classes and intellicomplete is suggesting the correct functions/methods for the classes, but attach reporter gives the error: JavaScript runtime error. java.lang.IllegalArgumentException: argument type mismatch Error location: Unit: "TestProject1\TestProject1\Script\Unit1" Line: 10 Column: 10. I'm not sure what I'm missing here, in Java you start a new instance of ExtentReports, then a new instance of sparkreporter, passing a path, and then attach the reporter to your instance of ExtentReports, but can't quite seem to figure out how to get this working. If anyone else has been successful is doing this, I'd really appreciate seeing your project classes and classpath setup, as well as your initial report setup. I think root of the error is attachreporter_2 is expecting the object type to be com.aventstack.extentreports.observable, in java this seems to be inherited automatically normally, but I'm not sure why its having trouble seeing JavaClasses.com_aventstack_extentreports_reporter objects as the wrong type.635Views0likes0CommentsRe: Help with mapping an object
If comfortable with Xpath, you could do something like: //tagName[@attribute=’’]//following::tagName And then pass the text of the Account type (GIA/JISA/SIPP etc) as a variable to cover when the client has multiple GIAs or different account combinations.654Views1like0Comments