Forum Discussion
If I were you, I would depend on the assertions rather than the logs.
Of course, the logs are useful if you want to know what happened at certain point post the execution of tests. But, can't use the logs at run time to make decisions.
In case of Data Driven tests, assuming that the data in a file, even if data of particular row / record is failed, the retest has to be happened for entire data set, and hope you agree on this.
I am using assertions very extensively in each script. Neither am I using logs to make decisions. I also agree with you that if a failure happens, the retest has to happen for full data set. But that's not why I (or my team) is entirely using the logs.
We are using logs for two purposes. As test results and to look back and understand what all paths are taken in previous scripts (if there is a failure). There are too many parameters that we have to consider during debugging. So we use individual scripts status, overall test status, assertions, logs all (and each serve a particular purpose).
The problem now is when I want to schedule health checks, all test steps where we are using logarea are failing. Is there is a solution (or workaround) that we can use?
Thanking you once again for your time and support.
- nmrao7 years agoChampion Level 3
I am sorry. Tried understand your case from your question and replies, but unable to do so. Could not offer any help in this regard.
However, one input I have is that there are certain API / methods work in only SoapUI and they do not work out side of UI.
For instance, object "workspace" perfectly works fine from UI and doesn't work if "testrunner" script is used.
So, check if your tests fall into same category (without even going to Jenkins) by running the project with testrunner (And I hope you are using this utility from Jenkins as well).
- PramodYadav7 years agoContributor
No apologies, I understand you are only trying to help. I am indeed using testrunner.bat in jenkins in its command line option . And irrespective of if I use it from jenkins or directly from windows command line, the results are same. So may be you are right that this method is only available from UI. Is there a place you are aware where I can find a list of objects that are only available from UI (Or not available from command line?).
TanyaYatskovska : Or if SoapUI creators are listening, making this possible with command line?
Thanks once again for all your help, support and time. I do appreciate it a lot. Keep up the good work :).
Related Content
- 3 years ago
- 5 years ago
- 7 years ago
Recent Discussions
- 15 years ago