Add tests to cycle via API
Hello all, I am so sorry to bother you every day. Today I want to add a tests into a test cycle via API. I tried to use the following link https://zfjcloud.docs.apiary.io/#reference/execution/get-execution/add-tests-to-cycle I created a JWT for the endpoint, used the body which is included on the mentioned link, adjusted the values, but I am getting the error"method field is required.". If I saw correctly it is not included in the body. Can you help me with this? As always I am including some screen shots. Thanks for the tips, TiborSolved4.2KViews0likes6CommentsSmartBear Talks | Meet the ReadyAPI Team - Alianna Inzana
I’m sure you want to know more about ReadyAPI!We continue introducing the members of theReadyAPIteam to you, so you can learn more about the people who are developing the best tool for API testing –ReadyAPI! Today, we will talk withAlianna Inzana, Senior Director of Product Development for API and Virtualization. Ali started her career as an analyst, where she was happy to work with digits before she dove into the world of APIs. Check out what her passion is these days, along with what we can expect fromReadyAPIin 2021. Alianna Inzana-Senior Director of Product Development for API and Virtualization at SmartBear I hope you found this video informative! Feel free to post your questions under this post, in case you have any. More video interviews are available under the Interview label. Don't forget to subscribe to the SmartBear Community Matters blog to get updates about all the great content we post here.1.7KViews2likes0CommentsCreate a new test case via API
Hello all, I would like to ask how can I create Test or any kind of issue through Zephyr's API. I was able to create test cycle through the following APIhttps://zfjcloud.docs.apiary.io/#reference/cycle I did not find the way to create an issue or more specifically test case via API. I would really appreciate a tip how to configure headers and body too. Can you please help me with this?Solved1.7KViews0likes4Commentsqsh error when creating test cycle with API
Hello all, I am trying to create a testing cycle through an API (currently Postman). This is what I am doing I am not using Authorization tab at all. As a JWT generator I use this code in JAVA I tried both "GET" and "POST" methods. An I still get the gsh error like seen in the first Image. I am using the following site to get the idea how should I send an API https://zfjcloud.docs.apiary.io/#reference/cycle/creates-new-cycle/creates-new-cycle?console=1 BTW: I am pretty sure that project ID and version is correct Am I doing something wrong? Can you please help me with this? Thanks a lotSolved2.2KViews0likes7CommentsHow to test REST API with Login Authentication
Hi, I am trying to test REST API. The login authentication has its own URI and it works when I test it. However, I have another URI but it requires the Login Authentication to execute first. So, what I did was I created a REST project, create a Resource for Login Authentication and another Resource for the other the URI. When I ran the TestRunner, it does not seem to authenticate well. Is this the way to tests or is there another way? Thanks1.8KViews0likes4CommentsWriting log messages of test to the file
Hi, When TestComplete is being used, We try to write log messages which are come out of the "Log. Message()" or "Log.Error()" function to a text file in order to keep the log messages together as a log.txt. However, after creating a file, we try to use "Log.File()" function or "SaveResultsAs()" to write logs messages to this file, It just created the file, could not write anything. Is there any way to keep log messages that are written in the test script in the txt file in a given directory? as an example code; function creatingAndWritingLogMessagesToTheTxtFile(){ //create a file var filePath="C:\\.....";//Directory aqFile.Create(filePath); var logName="filePath"+".mth"; Log.SaveResultsAs(logName,lsMHT); } And in the functions how we can write the log messages to this created file that is created to keep log messages? as an example code; function testA(){ //....codes doing something Log. Messages("Test Successful"); //Here How can we use that method (If it is useful) to write this log to that text file?? }Solved1.3KViews0likes3CommentsUse dynamic parameters for TestItem
Hey, I would like to structure my test sequence via TestItems in TestComplete. But I ran into one problem: I want to start my TestItems (TI) out of the script with dynamic/changing parameters. Is this possible? I could not figure out, how to hand over a variable to the TI. Thank you for your help.Solved1.3KViews0likes1CommentSwagger in junit
From the swagger UI (https://petstore.swagger.io/?_ga=2.138463798.444042846.1559674010-1100161644.1559674010#/pet/addPet) I can make a call in introduced format by clicking "Try it out" button. It is great! But, is there a possibility to: - use swagger to generate http request objects in java in introduced format. For instance, I want make this call (https://petstore.swagger.io/?_ga=2.138463798.444042846.1559674010-1100161644.1559674010#/pet/findPetsByStatus) from the java test, providing a parametr status as an argument to some method, which will generate httpRequest or make a call and return httpResponse.Scheduling TestComplete Keyword Tests with Microsoft Task Scheduler
Hello, I am trying to schedule my TestComplete keyword tests to run automatically when I am out of the office. After doing some research, it seems as though Microsoft Task Scheduler can help me achieve this goal. However, I am relatively new to TestComplete, and was wondering if anyone could provide me with more clarity on this process. Thank you.1.2KViews0likes1CommentUsing context parameter in Request Authorization
Hi, I am currently building a Test Case in which I use scripts to parse the response body of a few REST API Call Test Steps. 1. I create a user: POST /user/signup. 2. I log in with the created user: POST /user/login ( response body contains a JWT token that I want to use as Authorization in the following API Calls ) 3. I parse the token with the following script: import groovy.json.JsonSlurper responseContent = testRunner.testCase.getTestStepByName("POST User Login").getPropertyValue("response") jsonParser = new JsonSlurper().parseText(responseContent) context.JWTToken = jsonParser.token log.info ("Token in context: " + context.JWTToken) The token correctly logs in the log.info (line 5 of the script), so it is valid and stocked as a context variable. 4. I want to create a product: POST /products . This API Call needs a valid JWT to suceed, so I want to pass my stocked context.JWTToken as the value of the the Access Token. It doesn't work and I would gladly like to get some help on how to make it work. I also tried: ${context.JWTToken} ; context.JWTToken ; JWTToken ; ${=JWTToken} ; ${JWTToken} Thank youSolved3.8KViews1like2Comments