Hi Saravanan,
I stumbled upon this group chat and your question. I wonder If you its too
late to answer your question.
I will try something like this :
* Okay, so we have a function library where I have stored/kept all my
(600+) functions. let the file be a text or vbs
* Now, I do have test script file as well where I have my driver script
residing and deep inside there my compiler swims deep into those ocean of
SWITCH CASES to find
appropriate function_NAME and execute further.
--> Write a separate code batch file / VBS and integrate that into your
code.. as basic sanity check before the actuat execution of your framework
begins.
Let me introduce excel in between ( though it was not needed but it will
make things easy for maintenance)
1) Open an Excel --> List down all the function names that you have in
your VBS file ( This will be your SEARCH string And don't worry its a one
time activity)
-------------------------------------------------------------------------------------------------
Function Name Function library status (File1)
Framework code status (File2)
-------------------------------------------
Login() --------------------------
TRUE ------------------------------
FALSE
f1() TRUE TRUE
f2() FALSE TRUE
f3() TRUE TRUE
2) Write a macro which Reads the Function name from Excel and searches
the string in each of your files and update the string match status as true
or false.
--> You can loop into array of this files (File1,File2) and within them
you can write rest of the logic...
---> Update the status of string match.
This will actually help you in both ways.. in case if someone changes the
base code as well , you will come to know...
3) S0, you can set a boolian logic for the entire execution... and if and
only if all functions searched are TRUE... then, Return TRUE/Fit for
execution
Else log error and display an error message to correct the files.
Hope this helps.
Note: I have 7+ years exp. in IT, 5 years into QTP, I was working in a
banking company in Bangalore. right now am JOBLESS,
If any of you have opening in QTP/UFT please help me out.
You can reach me at [email protected]
If the date when you are reading this post is after 3 Months of
the comment posted here, then consider this as junk.
Regards,
Azhar
On Saturday, April 22, 2017 at 12:03:49 PM UTC+5:30, saravanan u wrote:
>
> Hi Friends,
> I have more than 600 functions in our products and It ll be add in future
> due to enhancements .As of now, the 600 function are using in the driver
> script of the hybrid framework.
> My queries, is there any option to separately using the function in driver
> scripts and also no need to editing in driver script.
>
> We design the hybrid framework below structures :
> 1.Import the excel sheet
> 2.Read the test case id
> 3.Read the keyword if it is need.
> 4.Execute the function using select cases.
> 5.Update the status of function.
> 6.Export the sheet.
>
> Thanks in advance.
>
> Regards,
> Saravanan
>
>
--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
---
You received this message because you are subscribed to the Google Groups "QTP
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.