How to automate Acumatica UI testing with Selenium - acumatica

Is there a way to use Selenium to do UI test automations. All Acumatica UI elements don't have ID's so Selenium will not find elements when going through the UI tests. Do we have a way to automate UI testing for Acumatica using Selenium?

There is a TestSDK for Acumatica. Sergey Marenich has a good intro article found here:
Acumatica Test Framework

Related

How to build a searchable list with scroll in adaptive card as WhoBot in MS Teams bot framework

I am developing a MS Teams bot using Bot Framework with nodejs.
After the user asks a question, my bot has a list of items to display as WhoBot does, as shown in the below image. Does anybody know how to build this beautiful and clean menu results with a scroll? Or who can guide me on the tutorial or webpage on how to make this? Please help me!
This is the list card implementation. You can find the docs related to it here: https://learn.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/design-effective-cards#lists. Regarding the search logic, you will need to implement it at the backend in your application and pass the items to list card.

What is the difference between Geb and Spock testing frameworks

I'm new in the area of software developing, and want to extend my knowledge over automation testing. I read a lot for Geb and Spock testing frameworks, but did not come to the conclusion for what purpose are they.
Am I correct:
Geb is for Page Objects (static covering the UI pages selectors, elements, etc.)
Spock is for writing the test order (Cases/Steps for test) (also is able to run API tests as well, mock data, parameterised endpoints, values and etc.)
--> What other differences they have? I already checked both documentations, but cannot understand.
I will appreciate every practical advice or example, differences between both as well, because I covered a lot of things, but there are only theoretical examples, but the main catch I did not get it.
Thank you in advance!
Geb is a browser/web automation solution. You can use it to test the functionality of your web pages. Geb can automatically launch a web page, fill out form fields and click buttons on a web page. From the official website:
"It can be used for scripting, scraping and general automation — or equally as a functional/web/acceptance testing solution via integration with testing frameworks such as Spock, JUnit & TestNG."
The catch for Geb is web automation.
The catch for Spock is that it is testing and specification framework.
Examples
You can Geb to check the following:
When one opens mywebsite.com/login and enters a wrong username or password an error message should be displayed, say in a div.
When one opens mywebsite.com/submitData, fills in item name and price and clicks on the submit button, expect a message to show like "Thank you, the total number of items is now 5"
GEB is build on top of WebDriver library and is compatible all the Browsers and Drivers which work with WebDriver.
Most commonly used way of achieving UI automation is though implementation of Page Object Model design pattern, Geb supports Page Object Model by implementing all the boiler plate code in its 'Page' class. The custom pages in an Automation Framework are required to extend this 'Page' class in order to access ready made functions and closures.
Some Additional points:
It uses jQuery-ish navigator API to identify elements on the page.
There is a ready made 'js' object which lets you execute JavaScripts on your page.
There are closures which let you switch to another Window/iFrame/Alert of your webpage
Simplified handling of Dropdowns,Radio buttons,File Uploads,Checkboxes etc.
Introduces 'Interact' blocks which builds and perform the user actions (by utilizing Action class of Selenium WebDriver API)
geb.config file allows the developer to add support for multiple environments , drivers, Reporting , waiting etc.
Read more about Geb in the The Book of Geb
SPOCK on the other hand is a BDD Testing and Specification Framework inspired from frameworks like JUnit, jMock, RSpec, Groovy, Scala, Vulcans etc.
SPOCK is highly compatible with Geb and provides a 'GebReportingSpec' class which is required to be extended by the test classes in order to establish compatibility with Geb

can we automate silverlight screens using watir?

Can we automate silverlight screens using watir? On the home page of watir, it's written that watir can automate any web application no matter what platform it is built on. But I read that it doesn't support applets or microsoft silverlight. Please help me regarding this. If we can automate silverlight screens, then please tell how?
No, watir can not automate anything inside browser plugin.
Content inside plugins such as Flash and Silverlight is not really exposed inside the DOM and so is difficult to test with Watir. However there are other tools you can use in combination with Watir such as Sikuli (use Jruby in that case to run watir, cucumber etc and use them in combination with Sikuli which is java based)

Integrating BIRTViewer and YUI

I'm Using the BIRTViewer. How can I Integrate the Report generated in the Viewer in a better Web UI framework say like YUI.
if you are using jsp than you can use tag library provided for it

Alternative to Capybara for Specflow

I am planning of using Specflow for .NET. I come from a RoR background, and I have used Cucumber and Capybara. From what I have heard, Specflow is similar to Cucumber; however, does it have features that Capybara provides?
Thanks!
Coypu is the answer, I think: https://github.com/featurist/coypu
I ended up using Watin engine to simulate browser. Watin runs mainly on IE.
In some occasions, I do not need the overhead of launching an entire browser to run my specflow tests. In those cases, I use SimpleBrowser (headless browser).
As I understand it Capybara is using Selenium as the web driver. You may want to check out an article on developers who are using Selenium with SpecFlow.
http://blog.jsolutions.co.uk/?p=112

Resources