Posts

Showing posts with the label automation

JAVA PDF Compare On PDF Documents From Different States

Image
Clash Royale CLAN TAG #URR8PPP JAVA PDF Compare On PDF Documents From Different States I am an automation engineer (working in a Java framework) and recently due to compliance issues I have a need to create a test that compares multiple pdf documents. The pdf documents are of a legal nature and contain different verbiage per state. I have never done this before. Just looking for implementation suggestions, was hoping to avoid something yucky. I would be accessing each document via a link, which would open in Docusign. The scenario would be open the document for New York and then compare it to a baseline document for New York, open a document for Maryland and then compare it to a baseline document for Maryland, open a document for Virginia and compare it to a baseline document for Virginia, etc. By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and ...

Sending event values to Google Analytics using Zapier

Image
Clash Royale CLAN TAG #URR8PPP Sending event values to Google Analytics using Zapier I'm using Close.io as a CRM, I want to be able to create an event on Google Analytics and record the conversion value. The purpose of this is so that I can tie a certain Google Ad to its performance. On Close.io this would be a new Opportunity created. I'm using Zapier to integrate the two platforms and it has a new Beta integration with Google Analytics. I set it up so that when a new Opportunity is created, it creates a measurement on GA with the measurement type "Event Tracking", and the category, action and label similar to the goal I created on GA. However, when I send tests to GA, it's not appearing in my acquisitions report on GA. There are fields for Customer Client ID and User ID.For customer ID there's a description that says: "This anonymously identifies a particular user, device, or browser instance. Google may ignore repeated identical measurements. The value...

Protractor non angular tests do not obey waits and sleeps until there is an error in the code

Image
Clash Royale CLAN TAG #URR8PPP Protractor non angular tests do not obey waits and sleeps until there is an error in the code I am using Protractor and cucumber for automation tests on some non angular pages. I have set browser.ignoreSynchronization to true. When I run a scenario only the first line which is browser.get(...) is executed correctly. I can see the URL loads fine. All following steps are not executed (as I don't see them run in browser) but I see all green and all passed in the results. None of the waits and sleeps in the code have any effect on execution. However if there is an error somewhere in the code, lets say in the last step of scenario/stepdef I have wrong code browser.blah.something(); then I can see all sleeps and waits being obeyed. I don't understand what is going on! Why does this erroneous code cause Protractor to obey timeouts? Why this weird behavior? Any idea? Also just wondering why browser.blah.something() doesn't cause compile time error (...

AutomationElement shows up using Inspect.exe but does show not up when using UIAutomationCore.dll or System.Windows.Automation

Image
Clash Royale CLAN TAG #URR8PPP AutomationElement shows up using Inspect.exe but does show not up when using UIAutomationCore.dll or System.Windows.Automation TL;DR : What am I doing wrong that is causing the workspace pane to show up in Inspect Objects but not show up in my custom code? I am trying to write some UI automation to a 3rd party program. I am using Inspect.exe that came with the Windows SDK, and I have tried both System.Windows.Automation and direct COM Calls (using the wrapper library from UIA Verify). Process processes = Process.GetProcessesByName("Redacted Client"); if (processes.Length == 0) throw new Exception("Could not find "Redacted Client" process"); PropertyCondition parentFileCond = new PropertyCondition(AutomationElement.ProcessIdProperty, processes[0].Id); PropertyCondition workspaceCond = new PropertyCondition(AutomationElement.NameProperty, "Workspace", PropertyConditionFlags.IgnoreCase); PropertyCondition documentCond ...

System.ArgumentNullException in UIAutomationClient

Image
Clash Royale CLAN TAG #URR8PPP System.ArgumentNullException in UIAutomationClient I received the following error: An unhandled exception of type 'System.ArgumentNullException' occurred in UIAutomationClient.dll Additional information: Value cannot be null. it appears at textImage. Here is my code // localize "Versicherungsnehmer" AutomationElement textVN = windowCOB.FindFirst(TreeScope.Descendants, new PropertyCondition(AutomationElement.NameProperty, "Versicherungsnehmer ")); // jump to next item (no text, just an image named "") AutomationElement textImage = TreeWalker.ControlViewWalker.GetNextSibling(textVN); // jump to next item "textAnsprache" which has a Name in inspect) AutomationElement textAnsprache = TreeWalker.ControlViewWalker.GetNextSibling(textImage); // read Value "Ansprache" from Inspect string vnAnsprache = textAnsprache.Current.Name; I assume the error is due to the fact that textImage is not a actual text/word...