Forum Discussion
There is no user documentation for those files because, as mentioned, they are not files that are typically used, utilized, altered, or read directly from any sort of script code or functionality.
Question:
What do you need to know about his file? What are your intentions? What are you trying to do?
As I mention in other forum that we are interested in creating the issue in Jira if the log contain errors automatically. but TestComplete do not have this support to do automatically . We are looking for some kind of data to inject to Jira API to do this. That is why we wanted to know.
Thanks
Nishchal
- tristaanogre6 years agoEsteemed Contributor
Rather than reading the file, what if you used the "OnLogError" event handler to call your API call to Jira to create the issue? The "LogParams" that is generated in that event handler contain the contents of the error entry that is created. Rather than parsing the file, you can intercept the error log entry itself and use that for pushing to the API.
- nisgupta6 years agoValued Contributor
yes we will use OnLogError Event but how TestCOmplete can access our Jira System ? With TestComplete script we can only access BugZilla and visual studio team system
Thanks
Nishchal
- tristaanogre6 years agoEsteemed Contributor
API calls can be made in code using https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqhttprequest/index.html. So, while there is not an object SPECIFICALLY for Jira, you can write code to make the calls.
- nisgupta6 years agoValued Contributor
I have tried the code as mentioned in the above link and it ges the status 200. I have never used this utility before .
Can we use the REST API code for Jira here ?
Thanks
Nishchal
- tristaanogre6 years agoEsteemed Contributor
You should be able to. That's my point... that you can call whatever API requests you want to within the OnLogError event handler. I'm leaving it up to you to write the code. But yes, you shoiuld be able to write the API code here... Different objects, possibly, but the code should be able to be used.
- nisgupta6 years agoValued Contributor
Ok,
Here is another thing
Our TestComplete script fails for many reasons for e.g.
Object properties change due to the change in application
application is down
Script itself has some errors
Is there a way we can identify the type of errors automatically so that we can assign to developers or QA person ?
Let me know if you need more details
Thanks
Nishchal
- tristaanogre6 years agoEsteemed Contributor
LogParams object in the OnLogError event handler contains the message text for the error being logged. You can parse out the text to look for certain patterns, keywords, etc.
Related Content
- 4 years ago
- 10 months ago
Recent Discussions
- 2 days ago