Script Error on Log.CreateNewAttributes in Beta 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2010
08:45 AM
04-29-2010
08:45 AM
Script Error on Log.CreateNewAttributes in Beta 2
I have run into a script error trying to run some tests in the TC Beta 2. I don't think there are any syntax issues with the code but it will not execute. Can anyone offer any suggestions?
.Message "Begin Test", "", pmNormal, Attr
Attr Attr = .CreateNewAttributesAttr.Bold =
Dim Attr
Set Attr = Log.CreateNewAttributes
Attr.Bold = True
Log.Message "Begin Test", "", pmNormal, Attr
.Message "Begin Test", "", pmNormal, Attr
Attr Attr = .CreateNewAttributesAttr.Bold =
3 REPLIES 3
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2010
09:27 AM
04-29-2010
09:27 AM
Ok so to get past this error I had to put the code inside of any Sub routine that uses it. Before we set it after our USEUNITS and before the Main Sub Routine and it would work for any subroutine in the script. Was this change intentional?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2010
09:30 AM
04-29-2010
09:30 AM
Oh and the code was (I'm not sure what happened in the first post):
Dim Attr
Set Attr = Log.CreateNewAttributes
Attr.Bold = True
Log.Message "Begin Test", "", pmNormal, Attr
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2010
10:21 PM
04-29-2010
10:21 PM
Hi Brian,
We've reproduced this behavior. I've registered it in our issue-tracking DB.
We've reproduced this behavior. I've registered it in our issue-tracking DB.
------
Yuri
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Yuri
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
