| || |
Getting error while creating Test in QC using OTA
I'm facing the following error while creating a Test in QC using the OTA API
Error: E:\Create Resources\for_test\test.vbs(40, 9) (null): Required field <Reviewed> c
an not be empty or SPACE filled.
connectionURL = InputBox("Enter QC Connection URL..." , 64 , "http://ps2049:8080/qcbin")
qc_user = InputBox("Enter QC User Name..." , 64 , "qcadmin")
qc_passwd = InputBox("Enter QC User Password..." , 64 , "kk39kcD")
domain_name = InputBox("Enter Domain Name..." , 64 , "DEFAULT")
project_name = InputBox("Enter Project Name..." , 64 , "QualityCenter_Demo")
TestName = InputBox("Enter Test Name")
Set QCConnection = CreateObject("TDApiOle80.TDConnection")
QCConnection.login qc_user, qc_passwd
'Connect to domain_name and project_name
QCConnection.Connect domain_name, project_name
Wscript.echo "Connected to "&connectionURL
set TestF = QCConnection.TestFactory
Set Test = TestF.AddItem(Null)
Test.Name = TestName
Test.Type = "MANUAL"
Please any one help to solv this problem
Re: Getting error while creating Test in QC using OTA
The obvious conclusion after looking at the error message is that to create a test your QC administrator has set a field Reviewed as 'Required' and hence unless you mention some data for it in your code along with the name and the type it will not post.
Also remember that if the field 'Reviewed' is a list then the value passed should be one of the values in the list.