dabs
Full Member
Posts: 74
|
Post by dabs on Aug 21, 2018 13:12:56 GMT
Hi,
I would like to write tests for my Rhomobile application, but have never written tests for this platform before.
1. Would it be possible to write tests which specify "This page should open, this button clicked, the result should be this data displayed on screen" 2. Is there support to mock specific API requests which my application might send? Just to ensure that I can write and execute tests independent from any backend service which may or may not be running when the tests are executed 3. Are there any examples I could look at in order to figure out what can and cannot be done in the testing framework? I've used Jasmine for JavaScript testing, and would like to know what features are also available here, and which are not.
Regards, DanĂel
|
|
|
Post by Alex Epifanov on Aug 21, 2018 13:22:41 GMT
|
|
dabs
Full Member
Posts: 74
|
Post by dabs on Sept 5, 2018 13:42:15 GMT
"Probably", is that a definite probably, or something else...? :-P
Any ideas where to start would be very much appreciated.
|
|
|
Post by Alex Epifanov on Sept 5, 2018 21:18:00 GMT
|
|
dabs
Full Member
Posts: 74
|
Post by dabs on Sept 6, 2018 12:04:01 GMT
Thank you for this. I'm currently using the 5.x version of RhoStudio, and I'm already running into problems with installing the QtWebDriver (it cannot find the correct version of Qt, complains about not finding Qt5Gui.dll and a few other similar Qt files), and the ruby driver (which admittedly I'm not sure I need in the first place...), since when I try to install it using gem install selenium-webdriver, I get an error stating that I need Ruby >= 2, but my current version is 1.9.3.
Am I better off waiting for Rhomobile 7?
|
|
|
Post by Alex Epifanov on Sept 6, 2018 12:08:59 GMT
Thank you for this. I'm currently using the 5.x version of RhoStudio, and I'm already running into problems with installing the QtWebDriver (it cannot find the correct version of Qt, complains about not finding Qt5Gui.dll and a few other similar Qt files), and the ruby driver (which admittedly I'm not sure I need in the first place...), since when I try to install it using gem install selenium-webdriver, I get an error stating that I need Ruby >= 2, but my current version is 1.9.3. Am I better off waiting for Rhomobile 7? you'd probably go for rms 6.1. It has updated qt version and all recent fixes. Update your Ruby to v 2.3 as well. You can use rvm for this if you are on mac. On windows Ruby 2.3 is shipped with rms installer.
|
|
dabs
Full Member
Posts: 74
|
Post by dabs on Sept 19, 2018 10:41:53 GMT
One question regarding which version of Ruby to use: you said that I should update to Ruby 2.3, but in the documentation for installing RhoStudio (http://docs.tau-technologies.com/en/edge/guide/rhomobile-install) it states that "RhoStudio requires Ruby v1.9.3 and is not compatible with any other version, incuding the newer version (2.0) that comes with Mac OS X Mavericks and Yosemite". I'm a bit confused about what this means.
|
|
|
Post by Alex Epifanov on Sept 19, 2018 23:03:53 GMT
dabs, Documentation is a bit out of date in some parts and is being fixed by the Tau Team. We try to make lastest RMS builds to me as much compatible with latest tools as possible. For current version I recommend using Ruby 2.3. Latest OS X updates should also work fine.
|
|
dabs
Full Member
Posts: 74
|
Post by dabs on Sept 20, 2018 11:51:22 GMT
Ok no problem. I will give this a try.
|
|
dabs
Full Member
Posts: 74
|
Post by dabs on Dec 17, 2018 14:01:58 GMT
What about code coverage? Is it possible to add that to a Rhomobile project, and if so, are there any examples out there?
|
|
|
Post by Alex Epifanov on Dec 17, 2018 16:45:11 GMT
|
|