ContributionsMost RecentMost LikesSolutionsHow to enter a linefeed into a variable for a Property Checkpoint I have a project variable that I use to check against a value on a web page. The actual value contains a linefeed (I believe) as when I recorded the test the expected value was as, "Accession No:\n4031533211975680". I copied this value into the variable value in the variable editor. As the value is a multiline field it placed it on 2 lines and the "\n" was not shown. When I ran the test it failed and the the following appeared (note the missing "↴") Actual value Expected value "Accession No:↴4031533211975680" "Accession No:4031533211975680" I edited the variable and added a "\n" and reran the test. Again it failed showed the following result. Actual value Expected value "Accession No:↴4031533211975680" "Accession No:\n4031533211975680" I also tried using "\r\n" but still no success. My questions are: 1) Is the "↴" shown in the actual a linefeed? 2) How do I put it into a variable to be used for a checkpoint as it is taking the \n a a string not an escape sequence? Thanks, Alan SolvedRe: Find the testcases within a testcycle via the api Hi Vinnie, Can you remove this or the duplicate I created. I added a post on Zephyr Scale Community as I hadn't realised that you could had the ability to move it across? Thanks, Alan Re: Can't find the Watch window in the debugger. Hi Vinnie, I have a little house on the road to the beach 😁. Love it Find the testcases within a testcycle via the Zephyr Scale Cloud API I want to insert an test execution result for a testcase via the API but the endpoint for adding a new test execution requires the testcycle key. I've tried to see how I can find the association between the testcase and the testcycle in both the testcase and the testcycle by getting each. I was hoping the testcase would have a reference to the testcycle or the testcycle would have a list of all its testcases. Neither appears to be true. I use the following to retrieve the testcase: https://api.zephyrscale.smartbear.com/v2/testcases/<testcaseid> testcycle: https://api.zephyrscale.smartbear.com/v2/testcycles/testcycles/<testcycleid> Neither of these call return information relating to the other even though the testcycle contains the testcase. I don't understand how I can create a test execution without this information. Any guidance would be appreciated. TIA Alan Re: Find the testcases within a testcycle via the api Hi Vinnie, I think I should have put this question in the Zephyr Scale community as it is related to that API. I am calling it from TestComplete but the data I'm looking for is designed by Zephyr Scale. Re: Find the testcases within a testcycle via the api No, it uses a different way. As I'm using Zephyr Scale Cloud I access that via https://api.zephyrscale.smartbear.com/v2 and append the appropriate endpoint e.g. /testcases or /testcycles etc. (https://support.smartbear.com/zephyr-scale-cloud/api-docs/) Zephyr Scale for Jira Cloud API - SmartBear Software For accessing the API, you must generate an access key in Jira. To generate an access token, click on your profile picture at the page bottom left, and choose the option “Zephyr Scale API keys". support.smartbear.com This code here adds a test execution into Zephyr Scale for the test case however I've hard coded the values (just to make sure it will work) as I can't figure out how to get them via the api. function createPostRequest(endpoint="/testcases") { let address = "https://api.zephyrscale.smartbear.com/v2" + endpoint; let request = aqHttp.CreatePostRequest(address) request.SetHeader("Content-Type", "application/json"); request.SetHeader("Authorization", "Bearer <zephyr scale api token>") return request; } function createTestExecution() { let test = getLastTest(); let request = createPostRequest("/testexecutions") let requestBody = { "projectKey": "VRTWB", "testCaseKey": "VRTWB-T6", "testCycleKey": "VRTWB-R1", "statusName": "PASS", "testScriptResults": [ { "statusName": "PASS", "actualEndDate": "2022-01-20T13:15:13.000Z", "actualResult": "User logged in successfully"}] } let str = JSON.stringify(requestBody) let response = request.send(str); Log.Message(response); } Re: How to set the status of a test using the Zephyr Scale api Thanks Vinnie, This post appears to be out of date but pointed me in the right direction. I used https://api.zephyrscale.smartbear.com/v2/testexecutions post setting the Authorization to Bearer and adding the Zephyr Scale API token. Find the testcases within a testcycle via the api I want to insert an test execution result for a testcase but the endpoint for adding a new execution requires the testcycle key. I've tried to see how I can find the association between the testcase and the testcycle in both the testcase and the testcycle by getting each. I was hoping the testcycle would have a reference to the testcycle or the testcycle would have a list of all its testcases. Neither appears to be true. I use the following to retrieve the testcase: https://api.zephyrscale.smartbear.com/v2/testcases/<testcaseid> testcycle: https://api.zephyrscale.smartbear.com/v2/testcycles/testcycles/<testcycleid> Neither of these call return information relating to the other even though the testcycle contains the testcase. I don't understand how I can create a test execution without this information. Any guidance would be appreciated. TIA Alan Re: Can't find the Watch window in the debugger. Thanks Vinnie. I was trying to find the Watch List for variables/object in the javascripts editor whilst debugging javascript. I found a way to do it by opening the Expression window and dragging it in the javascript editor. It now appears in there any time I open the editor. Can't find the Watch window in the debugger. I'm trying to debug a script and want to see the values of objects and their properties. I highlight the object and add a watch but there is no window showing the added watch. I'm new to TestComplete; the previous day I was using the watch, it was displayed below the editor. I must have somehow hidden it but can't find how to display it again. Does anyone know how to display it again? TIA Alan Solved