Forum Discussion

Sahall0308's avatar
Sahall0308
New Contributor
9 months ago

Referencing the Keyword Test

Hello, Apologies, I'm fairly new to Test Complete. I'm having an issue attempting to reference the Keyword Test that my function is being called from, thus not being able to access it's variables or...
  • Sahall0308's avatar
    Sahall0308
    9 months ago

    It was for adding an indeterminate level of variables based on what was given as the parameter and to use a for loop to list through each one and perform an action based on this. It's pretty niche to this situation, so apologies for the confusion!

    I did manage to get it working, I'd just stupidly not added my test as a test item in the test execution plan, hence why it was returning as null.

    So my solution was using Project.TestItems.Current.Name and adding the Keyword Test to the execution plan and running it from there to return the current Keyword Test Name.

    Thank you for your reply :)