Contributions
Re: Newman execution in TestComplete
Hi you can use Wshsell.Run orWshsell.Exec to run it via command-line https://support.smartbear.com/testcomplete/docs/app-testing/desktop/console/about.html and read data as wText, or StdOut, or just save output into text file, wait for Newman text execution, read the file via aqFile.ReadWholeTextFile() and post it into log747Views2likes1CommentRe: What is the best way to automate Dropdown which have lot of values to select (Eg: State Dropdown)
1. For native web dropdown controls (even for Scalable Web Testing) the code will be: function test() { Sys.Browser("chrome").ToUrl("https://material.angular.io/components/select/examples"); Sys.Browser("chrome").Page("https://material.angular.io/components/select/examples").FindElement("//select[@id=(//label[.='Cars *']/@for)]").ClickItem("Audi"); } So, maybe the control which you use is not supported one. In this case you can request support of this control in the special section for feature Ideas:https://community.smartbear.com/t5/TestComplete-Feature-Requests/idb-p/TestXCompleteFeatureRequests 2. 3. 4. Unfortunately, I have no access to your web page, but it seems, yes, it's not simple drop-down. That's how it's possible to deal with controls without special support: function Test1() { let URL = "https://material.angular.io/components/select/overview"; let whattoclick = "'Pizza'"; Browsers.Item(btChrome).Navigate(URL); let browser = Sys.Browser(); browser.BrowserWindow(0).Maximize(); let page = browser.Page(URL); page.FindElement("//select-overview-example/mat-form-field//mat-select//span[contains(@class, 'mat-select-placeholder')]").Click(); page.FindElement("//span[contains(text(), "+whattoclick+")]").Click(); }1.9KViews0likes3CommentsRe: What is the best way to automate Dropdown which have lot of values to select (Eg: State Dropdown)
1. You can not to use NameMapping for every item, just put there only the container (drop-down control). The "source" of the items can be any. You can use Excel file, or iterate the values all the list using the loop and wItemsCount 2. Displayed name or indexhttps://support.smartbear.com/testcomplete/docs/reference/test-objects/members/combobox/clickitem-action-combobox-control.html1.9KViews0likes5CommentsRe: Community Day 2021 - Regression Testing of Performance
function main() { let scenarios = ["order_book_test", "order_glass_test"] for (var i=0; i<scenarios.length; i++) { aqTestCase.Begin(scenarios[i]); Login(); Make_Order(); Logout(); aqTestCase.End(); } } function Login() { function navigate() { Log.Error("Unable to navigate") } navigate(); Log.Message("Pass auth"); } function Make_Order(goods) { Log.Message("Make order") } function Logout() { Log.Message("Logout") } function EventControl1_OnLogError(Sender, LogParams) { Log.Warning("An error has been fired in scenario "+aqTestCase.CurrentTestCase.Name) }1.7KViews1like0CommentsRe: What is the best way to automate Dropdown which have lot of values to select (Eg: State Dropdown)
If the final goal is to select specific item, it can be done with ClickItem method: function test() { Sys.Browser("chrome").ToUrl("https://material.angular.io/components/select/examples"); Sys.Browser("chrome").Page("https://material.angular.io/components/select/examples").FindElement("//select[@id=(//label[.='Cars *']/@for)]").ClickItem("Audi"); } Also, please, pay attention on wItem(),wItemCount, andwItemList Maybe they can help in your case1.9KViews0likes7Comments