Contributions
Re: Chrome is not maximized when running a test from QA complete
yes, both windows are maximized. But, why would the screen resolution be different between when logged into the machine remotely and ran the test vs run the test from QA complete? Any thoughts? Also, I am getting the devicePixelRatio as mentioned here,Testing Pages With Multiple Zoom Levels | TestComplete Documentation (smartbear.com) page.contentDocument.defaultView.devicePixelRatio and I am getting the value as 1, multiply that by 100 = 100% zoom. This is the zoom value I am getting in both the cases (remote login to the machine, run the test from QA complete).450Views0likes0CommentsChrome is not maximized when running a test from QA complete
I am running a test by maximizing the chrome. It maximized the chrome properly if I run the test by doing a remote desktop onto the machine as seen below. But, if i run the same test without doing a remote desktop, but run it from QA complete on that machine, then the browser does not seem to be maximized though the command is run to maximize the browser:Sys.Browser("chrome").BrowserWindow(0).Maximize(). Please see the screenshot below. I am using the latest version of testcomplete: 15.54.3.7 and using the latest version of chrome:115.0.5790.171 Note: This machine used to run the chrome maximized properly couple of weeks ago when run from QA complete. Not sure why it is different now, I don't recall changing anything on the machine. Please help.Solved496Views0likes4CommentsGet current url of the page for a headless test
I am able to launch a headless test using the following method. function openBrowser() { var server = "localhost"; var capabilities = { "browserName": "chrome", "screenResolution": "1920x1080" }; Browsers.RemoteItem(server, capabilities).Run("https://www.google.com/"); } I would like to fetch the url of the current page some where during the testflow. How do i get that for a headless test? I was hoping something like shown below, but could n't get it working. Browsers.RemoteItem(server, capabilities).Page('*').URL Thank you.253Views0likes2CommentsHow to capture output of running a TestedApp
function runTestedApp(){ let testAppIndex = TestedApps.Add("C:\\Program Files\\SmartBear\\ReadyAPI-3.43.1\\bin\\agentavailability.bat") let testApp = TestedApps.Items(testAppIndex) testApp.Params.SimpleParams.CommandLineParameters = "-a 12.14.154.102:1234"; let result = testApp.Run() Log.Message(result) } When i run the above method, i am hoping to capture the output from running the testedapp. The following statement does not capture the output. It simply runs the app. let result = testApp.Run() Please help.Solved362Views0likes1CommentRe: Passing testcomplete project suite variables from Ready API
yes, i am using the correct parameters. I have double checked it. I am using the project suite variables, /psv The name of the variable includes only english alphabets and no spaces anywhere. So, no need to enclose in the quotes. I even tried enclosing in quotes, but still no luck. I guess this is a limitation on the Ready api side that it is not passing the parameters as test complete is expecting.348Views0likes0CommentsPassing testcomplete project suite variables from Ready API
On the ready api, we can do Add step, Testcomplete as shown in the picture below. The test complete step added above looks like this In here, there is "Other args:" I was thinking these psv variables passed will be comsumed by the Testcomplete. But looks like it is not working as i expected. Expected: On the testcomplete, ProjectSuite.Variables.testCaseNumber should be set to 1 and ProjectSuite.Variables.orderId should be set to 902783221 Actual: The testcomplete is setting,ProjectSuite.Variables.testCaseNumber = 1 /psv:orderId=902783221 bascially, it is treating everything after "/psv:testCaseNumber=" as it's value, which is n't correct.401Views0likes3CommentsRegularexpression during findChild does not seem to work.
Hi, I am trying to find a Panel on the page with the following outerHTML. <div role="group" aria-roledescription="offer" aria-label="Fibre+ Gig Plan Card" class="c-card c-card--odd-number-of-cards"> Here is the regular expression that works. page.findChild(['ObjectType', 'className', 'outerHTML'],['Panel', 'c-card*', 'regexp:<div role="group" aria-roledescription="offer" aria-label="Fibre+.*'],100) Here is the regular expression that does not work: (notice the space after Fibre+) page.findChild(['ObjectType', 'className', 'outerHTML'],['Panel', 'c-card*', 'regexp:<div role="group" aria-roledescription="offer" aria-label="Fibre+ .*'],100) i even tried the following, but no luck. (notice that i used \b instead of the space. According to the documentation hereRegular Expressions Syntax | TestComplete Documentation (smartbear.com) \b Matches a whitespace character. I even tried \s instead of \b but no luck.) So, the following did not work. page.findChild(['ObjectType', 'className', 'outerHTML'],['Panel', 'c-card*', 'regexp:<div role="group" aria-roledescription="offer" aria-label="Fibre+(\b).*'],100) page.findChild(['ObjectType', 'className', 'outerHTML'],['Panel', 'c-card*', 'regexp:<div role="group" aria-roledescription="offer" aria-label="Fibre+(\s).*'],100) Please help.414Views0likes1Comment