Labels
- Apache (10)
- Articles (4)
- BPM Tools (5)
- Glassfish (16)
- Hadoop (10)
- HP ALM (6)
- HP SOA Systinet (14)
- Issues (19)
- JAVA (85)
- JBoss (16)
- jQuery (4)
- Load Runner (37)
- Quality Center (49)
- Testing (24)
- Tips and Tricks (16)
- Tomcat (4)
- Usefull Links (18)
- Weblogic (41)
- WebSphere (2)
Tuesday, February 25, 2014
Can't find string terminator "END" anywhere before EOF error in perl
Can't find string terminator "END" anywhere before EOF
Sunday, February 16, 2014
How to Create getters and setters
Create getters and setters
To create getter and setter methods for a field, select the field's declaration and invoke Source > Generate Getter and Setter.
To create getter and setter methods for a field, select the field's declaration and invoke Source > Generate Getter and Setter.
Sunday, January 26, 2014
How to copy the value of a user-defined field in Test Plan to a user-defined field in Test Lab
This VBScript Workflow example will populate a test lab test instance user-defined field (TC_USER_01), with the value of a test plan user-defined field (TS_USER_01) of the corresponding test.
Sub TestSetTests_MoveTo
TestSet_MoveTo
TestSetTest_Fields("TC_USER_01").IsReadOnly = True
End Sub
TestSet_MoveTo
TestSetTest_Fields("TC_USER_01").IsReadOnly = True
End Sub
Sub TestSet_MoveTo
On Error Resume Next
On Error Resume Next
Dim td
Dim testSetF
Dim testSet1
Dim testSetTestF
Dim tstestL
Dim tsTest
Dim tFactory
Dim tItem
Set td = TDConnection
Set testSetF = td.testsetFactory
Set tFactory = td.TestFactory
Set testSet1 = testSetF.Item(TestSet_Fields.Field("CY_CYCLE_ID").Value)
Set testSetTestF = testSet1.TSTestFactory
Set tstestL = testSetTestF.NewList("")
Dim testSetF
Dim testSet1
Dim testSetTestF
Dim tstestL
Dim tsTest
Dim tFactory
Dim tItem
Set td = TDConnection
Set testSetF = td.testsetFactory
Set tFactory = td.TestFactory
Set testSet1 = testSetF.Item(TestSet_Fields.Field("CY_CYCLE_ID").Value)
Set testSetTestF = testSet1.TSTestFactory
Set tstestL = testSetTestF.NewList("")
For Each tsTest in tstestL
'check if the UDF of the test instance is empty
If Len(tsTest.Field("TC_USER_01")) = 0 Then
Set tItem = tFactory.Item(tsTest.Field("TC_TEST_ID"))
tsTest.Field("TC_USER_01") = tItem.Field("TS_USER_01")
tsTest.Post
End If
Next
'check if the UDF of the test instance is empty
If Len(tsTest.Field("TC_USER_01")) = 0 Then
Set tItem = tFactory.Item(tsTest.Field("TC_TEST_ID"))
tsTest.Field("TC_USER_01") = tItem.Field("TS_USER_01")
tsTest.Post
End If
Next
On Error GoTo 0
End Sub
End Sub
Thursday, January 23, 2014
SEVERE: Servlet.service() for servlet cgi threw exception
This summary is not available. Please
click here to view the post.
Weblogic Logs Rotation setup step by step
Each
WebLogic Server instance writes all messages from its subsystems and
applications to a server log file that is located on the local host
computer. By default, the server log file is located in the
In addition to writing messages to the server log file, each server instance forwards a subset of its messages to a domain-wide log file.The domain log file provides a central location from which to view the overall status of the domain. The domain log resides in the Administration Server
You can rotate log files -
By size ( default)
By Time
You can change these default settings for log file rotation.
For example
you can change the file size at which the server rotates the log file or
you can configure a server to rotate log files based on a time interval.
You can also specify the maximum number of rotated files that can accumulate. After the number of log files reaches this number, subsequent file rotations delete the oldest log file and create a new log file with the latest suffix.
To change log size for rotation or by time -
Login to Administration Console
click on the server
On right hand side click on logging tab
under default selected general tab
logs
directory below the server instance root directory; for example, DOMAIN_NAME\
servers
\SERVER_NAME\
logs
\SERVER_NAME.
log
, where DOMAIN_NAME
is the name of the directory in which you located the domain and SERVER_NAME
is the name of the server.In addition to writing messages to the server log file, each server instance forwards a subset of its messages to a domain-wide log file.The domain log file provides a central location from which to view the overall status of the domain. The domain log resides in the Administration Server
logs
directory. The default name and location for the domain log file is DOMAIN_NAME\
servers
\ADMIN_SERVER_NAME\
logs
\DOMAIN_NAME.
log
, where DOMAIN_NAME
is the name of the directory in which you located the domain and ADMIN_SERVER_NAME
is the name of the Administration Server.You can rotate log files -
By size ( default)
By Time
By default, when you start a WebLogic Server instance in development mode, the server automatically renames (rotates) its local server log file as
SERVER_NAME.
log
.n
. For the remainder of the server session, log messages accumulate in SERVER_NAME
.log
until the file grows to a size of 500 kilobytes.
Each time the server log file reaches this size, the server renames the log file and creates a new
SERVER_NAME
.log
to store new messages. By default, the rotated log files are numbered in order of creationfilenamennnnn
, where filename
is the name configured for the log file. You can configure a server instance to include a time and date stamp in the file name of rotated log files; for example, server-name-%yyyy%-%mm%-%dd%-%hh%-%mm%
.log
.
By default, when you start a server instance in production mode, the server rotates its server log file whenever the file grows to 5000 kilobytes in size. It does not rotate the local server log file when you start the server.
You can change these default settings for log file rotation.
For example
you can change the file size at which the server rotates the log file or
you can configure a server to rotate log files based on a time interval.
You can also specify the maximum number of rotated files that can accumulate. After the number of log files reaches this number, subsequent file rotations delete the oldest log file and create a new log file with the latest suffix.
To change log size for rotation or by time -
Login to Administration Console
click on the server
On right hand side click on logging tab
under default selected general tab
Or
select By time option under rotation type drop box and enter time in
begin rotation time at the you want your server rotate log file
To update for access logs
Login to Administration Console
click on the server
On right hand side click on logging tab
Select HTTP tab and follow the same above instructions.
java.io.IOException: CreateProcess: perl
This summary is not available. Please
click here to view the post.
Wednesday, December 11, 2013
How to Add Users to Multipule Projects in Quality Center?
Try below code:
Public tdc As TDAPIOLELib.TDConnection
Sub addUserGroupToAllProjects()
Dim proj As String
Dim CustGroup As TDAPIOLELib.CustomizationUsersGroup
Const domain = "DEFAULT"
connnect_qc()
For Each proj In tdc.ProjectsListEx(domain)
tdc.Connect(domain, proj)
If Err.Description <> "Failed to Connect Project" Then
If tdc.ProjectConnected = True Then
AddProjectUser("user", "Group")
tdc.Customization.Load()
tdc.Customization.Users.AddUser(NewProjectUser)
' Add the new user to a user group.
CustUsersGroups = tdc.Customization.UsersGroups
'addToUserGroup is a group name, for example "QATester"
CustGroup = CustUsersGroups.Group(addToUserGroup)
' Add the user.
CustGroup.AddUser(NewProjectUser)
tdc.Customization.Commit()
End If
End If
tdc.Disconnect()
Next
tdc.ReleaseConnection()
tdc = Nothing
End Sub
Sub connect_qc()
Dim username, password As String
username = "username"
password = "passwd"
Const qcurl = "http://qualitycenter.domain.com/qcbin/"
tdc = New TDAPIOLELib.TDConnection
tdc.InitConnectionEx(qcurl)
tdc.Login(username, password)
End Sub
Subscribe to:
Posts (Atom)