My company has decided to integrate with LDAP to authenticate QC users against a company database so I can no longer hardcode the QC_ID and QC_PW in our framework. I used to use a guest account and when that was taken away I just hardcoded my QC login information. As of this weekend our framework will break since the username and password will now be the same as our network login information. We as QC users will be authenticated against the corporate database. So we now will log into QC with our badge ID and network password.
Here is what I am doing currently:
1. We manually log into our test machine with a test account
2. Launch QC
3. Log into QC with our own QC account
4. Navigate to "Test Lab" in QC
5. Select a testset
6. invoke the execution of the test cases
7. At this point the WR startup file is run that loads the Common libraries and GUI's etc.
8. For each TC for a particular app we need to access a config file that lives in QC.
9. In order for us to access it we have to get information from QC.
10. We make the connection with QC using TDAPI_ConnectEx using *my* QC login info (it's hard coded at the moment....we used to have the "Guest" account information hard coded until it was taken away about a year ago)
11. Once we have this information we use a few other TDAPI calls to get QC and testcase information that we need:
(TdServerInitInstance, TdServerRelease, qcdb_get_test_value("TS_TEST_ID"), etc.)
- Since we can get information from QC using TD or QC api calls is there a way to get the user information of the person that is currently logged in (Step 3 above) that actually launched the tests? I know I can get the Server, Domain, Porject, and username information, but without the pw I can't do the TDAPI_Connect to get the information I need to find and ultimately access the correct config file.
I realize I could prompt the user for their username and password, but I would rather not do that. I'd rather kick off a testset and leave....not wait to be prompted and enter information. Plus if I ever want to "schedule" these tests without being here how will I do that if I have to answer a prompt?