Contributions
Update NameMapping from QA URL to production URL
We've been working on a revamp of our billing site. I've been building tests in TestComplete in the QA environment. The QA and production URLs are different. I've been going through the tests to re-map objects on a test-by-test basis, but that's a very tedious process. I have gone into NameMapping, clicked on the page in question, and updated the URL. After running the test again TestComplete is not seeing the objects and giving me errors in the log.Is there a different way to update the URL for all of the objects at the same time? Or is there possibly a better way to go through the name mapping process to avoid this in the future?Solved453Views0likes3CommentsBitBar and GlobalProtect
I am trying to create tests for my company's MyAccount app. I have logged into the BitBar site, enabled SecureTunnel, and loaded my app to a device. I have tried both Android and iOS devices with the appropriate files for each version. It is behaving like SecureTunnel is not using my GlobalProtect VPN connection on the device to allow it to be tested. I tried to use the web version on a Windows 10 and Windows 11 device in BitBar with our internal site and it behaved the same way. Is there a known issue with how SecureTunnel and GlobalProtect interact with each other?2 years agoPlace BitBar QuestionsBitBar Questions497Views0likes0CommentsRe: Parsing JSON data in Javascript
A combination of the two worked beautifully. const hopefulParse = JSON.parse(aqHttpResponse.Text); var position = hopefulParse.search_player_all.queryResults.row.position; Log.Message(position); Thank you Chris.2 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews1like0CommentsRe: Parsing JSON data in Javascript
When trying to use Log.Message(aqHttpResponse.Text.search_player_all.queryResults.row.name_display_roster); I get an error message. The log shows a 200 response from the query and shows the body of the response just as I pasted it in my previous message.2 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes0CommentsRe: Parsing JSON data in Javascript
I'm using a MLB API for the time being instead of the API for our billing site. I wanted to make sure it could be done before I worked on trying to make it work with our expected data. The JSON data I received was: {"search_player_all":{"copyRight":" Copyright 2022 MLB Advanced Media, L.P. Use of any content on this page acknowledges agreement to the terms posted here http://gdx.mlb.com/components/copyright.txt ","queryResults":{"created":"2022-05-25T21:28:12","totalSize":"1","row":{"position":"2B","birth_country":"USA","weight":"195","birth_state":"CA","name_display_first_last":"Jeff McNeil","college":"Long Beach State","height_inches":"1","name_display_roster":"McNeil","sport_code":"mlb","bats":"L","name_first":"Jeff","team_code":"nyn","birth_city":"Santa Barbara","height_feet":"6","pro_debut_date":"2018-07-24T00:00:00","team_full":"New York Mets","team_abbrev":"NYM","birth_date":"1992-04-08T00:00:00","throws":"R","league":"NL","name_display_last_first":"McNeil, Jeff","position_id":"4","high_school":"Nipomo, CA","name_use":"Jeff","player_id":"643446","name_last":"McNeil","team_id":"121","service_years":"","active_sw":"Y"}}}}2 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes0CommentsParsing JSON data in Javascript
I'm trying to sort out how to parse the JSON data from a GET request using an API. The goal is to take the individual fields and save them to Project level variables to use in Property Checkpoints. The code below is the example function fromaqHttpResponse Object | TestComplete Documentation (smartbear.com). The thought is that I should be able to use the line in orange down below, as well as other lines of code, to set the individual fields of the response to variables. I probably have the wrong syntax as I'm not super familiar with Javascript. Is it possible to take the data directly from a GET request and set it to a variable, does the data need to be parsed first, or is this not possible at all in TestComplete? functionhttpGetRequest() { varaddress = "http://httpbin.org"; // Create an aqHttpRequest object varaqHttpRequest = aqHttp.CreateGetRequest(address); // Send the request, get an aqHttpResponse object varaqHttpResponse = aqHttpRequest.Send(); if(aqHttpResponse != null) { // Read the response data Log.Message(aqHttpResponse.AllHeaders);// All headers Log.Message(aqHttpResponse.GetHeader("Content-Type"));// A specific header Log.Message(aqHttpResponse.StatusCode);// A status code Log.Message(aqHttpResponse.StatusText);// A status text Log.Message(aqHttpResponse.Text);// A response body // This is the test line, likely the wrong syntax Project.Variables.Name = aqHttpResponse.Text.Name; // Save the response body to a file and place it to the project folder aqHttpResponse.SaveToFile(Project.Path + "body.txt"); } }Solved2 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.5KViews0likes6CommentsRe: Property checkpoint expecting bolded text
How would I go about cleaning up the text if I'm taking it directly from a Property Checkpoint? My variable has the text without the bolded text. I tried to use '*not*' in my variable with the wildcards and it was still not able to compare them properly.590Views0likes1CommentProperty checkpoint expecting bolded text
Currently using a Property Checkpoint to determine if a sentence on a page says "You are enrolled in auto pay." or "You are not enrolled in auto pay.". With the word not being bolded the keyword test is currently failing. I'm using a Project level string variable that has "You are not enrolled in auto pay." stored in it. Below is the error that I'm getting. I'm not seeing a way to update the Property Checkpoint to not care about the bolded text. Is there a way to update the Project level variable to include the bolded text? If not, are there any other options available? Thank you.Solved636Views0likes3Comments