Contributions
Cucumber BDD + Serenity - Writing user defined methods
I am learning and using Cucumber BDD, with Serenity. I am writing a global library which will have re-usable methods. These methods are accessible from all classes/java files. I am struggling to understand how to access Webdriver object. Or, if webdriver not needed, can I directly access "element" which comes with selenium?? But the below syntax is throwing error, as "element" is not correct. 1. Should I pass "driver" as parameter for every Global method 2. I access this method from Pages. Should I pass "driver" as parameter. If so, what is the correct way to pass "driver" object to the method below. public class GlobalMethods { public void clickLinkWithText(String text){ System.out.println("Entered into clicklink with text >> " + text); element(By.xpath("//a[text()='"+text+"']")).click(); } }885Views0likes0CommentsRe: Compare response to table values
Hi, Regardless of 'matching or not matching', if I use log.info("My comment"), it won't be printed to Html Reports. ( Let us say, we followed your suggestion - single test step, and calling it mutliple times because only some data change.) I was told, this is not possible. The result will just diplay the overall testcase result, not step-wise. Instead, if I create each step as a test case, and if I use assert, then it will go into HTML reports. thanks9 years agoPlace ReadyAPI QuestionsReadyAPI Questions7.1KViews0likes7CommentsRe: Compare response to table values
The limitation in this apporach is, if i write method to compare two values (without assertion) and want to print to results (html results), it is not possible. That is the drawback with SoapUI tool.9 years agoPlace ReadyAPI QuestionsReadyAPI Questions7.1KViews0likes9CommentsRe: Groovy script to create Test cases with test steps
Data driven is the answer for this, however, Soapui can not support the Html results in this apporach. We tried this apporach to avoid duplication of code, but due to the problem (it does not write Html results as step-wise, rather test case-wise) with Soapui, we gave it up. Created each step as a test case, now we are able to get the results in .HTML format. The tool should be modified to meet the requirements.9 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.8KViews0likes0CommentsRe: Generate HTML reports - Command line.
Going forward, if you can include the functionality to write some message to the Junit type html report, it would be very useful for the users. It would save time. Otherwise, I consider, this feature is lacking in this tool.9 years agoPlace ReadyAPI QuestionsReadyAPI Questions7.2KViews0likes3CommentsReady API - Latest version still refers to the Trail version - Bug in the product?
Initially I installed Trail version of Ready api, and recently we bought the licensed version. After I un-installed the trail, and freshly installed the latest version (to install the license), this newly installed version, still shows as Trail Version, and does not allow me to install the Lincese. I cleared Program Files, and verified even the Registry, still problem. ThanksSolved9 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes2CommentsRe: Generate HTML reports - Command line.
Thanks for the reply! However, we have one issue. We use log.info() - to print/log the message. Our framework is: Project Suite Test Case Step One We run the same step (Step One) using DataSource with Data Source Loop for 60 times. So, though we test 60 web services, as we use the same step (Step One), in the Html it is shown only test case= pass. The steps were not printed. Is there any way to print Step-wise AND the log.info() - related message to the HTML. Thanks9 years agoPlace ReadyAPI QuestionsReadyAPI Questions7.2KViews0likes6Comments- 9 years agoPlace ReadyAPI QuestionsReadyAPI Questions7.3KViews0likes9Comments
Generate HTML reports - Command line.
We are using Ready API (ours is web services testing), and using only soapui ng pro. We are executing the tests from command line like this, but, the reports are not stored in HTML format. They were stored in .txt, and also just with failure. I want to get Junit format HTML reports with all steps (pass, fail, not executed). Please let me know the command. To print my validations inside of the test, I am using - log.info ("test Passed") I want to get all these be printed in the Html report. testrunner.bat c:\newproj\myproj.xml -J -fc:\rep Tested even this: testrunner.bat c:\newproj\myproj.xml -a -fc:\\rep -F HTML I got only .txt, and inside of those, my log.info related output was not printed. And, I did not get the .HTML file either.Solved9 years agoPlace ReadyAPI QuestionsReadyAPI Questions7.5KViews0likes10Comments