How can we create the login class separate and utilize for the whole project instead of login steps
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How can we create the login class separate and utilize for the whole project instead of login steps
I want to automate my scripts like that instead of writing login steps in each test script I want to create a separate login file so that I can utilize that file in each script... Is there any solution for this kindly help
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Amna
Yes, you can copy the login steps out to a new keyword test (click the plus symbol next to the KeywordTest repository in Project Explorer), paste the operations (or record the operations), then you can drag-and-drop that keyword test into any existing test. Or, you can organise your Execution Plan to perform the login test, then run the subsequent tests.
Hope this helps,
Mike.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
But I am using scripts test not the keyword test
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Amna
Apologies, yes you can also define a script method to perform your login steps then call that from other tests. More information for the specific usage is available here : https://support.smartbear.com/testcomplete/docs/scripting/calling-routines/index.html
Hope this helps
Mike
